firefly-0.1.0.1: A simple HTTP server framework

Safe HaskellNone
LanguageHaskell2010

Web.Firefly.Request

Synopsis

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 #

Calls through to pathInfo. Returns the path's individual / separated chunks. '

getMethod :: ReqReader m => m Text Source #

Gets the HTTP method of the current request

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

getHeader :: ReqReader m => Text -> m (Maybe Text) Source #

Gets the headers of the request

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

getBody :: ReqReader m => m Text Source #

Gets full body 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

getCookie :: ReqReader m => Text -> m (Maybe Text) Source #

Get the value for a cookie if it is set

isSecure :: ReqReader m => m Bool Source #

Calls through to isSecure

waiRequest :: ReqReader m => m Request Source #

Exposes the underlying Request.