instance method Ajax.Response#getAllResponseHeaders

View source on GitHub →

Ajax.Response#getAllResponseHeaders() → String

Returns a String containing all headers separated by line breaks; throws an error if no headers exist. This is just a wrapper around the XmlHttpRequest method of the same name. Prefer it's shorter counterpart: Ajax.Response#getAllHeaders.