| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Web.Firefly.Request
- getPath :: ReqReader m => m Text
 - getPathInfo :: ReqReader m => m [Text]
 - getMethod :: ReqReader m => m Text
 - getQueryString :: ReqReader m => m Text
 - getQueries :: ReqReader m => m QueryMap
 - getQueriesMulti :: ReqReader m => m MultiQueryMap
 - getQuery :: ReqReader m => Text -> m (Maybe Text)
 - getQueryMulti :: ReqReader m => Text -> m [Text]
 - getHeader :: ReqReader m => Text -> m (Maybe Text)
 - getHeaderMulti :: ReqReader m => Text -> m [Text]
 - getHeaders :: ReqReader m => m HeaderMap
 - getBody :: ReqReader m => m Text
 - getCookies :: ReqReader m => m (Map Text [Text])
 - getCookieMulti :: ReqReader m => Text -> m [Text]
 - getCookie :: ReqReader m => Text -> m (Maybe Text)
 - isSecure :: ReqReader m => m Bool
 - waiRequest :: ReqReader m => m Request
 - pathMatches :: ReqReader m => Pattern -> m Bool
 
Documentation
getPath :: ReqReader m => m Text Source #
Calls through to rawPathInfo; returns the full path of the current
 request (without the query string)
getPathInfo :: ReqReader m => m [Text] Source #
getQueryString :: ReqReader m => m Text Source #
Calls through to rawQueryString; returns the full path of the current
 request (without the query string)
getQueries :: ReqReader m => m QueryMap Source #
Get the last set value for each query
If a query is set without a value (e.g. "/?key") it will appear in the
 map with a value of ""
getQueriesMulti :: ReqReader m => m MultiQueryMap Source #
Gets all key/values from the query string
getQuery :: ReqReader m => Text -> m (Maybe Text) Source #
Get the value for a given query. A query which was passed without a value
 (e.g. "/?key") will return Just ""
getQueryMulti :: ReqReader m => Text -> m [Text] Source #
Gets all values provided for a given query key
getHeaderMulti :: ReqReader m => Text -> m [Text] Source #
Gets the headers of the request
getHeaders :: ReqReader m => m HeaderMap Source #
Gets the headers of the request
getCookies :: ReqReader m => m (Map Text [Text]) Source #
Gets a map of cookies sent with the request.
getCookieMulti :: ReqReader m => Text -> m [Text] Source #
Get all values set for a specific cookie
waiRequest :: ReqReader m => m Request Source #
Exposes the underlying Request.
pathMatches :: ReqReader m => Pattern -> m Bool Source #
Determine whether a route matches a pattern