[]
By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need to make synchronous requests, set this option to false.
Function to be called immediately before the request is sent. The function has a single parameter of type XMLHttpRequest that represents the request.
Function to be called when the request finishes (after success and error callbacks are executed). The function has a single parameter of type XMLHttpRequest that represents the request.
Data to be sent to the server. It is appended to the url for GET requests, and converted to a JSON string for other requests.
Function to be called if the request fails. The function has a single parameter of type XMLHttpRequest that represents the request.
The HTTP method to use for the request (e.g. "POST", "GET", "PUT"). The default is "GET".
A password to be used with XMLHttpRequest in response to an HTTP access authentication request.
A JavaScript object containing key/value pairs to be added to the request headers.
Function to be called if the request succeeds. The function has a single parameter of type XMLHttpRequest that represents the request.
The number of milliseconds the request can take before automatically being terminated. The default value is 0, which means there is no timeout.
A username to be used with XMLHttpRequest in response to an HTTP access authentication request.
Represents a set of options to be used with the httpRequest method.