head
Extract the first element of a list, which must be non-empty.
O(1) Extract the first element of a ByteString, which must be non-empty.
O(1) Extract the first element of a ByteString, which must be non-empty.
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.
O(1) Returns the first character of a Text, which must be non-empty. Subject to fusion.
The Header data type pairs header names & values.
headerMap is a straight assoc list for translating between header names and values.
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.
A string with case insensitive equality and comparisons.
HTTP headers.
headerToChallenge base www_auth tries to convert the WWW-Authenticate header www_auth into a Challenge value.
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.
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.
Show more results