Stability | experimental |
---|---|
Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Iteratees for requests.
- request :: Monad m => Int -> Int -> Iteratee ByteString m Request
- requestLine :: Monad m => Iteratee ByteString m Request
Iteratees
request :: Monad m => Int -> Int -> Iteratee ByteString m RequestSource
Get the next full request from a netLinesEmpty
-splitted byte
stream. If the request is invalid or the stream ends prematurely an
iteratee error is thrown. The first Int
specifies the maximum
header content length. The second Int
specifies the maximum number
of headers. Excess data is truncated safely in constant space.
requestLine :: Monad m => Iteratee ByteString m RequestSource
Get the next request line from a netLinesEmpty
-splitted byte
stream. If the request is invalid or the stream ends prematurely an
iteratee error is thrown.