How to use the del function from superagent

Find comprehensive JavaScript superagent.del code examples handpicked from public code repositorys.

80
81
82
83
84
85
86
87
88
89
 * @param {String} path the relative path
 * @param {Object} data an object containing extra values
 * @param {Function} callback the callback to invoke when the request completes
 */
var tinderDelete = function(path, data, callback) {
  request.del(TINDER_HOST + path)
    .set(getRequestHeaders())
    .send(data)
    .end(callback);
};
fork icon61
star icon71
watch icon10

+ 3 other calls in file

6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
 * @param {BaseRequest} The request.
 * @param {Function} The callback function.
 */
HttpManager.del = function(request, callback) {
  var options = _getParametersFromRequest(request);
  var method = superagent.del;


  HttpManager._makeRequest(method, options, request.getURI(), callback);
};

fork icon2
star icon0
watch icon1

+ 3 other calls in file