Module
Payload.Routable
- Package
- purescript-payload
- Repository
- hoodunit/purescript-payload
#Routable Source
#RoutableList Source
class RoutableList (routesSpecList :: RowList) (basePath :: Symbol) (baseParams :: Row Type) (baseGuards :: GuardList) (guardsSpec :: Row Type) handlers guards | routesSpecList guardsSpec -> handlers, guardsSpec -> guards where
Members
mkRouterList :: RLProxy routesSpecList -> SProxy basePath -> Proxy (Record baseParams) -> Guards baseGuards -> Proxy (Record guardsSpec) -> handlers -> guards -> RoutingTrie -> Either String RoutingTrie
Instances
RoutableList Nil basePath baseParams baseGuards guardsSpec handlers guards
(IsSymbol routeName, IsSymbol path, IsSymbol method, Union spec DefaultRequest mergedSpec, Nub mergedSpec specWithDefaults, Handleable (Route method path (Record specWithDefaults)) handler basePath baseParams baseGuards guardsSpec (Record guards), RoutableList remRoutes basePath baseParams baseGuards guardsSpec (Record handlers) (Record guards), Cons routeName handler h' handlers, Append basePath path fullPath, ParseUrl fullPath urlParts, ToSegments urlParts) => RoutableList (Cons routeName (Route method path (Record spec)) remRoutes) basePath baseParams baseGuards guardsSpec (Record handlers) (Record guards)
(IsSymbol parentName, IsSymbol basePath, IsSymbol path, Union parentSpec DefaultParentRoute mergedSpec, Nub mergedSpec parentSpecWithDefaults, TypeEquals (Record parentSpecWithDefaults) { guards :: Guards parentGuards, params :: Record parentParams | childRoutes }, Union baseParams parentParams childParams, Append baseGuards parentGuards childGuards, DecodeUrl path parentParams, Cons parentName (Record childHandlers) handlers' handlers, RowToList childRoutes childRoutesList, Append basePath path childBasePath, RoutableList childRoutesList childBasePath childParams childGuards guardsSpec (Record childHandlers) (Record guards), RoutableList remRoutes basePath baseParams baseGuards guardsSpec (Record handlers) (Record guards)) => RoutableList (Cons parentName (Routes path (Record parentSpec)) remRoutes) basePath baseParams baseGuards guardsSpec (Record handlers) (Record guards)
#HandlerEntry Source
type HandlerEntry = { handler :: RequestUrl -> Request -> Response -> Aff Outcome, route :: List Segment }
- Modules
- Payload.
Client. Client - Payload.
Client. FromResponse - Payload.
ContentType - Payload.
Cookies - Payload.
FromData - Payload.
Guards - Payload.
Handleable - Payload.
Handlers - Payload.
Headers - Payload.
Internal. GuardParsing - Payload.
Internal. MimeTypes - Payload.
Internal. Query - Payload.
Internal. QueryParsing - Payload.
Internal. Querystring. Qs - Payload.
Internal. Request - Payload.
Internal. Route - Payload.
Internal. ServerResponse - Payload.
Internal. Trie - Payload.
Internal. TypeErrors - Payload.
Internal. Url - Payload.
Internal. UrlParsing - Payload.
Internal. UrlString - Payload.
Internal. Utils - Payload.
Params - Payload.
Path - Payload.
QueryParams - Payload.
Response - Payload.
Routable - Payload.
Server - Payload.
Spec - Payload.
Status