Module
Payload.Server.Internal.Query
- Package
- purescript-payload
- Repository
- hoodunit/purescript-payload
#DecodeQuery Source
class DecodeQuery (queryUrlSpec :: Symbol) query | queryUrlSpec -> query where
Members
decodeQuery :: SProxy queryUrlSpec -> Proxy (Record query) -> String -> Either String (Record query)
Instances
(ParseQuery queryUrlSpec queryParts, MatchQuery queryParts query () query) => DecodeQuery queryUrlSpec query
#MatchQuery Source
class MatchQuery (queryParts :: QueryList) query from to | queryParts -> from to where
Members
matchQuery :: QueryListProxy queryParts -> Proxy (Record query) -> Record from -> Object String -> Either String (Record to)
Instances
(TypeEquals (Record from) (Record to)) => MatchQuery QueryNil query from to
(IsSymbol ourKey, Cons ourKey valType from from', Cons ourKey valType _params params, Lacks ourKey from, DecodeQueryParamMulti valType, TypeEquals (Record from') (Record to)) => MatchQuery (QueryCons (Multi ourKey) QueryNil) params from to
(IsSymbol queryKey, IsSymbol ourKey, MatchQuery rest params from' to, Cons ourKey valType from from', Cons ourKey valType _params params, Lacks ourKey from, DecodeQueryParam valType) => MatchQuery (QueryCons (Key queryKey ourKey) rest) params from to
(IsSymbol lit, MatchQuery rest query from to) => MatchQuery (QueryCons (Lit lit) rest) query from to
- Modules
- Payload.
Client - Payload.
Client. ClientApi - Payload.
Client. DecodeResponse - Payload.
Client. EncodeBody - Payload.
Client. EncodeParam - Payload.
Client. Internal. Query - Payload.
Client. Internal. Url - Payload.
Client. Options - Payload.
Client. QueryParams - Payload.
Client. Queryable - Payload.
Headers - Payload.
Internal. QueryParsing - Payload.
Internal. Route - Payload.
Internal. UrlParsing - Payload.
Internal. Utils - Payload.
ResponseTypes - Payload.
Server - Payload.
Server. ContentType - Payload.
Server. Cookies - Payload.
Server. DecodeBody - Payload.
Server. Guards - Payload.
Server. Handleable - Payload.
Server. Handlers - Payload.
Server. Internal. GuardParsing - Payload.
Server. Internal. MimeTypes - Payload.
Server. Internal. OmitEmpty - Payload.
Server. Internal. Query - Payload.
Server. Internal. Querystring. Qs - Payload.
Server. Internal. Request - Payload.
Server. Internal. ServerResponse - Payload.
Server. Internal. Trie - Payload.
Server. Internal. Url - Payload.
Server. Internal. UrlString - Payload.
Server. Params - Payload.
Server. Path - Payload.
Server. QueryParams - Payload.
Server. Response - Payload.
Server. Routable - Payload.
Server. Status - Payload.
Spec - Payload.
TypeErrors