We cover the following classes of Sys.Net:
Sys.Net.NetworkRequestEventArgs
Sys.Net.WebRequest
Sys.Net.WebRequestExecutor
Sys.Net.WebRequestManager
Sys.Net.XmlHttpExecutor
Sys.Net.NetworkRequestEventArgs
(Figure A-43) stores the underlying Sys.Net.WebRequest
and is passed as an argument object for the invokingRequest
event.
Sys.WebRequest
(Figure A-44) encapsulates the necessary functionality in order to make web requests from the client side. It uses an underlying Sys.Net.WebRequestExecutor
(Sys.Net.XmlHttpExecutor
by default) to actually make a request. It exposes properties, methods, and events in order to easily make a request.
Sys.Net.WebRequestExecutor
(Figure A-45) represents an “abstract” class (by convention as some of the methods throw an Error.notImplemented()
error) and it is the base class for different implementation of executor classes for web requests. Currently, only the Sys.Net.XmlHttpExecutor
class based on the XMLHttp
object is available.