:: Home >>

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

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData