:: Documentation >>

responseHeader

Returns HTTP response header.

Syntax

var value = obj.getResponseHeader(name); 
obj.setResponseHeader(name, value);        

Parameters

name (string) - header name
value (string) - header value

Examples

var req = new AW.HTTP.Request;
req.setURL('<url>'); 
req.response = function(data){
    alert(this.getResponseHeader('Content-Type')); // show content type
}
req.request();

See also

requestHeader property

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5