Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype HeaderName = HeaderName {
- unHeaderName :: Text
- newtype HeaderValue = HeaderValue {}
- data Header = Header {
- name :: HeaderName
- value :: HeaderValue
Documentation
newtype HeaderName Source #
The name of a header.
Instances
newtype HeaderValue Source #
The value of a header.
Instances
An HTTP header.
Header | |
|
Instances
Eq Header Source # | |
Show Header Source # | |
Generic Header Source # | |
FromJSON Header Source # | |
Defined in Polysemy.Http.Data.Header parseJSON :: Value -> Parser Header parseJSONList :: Value -> Parser [Header] | |
ToJSON Header Source # | |
Defined in Polysemy.Http.Data.Header toEncoding :: Header -> Encoding toJSONList :: [Header] -> Value toEncodingList :: [Header] -> Encoding | |
type Rep Header Source # | |
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))) |