Module
Payload.Internal.Url
- Package
- purescript-payload
- Repository
- hoodunit/purescript-payload
#WriteUrl Source
class WriteUrl (urlParts :: UrlList) params where
Members
writeUrl :: UrlListProxy urlParts -> Record params -> String
Instances
WriteUrl UrlNil params
(IsSymbol key, Cons key valType from params, ToParam valType, WriteUrl rest params) => WriteUrl (UrlCons (Key key) rest) params
(IsSymbol lit, WriteUrl rest params) => WriteUrl (UrlCons (Lit lit) rest) params
(IsSymbol multiKey, Cons multiKey (List String) from params) => WriteUrl (UrlCons (Multi multiKey) UrlNil) params
#MatchUrl Source
class MatchUrl (urlParts :: UrlList) params from to | urlParts -> from to where
Members
match :: UrlListProxy urlParts -> Proxy (Record params) -> Record from -> List String -> Either String (Record to)
Instances
(TypeEquals (Record from) (Record to)) => MatchUrl UrlNil params from to
(IsSymbol key, Cons key valType from to, Lacks key from, FromSegments valType) => MatchUrl (UrlCons (Multi key) UrlNil) to from to
(IsSymbol key, MatchUrl rest params from' to, Cons key valType from from', Cons key valType _params params, Lacks key from, FromParam valType) => MatchUrl (UrlCons (Key key) rest) params from to
(IsSymbol lit, MatchUrl rest params from to) => MatchUrl (UrlCons (Lit lit) rest) params from to
- 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