snap-core-0.9.4.1: Snap: A Haskell Web Framework (core interfaces and types)

Safe HaskellNone

Snap.Types.Headers

Contents

Description

An opaque data type for HTTP headers. Intended to be imported qualified, i.e:

 import           Snap.Types.Headers (Headers)
 import qualified Snap.Types.Headers as H

 foo :: Headers
 foo = H.empty

Synopsis

Headers type

Headers creation

Predicates

Lookup

Adding/setting headers

Deleting

Traversal

fold :: (a -> CI ByteString -> [ByteString] -> a) -> a -> Headers -> aSource

Lists