Methods
get(name) → {string|null}
Returns the value of the given header name. Note: Header-Names are case-insensitive.
Parameters:
| Name | Type | Description |
|---|---|---|
name | string | The header name to read |
Returns:
The value of the given header name or null if the header isn't present.
- Type:
- string |
null
has(name) → {boolean}
Checks whether the given header name is present. Note: Header-Names are case-insensitive.
Parameters:
| Name | Type | Description |
|---|---|---|
name | string | The header name to check |
Returns:
Returns true if the header name is present, false otherwise
- Type:
- boolean