Phone API Reference - Classes - NetRequest - getResponseHeader
getResponseHeader
Description
Returns the header field value from the response of which the field name matches header, unless the field name is Set-Cookie or Set-Cookie2. Returns null if either the response has not yet been received or the header doesn't exist in the response.
Basic Example:
var headerValue = request.getResponseHeader(header); |
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
header | Yes | string | Name of the header as expected from the response. |