Safe Haskell | None |
---|---|
Language | Haskell98 |
- data ParseError
- parseRequest :: IO ByteString -> ByteString -> Bool -> IO (Request, ByteString)
- parseRequestLine :: ByteString -> (Method, ByteString, HTTPVersion)
- parseMethod :: ByteString -> Method
- parseHTTPVersion :: ByteString -> HTTPVersion
- parseHeaders :: IO ByteString -> ByteString -> IO ([(ByteString, ByteString)], ByteString)
- parseHeader :: ByteString -> (ByteString, ByteString)
- parseToken :: ByteString -> (ByteString, ByteString)
- takeLine :: IO ByteString -> ByteString -> IO (ByteString, ByteString)
Documentation
data ParseError Source #
parseRequest :: IO ByteString -> ByteString -> Bool -> IO (Request, ByteString) Source #
parseRequestLine :: ByteString -> (Method, ByteString, HTTPVersion) Source #
parseMethod :: ByteString -> Method Source #
parseHeaders :: IO ByteString -> ByteString -> IO ([(ByteString, ByteString)], ByteString) Source #
parseHeader :: ByteString -> (ByteString, ByteString) Source #
parseToken :: ByteString -> (ByteString, ByteString) Source #
takeLine :: IO ByteString -> ByteString -> IO (ByteString, ByteString) Source #
find a line terminated by a '\r\n'