Get the first value of a header with the given name (case-insensitive), or null if not available.
Parameters
name: string
Returns null | string
firstValueAsLong
firstValueAsLong(name: string): null | number
Get the first value of a header with the given name (case-insensitive) as a number, or null if not available.
Parameters
name: string
Returns null | number
map
map(): { [key: string]: string[]; }
Convert the HTTP Headers into a Multi-map.
Returns { [key: string]: string[]; }
[key: string]: string[]
singleValueOrError
singleValueOrError(name: string): null | string
Get the single value of a header with the given name (case-insensitive), or null if not available.
If more than one value is available, an error is thrown.
HTTP Headers.