head

head :: [a] -> a
base Prelude, base Data.List
Extract the first element of a list, which must be non-empty.
head :: ByteString -> Char
bytestring Data.ByteString.Char8, bytestring Data.ByteString.Lazy.Char8
O(1) Extract the first element of a ByteString, which must be non-empty.
head :: ByteString -> Word8
bytestring Data.ByteString.Lazy
O(1) Extract the first element of a ByteString, which must be non-empty.
head :: ByteString -> Word8
bytestring Data.ByteString
O(1) Extract the first element of a ByteString, which must be non-empty. An exception will be thrown in the case of an empty ByteString.
head :: Text -> Char
text Data.Text, text Data.Text.Lazy
O(1) Returns the first character of a Text, which must be non-empty. Subject to fusion.
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.
headRequest :: String -> Request_String
HTTP Network.HTTP
A convenience constructor for a HEAD Request. If the URL isn't syntactically valid, the function raises an error.
HEAD :: RequestMethod
HTTP Network.HTTP.Base
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.
hLookAhead :: Handle -> IO Char
base System.IO, base GHC.IO.Handle
Computation hLookAhead returns the next character from the handle without removing it from the input buffer, blocking until a character is available. This operation may fail with: * isEOFError if the end of file has been reached.
cgiAddHeader :: MonadCGI m => HeaderName -> String -> m ()
cgi Network.CGI.Monad

Show more results