amazonka-core-2.0: Core data types and functionality for Amazonka libraries.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Defined in Amazonka.Data.Headers

ToHeader Text Source # 
Instance details

Defined in Amazonka.Data.Headers

ToHeader Integer Source # 
Instance details

Defined in Amazonka.Data.Headers

ToHeader Natural Source # 
Instance details

Defined in Amazonka.Data.Headers

ToHeader Int Source # 
Instance details

Defined in Amazonka.Data.Headers

Methods

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

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

Defined in Amazonka.Data.Sensitive

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

Defined in Amazonka.Data.Headers

Methods

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

ToText a => ToHeader [a] Source # 
Instance details

Defined in Amazonka.Data.Headers

Methods

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

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

A case-insensitive name of a header field.

This is the part of the header field before the colon: HeaderName: some value

type Header = (HeaderName, ByteString) Source #

A full HTTP header field with the name and value separated.

E.g. "Content-Length: 28" parsed into a Header would turn into ("Content-Length", "28")

hContentType :: HeaderName Source #

Content-Type

Since: http-types-0.7.0