hreq-conduit-0.1.0.0: Conduit streaming support for Hreq.

Safe HaskellNone
LanguageHaskell2010

Hreq.Conduit.Internal.StreamBody

Contents

Description

This module provides functionality for working with a streaming request body.

Synopsis

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 # 
Instance details

Defined in Hreq.Conduit.Internal.StreamBody

Methods

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