Phone API Reference - Classes - NetRequest - getResponseHeader

Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70

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

Name

Required

Type

Default

Description

header

Yes

string

 

Name of the header as expected from the response.

 

Return to Documentation Home I Return to Sangoma Support