hreq-core-0.1.0.0: Core functionality for Hreq Http client library

Safe HaskellNone
LanguageHaskell2010

Hreq.Core.API.Streaming

Contents

Description

This module provides classes that one has to implement in order to use a streaming library such as Conduit for streaming.

Synopsis

Client Streaming

type StreamVerb method = Verb method '[ResStream OctetStream ()] Source #

A StreamVerb endpoint receives a stream of encoded values with the OctetStream content type.

Stream synonyms

Request Body streaming

type Pooper = IO ByteString Source #

A function which generates successive chunks of a request body, provider a single empty bytestring when no more data is available.

type NeedsPooper a = Pooper -> IO a Source #

A function which must be provided with a Popper.

newtype GivesPooper a Source #

A datatype containing a function which will provide a Pooper to a NeedsPooper. .

Constructors

GivesPooper 

Fields

Instances
Eq (GivesPooper a) Source # 
Instance details

Defined in Hreq.Core.API.Streaming

Show (GivesPooper a) Source # 
Instance details

Defined in Hreq.Core.API.Streaming

class HasStreamBody a where Source #

Methods

givePopper :: a -> GivesPooper () Source #