Table Of Contents

Application Packaging Standard

Last updated 18-Mar-2019

aps/xhr

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

Parameters

ARGUMENT TYPE DESCRIPTION
url
String
URL to the request
options
dojo/request/xhr.__Options
Options for the request.
returnDeferred
Boolean
Return a dojo/Deferred rather than a dojo/promise/Promise