http-kit-0.5.1: A low-level HTTP library

Safe HaskellNone

Network.HTTP.Toolkit.Request

Synopsis

Documentation

readRequestWithLimit :: Limit -> Bool -> InputStream -> IO (Request BodyReader)Source

Read request from provided InputStream.

The second argument is passed to makeChunkedReader.

Throws:

sendRequest :: (ByteString -> IO ()) -> Request BodyReader -> IO ()Source

Send an HTTP request.

Note: The first argument to this function is used to send the data. For space efficiency it may be called multiple times.

determineRequestBodyType :: [Header] -> BodyTypeSource

Determine the message BodyType from a given list of message headers (as of RFC 2616, Section 4.4).