Idris2Doc : HTTP.Header

HTTP.Header

(source)

Reexports

importpublic HTTP.Header.Types

Definitions

recordHeaders : Type
Totality: total
Visibility: export
Constructor: 
MkHeaders : HeaderMap->Headers

Projection: 
.headers : Headers->HeaderMap
kvList : Headers->List (String, ByteString)
  Converts a set of HTTP headers to a list of name-value pairs.

Totality: total
Visibility: export
emptyHeaders : Headers
Totality: total
Visibility: export
insertHeader : String->ByteString->Headers->Headers
  Inserts a name-value pair into a set of header.

Since HTTP header names are case-insensitive, the name
will be converted to all upper-case letters.

Totality: total
Visibility: export
lookupUpperCaseHeader : String->Headers->MaybeByteString
  Looks up the header of the given name.

`name` has to be in all upper-case letters.

Totality: total
Visibility: export
lookupHeader : String->Headers->MaybeByteString
  Looks up the header of the given name.

`name` is converted to all upper-case letters before
searching in the dictionary of headers. Use `lookupUpperCaseHeader`
if `name` is already in upper-case letters.

Totality: total
Visibility: export
Accept : String
Totality: total
Visibility: public export
Authorization : String
Totality: total
Visibility: public export
Content_Length : String
Totality: total
Visibility: public export
Content_Type : String
Totality: total
Visibility: public export
Content_Disposition : String
Totality: total
Visibility: public export
accept : Headers->MediaRanges
  Reads the `Accept` header and converts it to a list of media types.

Totality: total
Visibility: export
acceptsMedia : Headers->MediaType->Bool
  Checks if the given media type can be handled according to
the given request headers.

Totality: total
Visibility: export
contentDisposition : Headers->MaybeContentDisp
  Reads the `Content-Disposition` header and converts it to a media type.

Totality: total
Visibility: export
contentType : Headers->MaybeContentType
  Reads the `Content-Type` header and converts it to a media type.

Totality: total
Visibility: export
hasContentType : Headers->MediaType->Bool
  Checks if the given media type corresponds to the media type
of the request's content.

Totality: total
Visibility: export
contentLength : Headers->Nat
  Reads the `Content-Length` header and converts it to a natural number

Totality: total
Visibility: export
parseHeaders : Origin->ByteString->Either (ParseErrorVoid) Headers
Totality: total
Visibility: export
parseHeadersMay : ByteString->MaybeHeaders
Totality: total
Visibility: export
testParseHeaders : ByteString->IO ()
Totality: total
Visibility: export