Defines callbacks that notify an application with an outstanding IXMLHTTPRequest2 request of events that affect HTTP request and response processing.
Members
The IXmlHttpRequest2Callback interface inherits from the IUnknown interface. IXMLHTTPRequest2Callback also has these types of members:
Methods
The IXmlHttpRequest2Callback interface has these methods.
| Method | Description |
|---|---|
| OnDataAvailable |
Occurs when a client receives part of the HTTP response data from the server. |
| OnError |
Occurs when an error is encountered or the request has been aborted. |
| OnHeadersAvailable |
Occurs after an HTTP request been sent to the server and the server has responded with response headers. |
| OnRedirect |
Occurs when a client sends an HTTP request that the server redirects to a new URL. |
| OnResponseReceived |
Occurs when a client has received a complete response from the server. |
Remarks
Because IXMLHTTPRequest2 methods are asynchronous, applications must pass an IXMLHTTPRequest2Callback object as a parameter in calls to IXMLHTTPRequest2::Open to receive callback notifications.
Requirements
|
Minimum supported client | Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [desktop apps | Windows Store apps] |
|
Version | MSXML 6.0 and later |
|
Header |
|
|
IDL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012