Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Makes asynchronous network requests by using the browser's XMLHTTP support.
Namespace: Sys.Net
Inherits: None
var executor = new Sys.Net.XMLHttpExecutor();
Members
Name |
Description |
---|---|
Initializes a new instance of the Sys.Net.XMLHttpExecutor class when implemented in a derived class. |
|
Stops the pending network request issued by the executor. |
|
Executes a network request as specified in the associated WebRequest instance. |
|
Returns the response headers. |
|
Gets the value of a specified response header. |
|
Returns a value that indicates whether the executor was aborted. |
|
Returns a value that indicates whether the network request returned without being aborted or timing out. |
|
Gets the text representation of the response body. |
|
Returns a value that indicates whether the executor has forwarded the request to the browser's XMLHTTP object. |
|
Gets the status code of the browser's XMLHTTP object. |
|
Gets the status text from the browser's XMLHTTP object. |
|
Returns a value that indicates whether the executor timed out. |
|
Returns an XMLDOM object that contains the XML response from the browser's XMLHTTP object. |
Remarks
The XmlHttpExecutor class acts as the default executor and is an implementation of the WebRequestExecutor abstract class.
Because the default executor is already set, you do not have to create an instance of the class and associate it with the Web request. However, if you define a custom executor, you must create an instance of the executor and set it as the default executor of the Web request.
After the network call is completed, the XmlHttpExecutor object should be used only to obtain response data, after which it should be discarded.
Note
For more information about the XMLHTTP object, see About Native XMLHTTP.
Example
The following example shows how to use the XmlHttpExecutor class methods and properties. The example shows a Web page and the client script that interacts with the XmlHttpExecutor class.
See Also
Reference
Sys.Net.WebRequestExecutor Class