Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class HasHeaders a where Source #
headers :: a -> RequestHeaders Source #
class HasRequest a where Source #
getRequest :: a -> Request Source #
fromRequest :: Request -> Req Source #
lookupHeader :: HasHeaders r => HeaderName -> r -> [ByteString] Source #
lookupQuery :: HasQuery r => ByteString -> r -> [ByteString] Source #
lookupCookie :: HasCookies r => ByteString -> r -> [ByteString] Source #
lookupSegment :: HasPath r => Word -> r -> Maybe ByteString Source #