instance method Ajax.Response#getResponseHeader

View source on GitHub →

Ajax.Response#getResponseHeader(name) → String

Returns the value of the requested header if present; throws an error otherwise. This is just a wrapper around the XmlHttpRequest method of the same name. Prefer it's shorter counterpart: Ajax.Response#getHeader.