polysemy-http-0.2.0.1: Polysemy effect for http-client
Safe HaskellNone
LanguageHaskell2010

Polysemy.Http.Data.Header

Synopsis

Documentation

newtype HeaderName Source #

The name of a header.

Constructors

HeaderName 

Fields

Instances

Instances details
Eq HeaderName Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Show HeaderName Source # 
Instance details

Defined in Polysemy.Http.Data.Header

IsString HeaderName Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Generic HeaderName Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Associated Types

type Rep HeaderName :: Type -> Type #

FromJSON HeaderName Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Methods

parseJSON :: Value -> Parser HeaderName

parseJSONList :: Value -> Parser [HeaderName]

ToJSON HeaderName Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Methods

toJSON :: HeaderName -> Value

toEncoding :: HeaderName -> Encoding

toJSONList :: [HeaderName] -> Value

toEncodingList :: [HeaderName] -> Encoding

type Rep HeaderName Source # 
Instance details

Defined in Polysemy.Http.Data.Header

type Rep HeaderName = D1 ('MetaData "HeaderName" "Polysemy.Http.Data.Header" "polysemy-http-0.2.0.1-inplace" 'True) (C1 ('MetaCons "HeaderName" 'PrefixI 'True) (S1 ('MetaSel ('Just "unHeaderName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype HeaderValue Source #

The value of a header.

Constructors

HeaderValue 

Fields

Instances

Instances details
Eq HeaderValue Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Show HeaderValue Source # 
Instance details

Defined in Polysemy.Http.Data.Header

IsString HeaderValue Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Generic HeaderValue Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Associated Types

type Rep HeaderValue :: Type -> Type #

FromJSON HeaderValue Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Methods

parseJSON :: Value -> Parser HeaderValue

parseJSONList :: Value -> Parser [HeaderValue]

ToJSON HeaderValue Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Methods

toJSON :: HeaderValue -> Value

toEncoding :: HeaderValue -> Encoding

toJSONList :: [HeaderValue] -> Value

toEncodingList :: [HeaderValue] -> Encoding

type Rep HeaderValue Source # 
Instance details

Defined in Polysemy.Http.Data.Header

type Rep HeaderValue = D1 ('MetaData "HeaderValue" "Polysemy.Http.Data.Header" "polysemy-http-0.2.0.1-inplace" 'True) (C1 ('MetaCons "HeaderValue" 'PrefixI 'True) (S1 ('MetaSel ('Just "unHeaderValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Header Source #

An HTTP header.

Constructors

Header 

Instances

Instances details
Eq Header Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Methods

(==) :: Header -> Header -> Bool #

(/=) :: Header -> Header -> Bool #

Show Header Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Generic Header Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Associated Types

type Rep Header :: Type -> Type #

Methods

from :: Header -> Rep Header x #

to :: Rep Header x -> Header #

FromJSON Header Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Methods

parseJSON :: Value -> Parser Header

parseJSONList :: Value -> Parser [Header]

ToJSON Header Source # 
Instance details

Defined in Polysemy.Http.Data.Header

Methods

toJSON :: Header -> Value

toEncoding :: Header -> Encoding

toJSONList :: [Header] -> Value

toEncodingList :: [Header] -> Encoding

type Rep Header Source # 
Instance details

Defined in Polysemy.Http.Data.Header

type Rep Header = D1 ('MetaData "Header" "Polysemy.Http.Data.Header" "polysemy-http-0.2.0.1-inplace" 'False) (C1 ('MetaCons "Header" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HeaderName) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HeaderValue)))