Provides the script API to make a Web request.
Constructor methods
Initializes a new instance of the Sys.Net.WebRequest class.
Returns
WebRequest
Methods
public add_completed(handler: (reference: any, eventArgs: Sys.EventArgs) => void)
Registers a handler for the completed request event of the Web request.
Parameters
-
handler: (reference: any, eventArgs: Sys.EventArgs) => void
public completed(eventArgs: EventArgs)
Raises the completed event for the associated Sys.Net.WebRequest instance.
Parameters
public getResolvedUrl(): string
Gets the resolved URL of the Sys.Net.WebRequest instance.
Returns
string
The resolved URL that the Web request is directed to.
public invoke()
Executes a Web request.
public remove_completed(handler: (reference: any, eventArgs: Sys.EventArgs) => void)
Removes the event handler added by the add_completed method.
Parameters
-
handler: (reference: any, eventArgs: Sys.EventArgs) => void