Sys.Net.WebRequestExecutor Class
Provides the abstract base class from which network executors derive.
Namespace: Sys.Net
Inherits: None
MyExecutor.registerClass('MyExecutor', Sys.Net.WebRequestExecutor);
Members
Name |
Description |
---|---|
Initializes a Sys.Net.WebRequestExecutor instance when implemented in a derived class. |
|
Stops additional processing of the current request. |
|
Executes a Web request. |
|
Gets all the response headers for the current request. |
|
Gets the value of a specific response header based on the header's name. |
|
Gets a value indicating whether the request associated with the executor was aborted. |
|
Gets the JSON-evaluated object from the response. |
|
Gets a value indicating whether the request completed successfully. |
|
Gets the text representation of the response body. |
|
Gets a value indicating whether the executor has started processing the request. |
|
Gets a success status code. |
|
Gets status information about a request that completed successfully. |
|
Gets a value indicating whether the request timed out. |
|
Attempts to get the response to the current request as an XMLDOM object. |
|
Gets the WebRequest object associated with the executor. |
Remarks
The Sys.Net.WebRequestExecutor class is an abstract base class. You cannot instantiate it; instead, you must derive from it by implementing a network executor.
Network requests issued by using the asynchronous communication layer flow through a network executor. Usually, executors interface with the network. However, you could create a storage executor that interacts with a local database instead of the network, or one that performs other work that involves an external resource.
The following example shows how the Sys.Net.XMLHttpExecutor class derives from the WebRequestExecutor class.
Sys.Net.XMLHttpExecutor.registerClass('Sys.Net.XMLHttpExecutor',
Sys.Net.WebRequestExecutor);