Occurs after an HTTP request has been sent to the server and the server has responded with response headers.
HRESULT OnHeadersAvailable( IXMLHTTPRequest2 *pXHR, DWORD dwStatus, const WCHAR *pwszStatus );
The initial HTTP request object that returns the headers.
The status code for the request.
The status code for the request appearing in human-readable form as a null-terminated string.
Returns S_OK on success.
To view an individual response header, call the GetResponseHeader method on the IXMLHTTPRequest2 interface. To view all response headers, call the GetAllResponseHeaders method. To cancel the request, call the Abort method On the pXHR object.
|Minimum supported client||Windows 8 [desktop apps | UWP apps],MSXML 6.0 and later|
|Minimum supported server||Windows Server 2012 [desktop apps | UWP apps]|