- token_pred :: Word8 -> Bool
- separators_pred :: Word8 -> Bool
- token :: Parser [Word8]
- separatorSet :: [Word8]
- separators :: Parser Word8
- comment :: Parser [Word8]
- httpVersion :: Parser HttpVersion
- method :: Parser Method
- requestLine :: Parser (Method, RequestUri, HttpVersion)
- header :: Parser (ByteString, ByteString)
- data Header
- data Request = Request {
- rqMethod :: Method
- rqUri :: RequestUri
- rqVersion :: (Int, Int)
- rqHeaders :: [(ByteString, ByteString)]
- rqBody :: ByteString
- type HttpVersion = (Int, Int)
- data Method
- = GET
- | HEAD
- | POST
- | PUT
- | DELETE
- | TRACE
- | OPTIONS
- | CONNECT
- | EXTENSIONMETHOD ByteString
- data RequestUri
- = Asterisk
- | AbsoluteUri URI
- | AbsolutePath ByteString
- | Authority (Maybe URIAuth)
Documentation
token_pred :: Word8 -> BoolSource
Basic Parser Constructs for RFC 2616
separators_pred :: Word8 -> BoolSource
separatorSet :: [Word8]Source
Request | |
|
type HttpVersion = (Int, Int)Source