Headers Module

Nested modules

Modules Description

Fields

Functions and values

Function or value Description

getAll target key

Full Usage: getAll target key

Parameters:
    target : List<string * string>
    key : string

Returns: Choice<string seq, string>
target : List<string * string>
key : string
Returns: Choice<string seq, string>

getFirstHeader name ctx

Full Usage: getFirstHeader name ctx

Parameters:
Returns: string option

Return the first header value with the given name.

name : string
ctx : HttpContext
Returns: string option

getHeader name ctx

Full Usage: getHeader name ctx

Parameters:
Returns: string seq

Return all headers with the given name.

name : string
ctx : HttpContext
Returns: string seq

getHeaders ctx

Full Usage: getHeaders ctx

Parameters:
Returns: IDictionary<string, string seq>

group headers by name and collect all headers in a dictionary with format String

ctx : HttpContext
Returns: IDictionary<string, string seq>

getSplitValues headers

Full Usage: getSplitValues headers

Parameters:
    headers : string seq

Returns: string seq

Split the given header values.

headers : string seq
Returns: string seq

getWeightedValues splitValues

Full Usage: getWeightedValues splitValues

Parameters:
    splitValues : string seq

Returns: (string * decimal) seq

order the given split header values by their weight (given via 'q=')

splitValues : string seq
Returns: (string * decimal) seq

parseCultureInfo

Full Usage: parseCultureInfo

Returns: string -> CultureInfo option

Parse a culture info as given in the 'Accept-Language' Header field.

Returns: string -> CultureInfo option

parseDateTime s

Full Usage: parseDateTime s

Parameters:
    s : string

Returns: DateTime option

Parse a DateTime as given in the 'Date' Header field.

s : string
Returns: DateTime option

parseDecimal s

Full Usage: parseDecimal s

Parameters:
    s : string

Returns: decimal option

Parse a decimal as given in a header field.

s : string
Returns: decimal option