-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Conduit helpers for the req HTTP client library
--   
--   Conduit helpers for the req HTTP client library.
@package req-conduit
@version 1.0.0


-- | The module extends functionality available in <a>Network.HTTP.Req</a>
--   with Conduit helpers for streaming big request bodies.
--   
--   The package re-uses some pieces of code from the <tt>http-conduit</tt>
--   package, but not to the extent that depending on that package becomes
--   reasonable.
module Network.HTTP.Req.Conduit

-- | This body option streams contents of request body from the given
--   <a>Source</a>. The <a>Int64</a> value is size of the data in bytes.
--   
--   Using of this body option does not set the <tt>Content-Type</tt>
--   header.
data ReqBodySource
ReqBodySource :: Int64 -> Source IO ByteString -> ReqBodySource

-- | Turn <tt><a>Response</a> <a>BodyReader</a></tt> into a
--   <a>Producer</a>.
responseBodySource :: MonadIO m => Response BodyReader -> Producer m ByteString
instance Network.HTTP.Req.HttpBody Network.HTTP.Req.Conduit.ReqBodySource
