diff options
author | Richard Beales <[email protected]> | 2013-03-18 07:32:01 +0000 |
---|---|---|
committer | Richard Beales <[email protected]> | 2013-03-18 07:32:01 +0000 |
commit | 7c97d17aaf373339a8bcd917ad59ca6018148f0d (patch) | |
tree | 5a3c04f0f9529be392c1263d3feb75806eb43797 /lib/dojo/request.js.uncompressed.js | |
parent | 70db7424e7068701e60cc5bcdfe8f858be508179 (diff) | |
parent | c670a80ddd9b03bd4ea6d940a9ed682fd26248d7 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/dojo/request.js.uncompressed.js')
-rw-r--r-- | lib/dojo/request.js.uncompressed.js | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/lib/dojo/request.js.uncompressed.js b/lib/dojo/request.js.uncompressed.js new file mode 100644 index 000000000..75e42bd6c --- /dev/null +++ b/lib/dojo/request.js.uncompressed.js @@ -0,0 +1,81 @@ +define("dojo/request", [ + './request/default!'/*=====, + './_base/declare', + './promise/Promise' =====*/ +], function(request/*=====, declare, Promise =====*/){ + /*===== + request = function(url, options){ + // summary: + // Send a request using the default transport for the current platform. + // url: String + // The URL to request. + // options: dojo/request.__Options? + // Options for the request. + // returns: dojo/request.__Promise + }; + request.__Promise = declare(Promise, { + // response: dojo/promise/Promise + // A promise resolving to an object representing + // the response from the server. + }); + request.__BaseOptions = declare(null, { + // query: String|Object? + // Query parameters to append to the URL. + // data: String|Object? + // Data to transfer. This is ignored for GET and DELETE + // requests. + // preventCache: Boolean? + // Whether to append a cache-busting parameter to the URL. + // timeout: Integer? + // Milliseconds to wait for the response. If this time + // passes, the then the promise is rejected. + // handleAs: String? + // How to handle the response from the server. Default is + // 'text'. Other values are 'json', 'javascript', and 'xml'. + }); + request.__MethodOptions = declare(null, { + // method: String? + // The HTTP method to use to make the request. Must be + // uppercase. + }); + request.__Options = declare([request.__BaseOptions, request.__MethodOptions]); + + request.get = function(url, options){ + // summary: + // Send an HTTP GET request using the default transport for the current platform. + // url: String + // URL to request + // options: dojo/request.__BaseOptions? + // Options for the request. + // returns: dojo/request.__Promise + }; + request.post = function(url, options){ + // summary: + // Send an HTTP POST request using the default transport for the current platform. + // url: String + // URL to request + // options: dojo/request.__BaseOptions? + // Options for the request. + // returns: dojo/request.__Promise + }; + request.put = function(url, options){ + // summary: + // Send an HTTP POST request using the default transport for the current platform. + // url: String + // URL to request + // options: dojo/request.__BaseOptions? + // Options for the request. + // returns: dojo/request.__Promise + }; + request.del = function(url, options){ + // summary: + // Send an HTTP DELETE request using the default transport for the current platform. + // url: String + // URL to request + // options: dojo/request.__BaseOptions? + // Options for the request. + // returns: dojo/request.__Promise + }; + =====*/ + return request; +}); |