Module
HTTPurple.Request
- Package
- purescript-httpurple
- Repository
- sigma-andex/purescript-httpurple
#ExtRequestNT Source
newtype ExtRequestNT :: Type -> Row Type -> Type
newtype ExtRequestNT route ext
Newtype wrapping an extended request
For internal use only. Use ExtRequest
instead.
Constructors
ExtRequestNT (Record (RequestR route ext))
Instances
Newtype (ExtRequestNT route ext) _
#ExtRequest Source
type ExtRequest :: Type -> Row Type -> Type
type ExtRequest route ext = Record (RequestR route ext)
Like Request
, but can contain additional fields
#fromHTTPRequest Source
fromHTTPRequest :: forall route. RouteDuplex' route -> IncomingMessage IMServer -> Aff (Either (Request Unit) (Request route))
Given an HTTP Request
object, this method will convert it to an HTTPurple
Request
object.
#fromHTTPRequestExt Source
fromHTTPRequestExt :: forall ctx ctxRL thru route. Union ctx thru ctx => Nub (RequestR route ctx) (RequestR route ctx) => RowToList ctx ctxRL => Keys ctx => RouteDuplex' route -> Proxy ctx -> IncomingMessage IMServer -> Aff (Either (Request Unit) (ExtRequestNT route ctx))
- Modules
- HTTPurple
- HTTPurple.
Body - HTTPurple.
Cont - HTTPurple.
Headers - HTTPurple.
Json - HTTPurple.
Lookup - HTTPurple.
Method - HTTPurple.
Middleware - HTTPurple.
NodeMiddleware - HTTPurple.
Path - HTTPurple.
Query - HTTPurple.
Request - HTTPurple.
Response - HTTPurple.
Routes - HTTPurple.
Server - HTTPurple.
Status - HTTPurple.
Utils - HTTPurple.
Validation - HTTPurple.
Version