Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

  • No labels