Module
HTTPurple.Server
- Package
- purescript-httpurple
- Repository
- sigma-andex/purescript-httpurple
#ListenOptions Source
type ListenOptions = Record ListenOptionsR
#BasicRoutingSettings Source
type BasicRoutingSettings route = Record (RoutingSettingsR route () ())
#ExtRoutingSettings Source
type ExtRoutingSettings :: Type -> Row Type -> Row Type -> Type
type ExtRoutingSettings route input output = Record (RoutingSettingsR route output) + (MiddlewareSettingsR input output)
#MiddlewareSettingsR Source
type MiddlewareSettingsR :: Row Type -> Row Type -> Row Type
type MiddlewareSettingsR input output = (nodeMiddleware :: NodeMiddlewareStack input output)
#RoutingSettingsR Source
type RoutingSettingsR :: Type -> Row Type -> Row Type -> Row Type
type RoutingSettingsR route output r = (route :: RouteDuplex' route, router :: ExtRequest route output -> ResponseM | r)
#serve Source
serve :: forall route from fromRL via missing missingList. RowToList missing missingList => FillableFields missingList () missing => Union via missing (ListenOptionsR) => RowToList from fromRL => JustifiableFields fromRL from () via => Record from -> BasicRoutingSettings route -> ServerM
#serveNodeMiddleware Source
serveNodeMiddleware :: forall route from fromRL via missing missingList input output outputRL thru. RowToList missing missingList => FillableFields missingList () missing => Union via missing (ListenOptionsR) => RowToList from fromRL => JustifiableFields fromRL from () via => Union output thru output => RowToList output outputRL => KeysRL outputRL => Nub (RequestR route output) (RequestR route output) => Record from -> ExtRoutingSettings route input output -> ServerM
- 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