Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides functionality for working with a streaming request body.
Synopsis
- type BodyConduit = ConduitT () ByteString IO ()
- newtype ReqBodySource = ReqBodySource BodyConduit
- type ConduitReqBody = StreamBody OctetStream ReqBodySource
- srcToPopperIO :: BodyConduit -> GivesPopper ()
Documentation
type BodyConduit = ConduitT () ByteString IO () Source #
The conduit type representing a streaming request body.
newtype ReqBodySource Source #
The Request body Stream is treated as a chucked body stream RequestBodyStreamChunked
.
Ensure your server supports chucked body stream.
Instances
HasStreamBody ReqBodySource Source # | |
Defined in Hreq.Conduit.Internal.StreamBody givePopper :: ReqBodySource -> GivesPooper () |
type ConduitReqBody = StreamBody OctetStream ReqBodySource Source #
For use in API endpoint type definition >>> type ExampleQuery = "post" :> ConduitReqBody :> RawResponse POST
Helpers
srcToPopperIO :: BodyConduit -> GivesPopper () Source #
This is taken from Network.HTTP.Client.Conduit without modifications.
>>>
import Hreq.Core.API
>>>
import Hreq.Conduit.Internal.StreamBody