Module

Network.HTTP.Types.Header

Package
purescript-http-types
Repository
chrisdotcode/purescript-http-types

#HeaderValue Source

data HeaderValue

A header value is either a string by itself (e.g.: 'text/html; charset=UTF-8'), or a non-empty list of strings in the case of a header that might be included multiple different times (e.g.: the Vary header with values ['Origin', 'Accept-Encoding']).

Constructors

Instances

#headerNameFromString Source

headerNameFromString :: String -> HeaderName

Creates a 'HeaderName' from a string. If the given string is a non-standard HTTP header name, then a 'Custom' 'HeaderName' is returned.

#Headers Source

type Headers = Map HeaderName HeaderValue

A type alias for a group of HTTP headers.