Stability | experimental |
---|---|

Maintainer | Ertugrul Soeylemez <es@ertes.de> |

Iteratees for response.

- response :: Monad m => Int -> Int -> Iteratee ByteString m Response
- responseLine :: Monad m => Iteratee ByteString m Response

# Iteratees

response :: Monad m => Int -> Int -> Iteratee ByteString m ResponseSource

Get the next full response from a `netLinesEmpty`

-splitted byte
stream. If the response 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.

responseLine :: Monad m => Iteratee ByteString m ResponseSource

Get the next response line form `netLinesEmpty`

-splitted stream.
If the response line is invalid or the stream ended prematurely, then
an iteratee error is thrown.