共用方式為


Sys.Net.WebRequestExecutor.getAllResponseHeaders Method

Gets all the response headers for the current request.

var responseHeaders = MyExecutor.getAllResponseHeaders();

Remarks

If a request finished successfully and with valid response data, this method returns all the response headers.

Example

The following example shows how to use the getAllResponseHeaders method by using the default Sys.Net.XMLHttpExecutor class.

// Get all the headers.    
resultElementId.innerHTML += 
"All Request Headers: " +
    executor.getAllResponseHeaders() + "<br/>"; 

See Also

Reference

Sys.Net.WebRequestManager Class

Sys.Net.WebRequest Class

Sys.Net.XMLHttpExecutor Class