You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {Parse.Cloud.HTTPOptions} options The Parse.Cloud.HTTPOptions object that makes the request.
86
-
* @return {Promise<Parse.Cloud.HTTPResponse>} A promise that will be resolved with a {@link Parse.Cloud.HTTPResponse} object when the request completes.
85
+
* @param {Object} options axios object for options
86
+
* @return {Promise<Object>} axios response object
87
87
*/
88
88
importaxiosfrom'axios';
89
89
import{parseasqs}from'querystring';
@@ -196,16 +196,4 @@ module.exports.legacy = function httpRequest(options) {
196
196
});
197
197
};
198
198
199
-
/**
200
-
* @typedef Parse.Cloud.HTTPOptions
201
-
* @property {String|Object} body The body of the request. If it is a JSON object, then the Content-Type set in the headers must be application/x-www-form-urlencoded or application/json. You can also set this to a {@link Buffer} object to send raw bytes. If you use a Buffer, you should also set the Content-Type header explicitly to describe what these bytes represent.
202
-
* @property {function} error The function that is called when the request fails. It will be passed a Parse.Cloud.HTTPResponse object.
203
-
* @property {Boolean} followRedirects Whether to follow redirects caused by HTTP 3xx responses. Defaults to false.
204
-
* @property {Object} headers The headers for the request.
205
-
* @property {String} method The method of the request. GET, POST, PUT, DELETE, HEAD, and OPTIONS are supported. Will default to GET if not specified.
206
-
* @property {String|Object} params The query portion of the url. You can pass a JSON object of key value pairs like params: {q : 'Sean Plott'} or a raw string like params:q=Sean Plott.
207
-
* @property {function} success The function that is called when the request successfully completes. It will be passed a Parse.Cloud.HTTPResponse object.
208
-
* @property {string} url The url to send the request to.
0 commit comments