dojo/request/xhr

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.

Methods

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.

Returns: dojo/request.__Promise

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.

Returns: dojo/request.__Promise

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.

Returns: dojo/request.__Promise

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.

Returns: dojo/request.__Promise

© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/request/xhr.html