Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module defining the Header and Headers types and a parser with a FromJSON instance for the Headers type.
Headers are parsed from a semi-colon separated sequence of key:value pairs. Some examples:
"key: value" "key1: value1; key2: value2"
Keys can be any sequence of ASCII characters excluding :
and must not be
all whitespace. For example:
" : value"
is invalid.
Values can be any sequence of ASCII characters excluding ';' and may be all whitespace. For example:
"key : "
is valid.
Documentation
A representation of a single header
Instances
Eq Header Source # | |
Show Header Source # | |
Generic Header Source # | |
ToJSON Header Source # | |
Defined in Testing.CurlRunnings.Internal.Headers | |
type Rep Header Source # | |
Defined in Testing.CurlRunnings.Internal.Headers type Rep Header = D1 (MetaData "Header" "Testing.CurlRunnings.Internal.Headers" "curl-runnings-0.16.0-KGucIP1ebVW8qKkwcHpkr4" False) (C1 (MetaCons "Header" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |
Simple container for a list of headers, useful for a vehicle for defining a fromJSON