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

Amazonka.Data.Headers

Description

 
Synopsis

Documentation

class ToHeader a where Source #

Minimal complete definition

Nothing

Methods

toHeader :: HeaderName -> a -> [Header] Source #

default toHeader :: ToText a => HeaderName -> a -> [Header] Source #

Instances

Instances details
ToHeader Int Source # 
Instance details

Defined in Amazonka.Data.Headers

Methods

toHeader :: HeaderName -> Int -> [Header] Source #

ToHeader Integer Source # 
Instance details

Defined in Amazonka.Data.Headers

ToHeader Natural Source # 
Instance details

Defined in Amazonka.Data.Headers

ToHeader ByteString Source # 
Instance details

Defined in Amazonka.Data.Headers

ToHeader Text Source # 
Instance details

Defined in Amazonka.Data.Headers

ToText a => ToHeader (Maybe a) Source # 
Instance details

Defined in Amazonka.Data.Headers

Methods

toHeader :: HeaderName -> Maybe a -> [Header] Source #

ToHeader a => ToHeader (Sensitive a) Source # 
Instance details

Defined in Amazonka.Data.Sensitive

(ToByteString k, ToByteString v) => ToHeader (HashMap k v) Source # 
Instance details

Defined in Amazonka.Data.Headers

Methods

toHeader :: HeaderName -> HashMap k v -> [Header] Source #

class ToHeaders a where Source #

Methods

toHeaders :: a -> [Header] Source #

Instances

Instances details
(ToByteString k, ToByteString v) => ToHeaders (HashMap k v) Source # 
Instance details

Defined in Amazonka.Data.Headers

Methods

toHeaders :: HashMap k v -> [Header] Source #

(=#) :: ToHeader a => HeaderName -> a -> [Header] infixr 7 Source #

type HeaderName = CI ByteString #

Header name

type Header = (HeaderName, ByteString) #

Header