Header

Header :: HeaderName -> String -> Header
HTTP Network.HTTP.Headers
data Header
HTTP Network.HTTP.Headers
The Header data type pairs header names & values.
HeaderName :: String -> HeaderName
cgi Network.CGI.Protocol
data HeaderName
HTTP Network.HTTP.Headers
HTTP HeaderName type, a Haskell data constructor for each specification-defined header, prefixed with Hdr and CamelCased, (i.e., eliding the - in the process.) Should you require using a custom header, there's the HdrCustom constructor which takes a String argument. Encoding HTTP header names differently, as Strings perhaps, is an equally fine choice..no decidedly clear winner, but let's stick with data constructors here.
newtype HeaderName
cgi Network.CGI.Protocol
A string with case insensitive equality and comparisons.
type Headers = [(HeaderName, String)]
cgi Network.CGI.Protocol
HTTP headers.
type HeaderSetter a = HeaderName -> String -> a -> a
HTTP Network.HTTP.Headers
module Network.HTTP.Headers
HTTP Network.HTTP.Headers
This module provides the data types for representing HTTP headers, and operations for looking up header values and working with sequences of header values in Requests and Responses. To avoid having to provide separate set of operations for doing so, we introduce a type class HasHeaders to facilitate writing such processing using overloading instead.
header :: Html -> Html
html Text.Html, xhtml Text.XHtml.Strict, xhtml Text.XHtml.Frameset, xhtml Text.XHtml.Transitional
headerMap :: [(String, HeaderName)]
HTTP Network.HTTP.Headers
headerMap is a straight assoc list for translating between header names and values.
headerToChallenge :: URI -> Header -> Maybe Challenge
HTTP Network.HTTP.Auth
headerToChallenge base www_auth tries to convert the WWW-Authenticate header www_auth into a Challenge value.
cgiAddHeader :: MonadCGI m => HeaderName -> String -> m ()
cgi Network.CGI.Monad
checkClassHeader :: HsQualType -> P (HsContext, HsName, [HsName])
haskell-src Language.Haskell.ParseUtils
checkDataHeader :: HsQualType -> P (HsContext, HsName, [HsName])
haskell-src Language.Haskell.ParseUtils
checkInstHeader :: HsQualType -> P (HsContext, HsQName, [HsType])
haskell-src Language.Haskell.ParseUtils
cookiesToHeader :: [Cookie] -> Header
HTTP Network.HTTP.Cookie
cookieToHeaders ck serialises Cookies to an HTTP request header.
findHeader :: HasHeaders a => HeaderName -> a -> Maybe String
HTTP Network.HTTP.Headers
findHeader hdrNm x looks up hdrNm in x, returning the first header that matches, if any.
getHeaders :: HasHeaders x => x -> [Header]
HTTP Network.HTTP.Headers
class HasHeaders x
HTTP Network.HTTP.Headers
HasHeaders is a type class for types containing HTTP headers, allowing you to write overloaded header manipulation functions for both Request and Response data types, for instance.
insertHeader :: HasHeaders a => HeaderSetter a
HTTP Network.HTTP.Headers
insertHeader hdr val x inserts a header with the given header name and value. Does not check for existing headers with same name, allowing duplicates to be introduce (use replaceHeader if you want to avoid this.)

Show more results