Returns all the response headers as a string, or null if no response has been received.
Method of apis/xhr/XMLHttpRequestapis/xhr/XMLHttpRequest
Syntaxvar = object.getAllResponseHeaders();
Return Value
Returns an object of type StringString
Examplesvar xhr = new XMLHttpRequest();
xhr.open("GET", "http://localhost/test.xml", true);
xhr.send();
var headers = xhr.getAllResponseHeaders().toLowerCase();
alert(headers);
Notes
Each name/value pair in the returned string is delimited by a carriage return/line feed (CR/LF) sequence.
Related specificationsMicrosoft Developer Network: Windows Internet Explorer API reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4