Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- rqPath :: Request -> ByteString
- pathInfo :: Request -> [Text]
- pathSafeTail :: Request -> ([ByteString], [ByteString])
- reqSafeTail :: Request -> Request
- reqNoPath :: Request -> Request
- pathIsEmpty :: Request -> Bool
- splitMatrixParameters :: Text -> (Text, Text)
- parsePathInfo :: Request -> [Text]
- processedPathInfo :: Request -> [Text]
Documentation
rqPath :: Request -> ByteString Source #
pathSafeTail :: Request -> ([ByteString], [ByteString]) Source #
reqSafeTail :: Request -> Request Source #
pathIsEmpty :: Request -> Bool Source #
Like `null . pathInfo`, but works with redundant trailing slashes.
parsePathInfo :: Request -> [Text] Source #
processedPathInfo :: Request -> [Text] Source #
Returns a processed pathInfo from the request.
In order to handle matrix parameters in the request correctly, the raw pathInfo needs to be processed, so routing works as intended. Therefor this function should be used to access the pathInfo for routing purposes.