Module

Solid.Start.Middleware

Package
purescript-purs-solid
Repository
arazorda/purs-solid

Start-mode middleware. Set start.middleware to a module that exports middleware :: MiddlewareFn.

#Middleware Source

type Middleware = RequestEvent -> Request -> (Request -> Aff Response) -> Aff Response

Gets the request event and the request; next continues down the chain with the request (the one given, or a rewritten one).

#MiddlewareFn Source