OptionalcontentRequest content type. Defaults to "application/x-www-form-urlencoded".
OptionaldataAdditional key/value pairs (for the default content type). Optional.
OptionalexceptionHandler to invoke when an exception occurs (often means the server is unavailable).
Passed the exception. Default will generate an exception message and throw an Error.
OptionalfailureHandler to invoke on failure (server responds with a non-2xx code). Passed the response. Default will throw the exception.
OptionalheadersAdditional key/value pairs to be added to the request headers. Optional.
OptionalmethodHTTP method to be used ("post", "get", etc.). Default: "post".
OptionalsuccessHandler to invoke on success. Passed the ResponseWrapper object. Default: does nothing.
Type defining the options used in an AJAX request.