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

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

Network.AWS.Data.Body

Description

 
Synopsis

Documentation

newtype RsBody Source #

A streaming, exception safe response body.

Constructors

RsBody 
Instances
Show RsBody Source # 
Instance details

Defined in Network.AWS.Data.Body

newtype ChunkSize Source #

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

See: defaultChunk.

Constructors

ChunkSize Int 
Instances
Enum ChunkSize Source # 
Instance details

Defined in Network.AWS.Data.Body

Eq ChunkSize Source # 
Instance details

Defined in Network.AWS.Data.Body

Integral ChunkSize Source # 
Instance details

Defined in Network.AWS.Data.Body

Num ChunkSize Source # 
Instance details

Defined in Network.AWS.Data.Body

Ord ChunkSize Source # 
Instance details

Defined in Network.AWS.Data.Body

Real ChunkSize Source # 
Instance details

Defined in Network.AWS.Data.Body

Show ChunkSize Source # 
Instance details

Defined in Network.AWS.Data.Body

ToLog ChunkSize Source # 
Instance details

Defined in Network.AWS.Data.Body

defaultChunkSize :: ChunkSize Source #

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 Source #

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.

Instances
Show ChunkedBody Source # 
Instance details

Defined in Network.AWS.Data.Body

ToBody ChunkedBody Source # 
Instance details

Defined in Network.AWS.Data.Body

data HashedBody Source #

An opaque request body containing a SHA256 hash.

Instances
Show HashedBody Source # 
Instance details

Defined in Network.AWS.Data.Body

IsString HashedBody Source # 
Instance details

Defined in Network.AWS.Data.Body

ToBody HashedBody Source # 
Instance details

Defined in Network.AWS.Data.Body

ToHashedBody HashedBody Source # 
Instance details

Defined in Network.AWS.Data.Body

data RqBody Source #

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

Instances
Show RqBody Source # 
Instance details

Defined in Network.AWS.Data.Body

IsString RqBody Source # 
Instance details

Defined in Network.AWS.Data.Body

Methods

fromString :: String -> RqBody #

ToBody RqBody Source # 
Instance details

Defined in Network.AWS.Data.Body

Methods

toBody :: RqBody -> RqBody Source #

class ToHashedBody a where Source #

Anything that can be safely converted to a HashedBody.

Methods

toHashed :: a -> HashedBody Source #

Convert a value to a hashed request body.

class ToBody a where Source #

Anything that can be converted to a streaming request Body.

Minimal complete definition

Nothing

Methods

toBody :: a -> RqBody Source #

Convert a value to a request body.

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

Convert a value to a request body.

Instances
ToBody ByteString Source # 
Instance details

Defined in Network.AWS.Data.Body

ToBody ByteString Source # 
Instance details

Defined in Network.AWS.Data.Body

ToBody Text Source # 
Instance details

Defined in Network.AWS.Data.Body

Methods

toBody :: Text -> RqBody Source #

ToBody Value Source # 
Instance details

Defined in Network.AWS.Data.Body

Methods

toBody :: Value -> RqBody Source #

ToBody String Source # 
Instance details

Defined in Network.AWS.Data.Body

Methods

toBody :: String -> RqBody Source #

ToBody Text Source # 
Instance details

Defined in Network.AWS.Data.Body

Methods

toBody :: Text -> RqBody Source #

ToBody Element Source # 
Instance details

Defined in Network.AWS.Data.Body

ToBody QueryString Source # 
Instance details

Defined in Network.AWS.Data.Body

ToBody RqBody Source # 
Instance details

Defined in Network.AWS.Data.Body

Methods

toBody :: RqBody -> RqBody Source #

ToBody HashedBody Source # 
Instance details

Defined in Network.AWS.Data.Body

ToBody ChunkedBody Source # 
Instance details

Defined in Network.AWS.Data.Body

ToBody Base64 Source # 
Instance details

Defined in Network.AWS.Data.Base64

Methods

toBody :: Base64 -> RqBody Source #

ToHashedBody a => ToBody (Maybe a) Source # 
Instance details

Defined in Network.AWS.Data.Body

Methods

toBody :: Maybe a -> RqBody Source #

ToBody (HashMap Text Value) Source # 
Instance details

Defined in Network.AWS.Data.Body