Home > @i2analyze/i2connect > services > IRequestInformation > header
services.IRequestInformation.header() method
Gets the value of a header in the request.
Signature:
header(name: string): string | undefined;
Introduced: API version 2.0
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the header whose value is to be retrieved. |
Returns:
string | undefined
The header value, or undefined
if the named header is not present.