Module
HTTPurple.NodeMiddleware
- Package
- purescript-httpurple
- Repository
- sigma-andex/purescript-httpurple
#MiddlewareResult Source
newtype MiddlewareResult :: forall k. k -> Type
newtype MiddlewareResult input
Constructors
Instances
Newtype (NodeMiddlewareStack input output) (MiddlewareResult input -> ContT (MiddlewareResult output) Effect (MiddlewareResult input))
#MiddlewareResultR Source
type MiddlewareResultR :: Row Type
type MiddlewareResultR = (middlewareResult :: NextInvocation, request :: IncomingMessage IMServer, response :: ServerResponse)
#NextInvocation Source
#NodeMiddleware Source
newtype NodeMiddleware :: forall k. k -> Type
newtype NodeMiddleware extended
Constructors
NodeMiddleware (EffectFn3 (IncomingMessage IMServer) ServerResponse (EffectFn1 (UndefinedOr Error) Unit) (Effect Unit))
Instances
Newtype (NodeMiddleware extended) _
#NodeMiddlewareStack Source
newtype NodeMiddlewareStack :: Row Type -> Row Type -> Type
newtype NodeMiddlewareStack input output
Constructors
NodeMiddlewareStack (MiddlewareResult input -> ContT (MiddlewareResult output) Effect (MiddlewareResult input))
Instances
Newtype (NodeMiddlewareStack input output) (MiddlewareResult input -> ContT (MiddlewareResult output) Effect (MiddlewareResult input))
#callNextWithError Source
callNextWithError :: EffectFn1 NextHandlerArg Unit -> Error -> Effect Unit
#UsingMiddleware Source
class UsingMiddleware :: Row Type -> Row Type -> Row Type -> Constraint
class UsingMiddleware input thru output | input thru -> output where
Members
usingMiddleware :: NodeMiddleware thru -> MiddlewareResult input -> ContT (MiddlewareResult output) Effect (MiddlewareResult input)
Instances
(Union input thru tmp, Union tmp tmp2 output) => UsingMiddleware input thru output
#dontCallNext Source
dontCallNext :: forall (m :: Type -> Type). Applicative m => m Unit
- 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