amazonka-core-1.4.5: Core data types and functionality for Amazonka libraries.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Data.Body

Description

 

Synopsis

Documentation

newtype RsBody #

A streaming, exception safe response body.

Instances

newtype ChunkSize #

Specifies the transmitted size of the 'Transfer-Encoding' chunks.

See: defaultChunk.

Constructors

ChunkSize Int 

Instances

Enum ChunkSize # 
Eq ChunkSize # 
Integral ChunkSize # 
Num ChunkSize # 
Ord ChunkSize # 
Real ChunkSize # 
Show ChunkSize # 
ToLog ChunkSize # 

Methods

build :: ChunkSize -> Builder #

defaultChunkSize :: ChunkSize #

The default chunk size of 128 KB. The minimum chunk size accepted by AWS is 8 KB, unless the entirety of the request is below this threshold.

A chunk size of 64 KB or higher is recommended for performance reasons.

data ChunkedBody #

An opaque request body which will be transmitted via Transfer-Encoding: chunked.

Invariant: Only services that support chunked encoding can accept a ChunkedBody. (Currently S3.) This is enforced by the type signatures emitted by the generator.

data RqBody #

Invariant: only services that support _both_ standard and chunked signing expose RqBody as a parameter.

Instances

class ToHashedBody a where #

Anything that can be safely converted to a HashedBody.

Minimal complete definition

toHashed

Methods

toHashed :: a -> HashedBody #

Convert a value to a hashed request body.

class ToBody a where #

Anything that can be converted to a streaming request Body.

Methods

toBody :: a -> RqBody #

Convert a value to a request body.

toBody :: ToHashedBody a => a -> RqBody #

Convert a value to a request body.