A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/xhr/XMLHttpRequest/getAllResponseHeaders below:

getAllResponseHeaders ยท WebPlatform Docs

getAllResponseHeaders Summary

Returns all the response headers as a string, or null if no response has been received.

Method of apis/xhr/XMLHttpRequestapis/xhr/XMLHttpRequest

Syntax
var  = object.getAllResponseHeaders();
Return Value

Returns an object of type StringString

Examples
var 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 specifications
W3C XMLHttpRequest Specification
W3C Working Draft
Attributions

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