Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
Main type for routes in the API. Used to represent the URL minus the actual endpoint URL as well as the query string and the HTTP method used to communicate with the server.
type URLParam = [(Text, Text)] Source #
Alias to (Text, Maybe Text)
used to store each query that gets
tacked onto the request.
(=.) :: ToQuery a => Text -> a -> [(Text, Text)] Source #
Convenience function for building URLParam
s. Right-hand argument must
have a ToQuery
instance so it can be converted to the appropriate
representation in a query string. Query values do not need to be
escaped.
>>>
"api_type" =. ("json" :: Text)
("api_type", Just "json")