[whatwg] Access the Response Headers for the Current Document
michael.enright at gmail.com
Wed Jul 15 13:27:03 PDT 2009
Is it possible that the usage of HTTP to obtain a document for rendering and
to obtain a document for XHR would differ sufficiently that the HTTP headers
On Wed, Jul 15, 2009 at 12:07 PM, Joseph Pecoraro <joepeck02 at gmail.com>wrote:
> XHR but not for the current document. So in order to find out the headers
> for the current document you would need to make another request, refetching
> the current page, to find that out .
> Use Cases:
> Any that apply to XHR accessing their response headers would certainly
> apply here. Some thoughts are accessing the Content-Type header or Custom
> Headers and acting accordingly.
> Come up with a clear description of the problem that needs to be solved:
> Any there Browser Implementors out there that agree with this? If so, any
> thoughts on the best ways to expose the current page's request headers to
> useless. How about keeping consistent with the XHR interface with something
> document.getAllResponseHeaders() and document.getResponseHeader(header)
> Joseph Pecoraro
>  Example: http://bogojoker.com/x/xhr/headers.html
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg