ihttp-0.2.0: Incremental HTTP iteratee

Stabilitybeta
MaintainerErtugrul Soeylemez <es@ertes.de>

Network.IHttp.Simple

Contents

Description

Simple interface to the HTTP iteratees.

Synopsis

Types

data HttpConfig Source

HTTP iteratees configuration.

Constructors

HttpConfig 

Fields

httpMaxLine :: Int

Maximum protocol line length.

httpMaxHeaderContent :: Int

Maximum header content length.

httpMaxHeaders :: Int

Maximum number of headers.

defHttpConfig :: HttpConfigSource

Default HTTP iteratee configuration. Other than in very special applications you should never need to change these defaults.

Iteratees

getRequest :: Monad m => HttpConfig -> Iteratee ByteString m RequestSource

Get the next full request from the given raw byte stream.

getResponse :: Monad m => HttpConfig -> Iteratee ByteString m ResponseSource

Get the next full response from the given raw byte stream.