Module

Payload.Guards

Package
purescript-payload
Repository
hoodunit/purescript-payload

#headers Source

headers :: Request -> Aff Headers

Guard for retrieving request headers

#rawRequest Source

rawRequest :: Request -> Aff Request

Guard for retrieving raw underlying request

#cookies Source

cookies :: Request -> Aff (Map String String)

Guard for retrieving request cookies

#ToGuardVal Source

class ToGuardVal a b  where

A guard function must return a value which can be converted to the type given in the guard spec. Guards can also fail and return a response directly, by returning Either.

Members

Instances

#RunGuards Source

class RunGuards (guardNames :: GuardList) (guardsSpec :: Row Type) (allGuards :: Row Type) (results :: Row Type) (routeGuardSpec :: Row Type) | guardNames guardsSpec allGuards -> routeGuardSpec where

Members

Instances

  • RunGuards GNil guardsSpec allGuards routeGuardSpec routeGuardSpec