Sends a request using the ``XMLHttpRequest`` method with a given URL and options. Basically it does the same as ``dojo/request/xhr`` but with a different default option:
``handleAs:’json’``
Return: dojo/promise/promise|dojo/deferred
Table of contents
ARGUMENT |
TYPE |
DESCRIPTION |
---|---|---|
|
String
|
URL to the request |
|
dojo/request/xhr.__Options
|
Options for the request. |
|
Boolean
|
Return a dojo/Deferred rather than a dojo/promise/Promise |