Name

XMLHttpRequest.getAllResponseHeaders( ): return unparsed HTTP response headers

Synopsis

String getAllResponseHeaders( )

Returns

If readyState is less than 3, this method returns null. Otherwise, it returns all HTTP response headers (but not the status line) sent by the server. The headers are returned as a single string, with one header per line. Lines are delimited by “\r\n” line terminators.

Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.