dojo/request/xhr (version 1.10)

Summary

Sends a request using XMLHttpRequest with the given URL and options.

Usage

xhr(url,options);
Parameter Type Description
url String

URL to request

options dojo/request/xhr.__Options
Optional

Options for the request.

Returns:dojo/request.__Promise

See the dojo/request/xhr reference documentation for more information.

Method Summary

  • __BaseOptions()
  • __MethodOptions()
  • __Options()
  • _create()
  • del(url,options) Send an HTTP DELETE request using XMLHttpRequest with the given URL and options.
  • get(url,options) Send an HTTP GET request using XMLHttpRequest with the given URL and options.
  • post(url,options) Send an HTTP POST request using XMLHttpRequest with the given URL and options.
  • put(url,options) Send an HTTP PUT request using XMLHttpRequest with the given URL and options.

Methods

__BaseOptions()
Defined by dojo/request/xhr
__MethodOptions()
Defined by dojo/request/xhr
__Options()
Defined by dojo/request/xhr
_create()
Defined by dojo/request/xhr
Returns:instance
del(url,options)
Defined by dojo/request/xhr

Send an HTTP DELETE request using XMLHttpRequest with the given URL and options.

Parameter Type Description
url String

URL to request

options dojo/request/xhr.__BaseOptions
Optional

Options for the request.

get(url,options)
Defined by dojo/request/xhr

Send an HTTP GET request using XMLHttpRequest with the given URL and options.

Parameter Type Description
url String

URL to request

options dojo/request/xhr.__BaseOptions
Optional

Options for the request.

post(url,options)
Defined by dojo/request/xhr

Send an HTTP POST request using XMLHttpRequest with the given URL and options.

Parameter Type Description
url String

URL to request

options dojo/request/xhr.__BaseOptions
Optional

Options for the request.

put(url,options)
Defined by dojo/request/xhr

Send an HTTP PUT request using XMLHttpRequest with the given URL and options.

Parameter Type Description
url String

URL to request

options dojo/request/xhr.__BaseOptions
Optional

Options for the request.

Error in the documentation? Can’t find what you are looking for? Let us know!