summaryrefslogtreecommitdiff
path: root/together/node_modules/superagent/lib/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'together/node_modules/superagent/lib/client.js')
-rw-r--r--together/node_modules/superagent/lib/client.js1015
1 files changed, 1015 insertions, 0 deletions
diff --git a/together/node_modules/superagent/lib/client.js b/together/node_modules/superagent/lib/client.js
new file mode 100644
index 0000000..462ab1a
--- /dev/null
+++ b/together/node_modules/superagent/lib/client.js
@@ -0,0 +1,1015 @@
+"use strict";
+
+function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
+
+function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
+
+function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
+
+/**
+ * Root reference for iframes.
+ */
+let root;
+
+if (typeof window !== 'undefined') {
+ // Browser window
+ root = window;
+} else if (typeof self === 'undefined') {
+ // Other environments
+ console.warn('Using browser-only version of superagent in non-browser environment');
+ root = void 0;
+} else {
+ // Web Worker
+ root = self;
+}
+
+const Emitter = require('component-emitter');
+
+const safeStringify = require('fast-safe-stringify');
+
+const qs = require('qs');
+
+const RequestBase = require('./request-base');
+
+const _require = require('./utils'),
+ isObject = _require.isObject,
+ mixin = _require.mixin,
+ hasOwn = _require.hasOwn;
+
+const ResponseBase = require('./response-base');
+
+const Agent = require('./agent-base');
+/**
+ * Noop.
+ */
+
+
+function noop() {}
+/**
+ * Expose `request`.
+ */
+
+
+module.exports = function (method, url) {
+ // callback
+ if (typeof url === 'function') {
+ return new exports.Request('GET', method).end(url);
+ } // url first
+
+
+ if (arguments.length === 1) {
+ return new exports.Request('GET', method);
+ }
+
+ return new exports.Request(method, url);
+};
+
+exports = module.exports;
+const request = exports;
+exports.Request = Request;
+/**
+ * Determine XHR.
+ */
+
+request.getXHR = () => {
+ if (root.XMLHttpRequest) {
+ return new root.XMLHttpRequest();
+ }
+
+ throw new Error('Browser-only version of superagent could not find XHR');
+};
+/**
+ * Removes leading and trailing whitespace, added to support IE.
+ *
+ * @param {String} s
+ * @return {String}
+ * @api private
+ */
+
+
+const trim = ''.trim ? s => s.trim() : s => s.replace(/(^\s*|\s*$)/g, '');
+/**
+ * Serialize the given `obj`.
+ *
+ * @param {Object} obj
+ * @return {String}
+ * @api private
+ */
+
+function serialize(object) {
+ if (!isObject(object)) return object;
+ const pairs = [];
+
+ for (const key in object) {
+ if (hasOwn(object, key)) pushEncodedKeyValuePair(pairs, key, object[key]);
+ }
+
+ return pairs.join('&');
+}
+/**
+ * Helps 'serialize' with serializing arrays.
+ * Mutates the pairs array.
+ *
+ * @param {Array} pairs
+ * @param {String} key
+ * @param {Mixed} val
+ */
+
+
+function pushEncodedKeyValuePair(pairs, key, value) {
+ if (value === undefined) return;
+
+ if (value === null) {
+ pairs.push(encodeURI(key));
+ return;
+ }
+
+ if (Array.isArray(value)) {
+ var _iterator = _createForOfIteratorHelper(value),
+ _step;
+
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ const v = _step.value;
+ pushEncodedKeyValuePair(pairs, key, v);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ } else if (isObject(value)) {
+ for (const subkey in value) {
+ if (hasOwn(value, subkey)) pushEncodedKeyValuePair(pairs, "".concat(key, "[").concat(subkey, "]"), value[subkey]);
+ }
+ } else {
+ pairs.push(encodeURI(key) + '=' + encodeURIComponent(value));
+ }
+}
+/**
+ * Expose serialization method.
+ */
+
+
+request.serializeObject = serialize;
+/**
+ * Parse the given x-www-form-urlencoded `str`.
+ *
+ * @param {String} str
+ * @return {Object}
+ * @api private
+ */
+
+function parseString(string_) {
+ const object = {};
+ const pairs = string_.split('&');
+ let pair;
+ let pos;
+
+ for (let i = 0, length_ = pairs.length; i < length_; ++i) {
+ pair = pairs[i];
+ pos = pair.indexOf('=');
+
+ if (pos === -1) {
+ object[decodeURIComponent(pair)] = '';
+ } else {
+ object[decodeURIComponent(pair.slice(0, pos))] = decodeURIComponent(pair.slice(pos + 1));
+ }
+ }
+
+ return object;
+}
+/**
+ * Expose parser.
+ */
+
+
+request.parseString = parseString;
+/**
+ * Default MIME type map.
+ *
+ * superagent.types.xml = 'application/xml';
+ *
+ */
+
+request.types = {
+ html: 'text/html',
+ json: 'application/json',
+ xml: 'text/xml',
+ urlencoded: 'application/x-www-form-urlencoded',
+ form: 'application/x-www-form-urlencoded',
+ 'form-data': 'application/x-www-form-urlencoded'
+};
+/**
+ * Default serialization map.
+ *
+ * superagent.serialize['application/xml'] = function(obj){
+ * return 'generated xml here';
+ * };
+ *
+ */
+
+request.serialize = {
+ 'application/x-www-form-urlencoded': qs.stringify,
+ 'application/json': safeStringify
+};
+/**
+ * Default parsers.
+ *
+ * superagent.parse['application/xml'] = function(str){
+ * return { object parsed from str };
+ * };
+ *
+ */
+
+request.parse = {
+ 'application/x-www-form-urlencoded': parseString,
+ 'application/json': JSON.parse
+};
+/**
+ * Parse the given header `str` into
+ * an object containing the mapped fields.
+ *
+ * @param {String} str
+ * @return {Object}
+ * @api private
+ */
+
+function parseHeader(string_) {
+ const lines = string_.split(/\r?\n/);
+ const fields = {};
+ let index;
+ let line;
+ let field;
+ let value;
+
+ for (let i = 0, length_ = lines.length; i < length_; ++i) {
+ line = lines[i];
+ index = line.indexOf(':');
+
+ if (index === -1) {
+ // could be empty line, just skip it
+ continue;
+ }
+
+ field = line.slice(0, index).toLowerCase();
+ value = trim(line.slice(index + 1));
+ fields[field] = value;
+ }
+
+ return fields;
+}
+/**
+ * Check if `mime` is json or has +json structured syntax suffix.
+ *
+ * @param {String} mime
+ * @return {Boolean}
+ * @api private
+ */
+
+
+function isJSON(mime) {
+ // should match /json or +json
+ // but not /json-seq
+ return /[/+]json($|[^-\w])/i.test(mime);
+}
+/**
+ * Initialize a new `Response` with the given `xhr`.
+ *
+ * - set flags (.ok, .error, etc)
+ * - parse header
+ *
+ * Examples:
+ *
+ * Aliasing `superagent` as `request` is nice:
+ *
+ * request = superagent;
+ *
+ * We can use the promise-like API, or pass callbacks:
+ *
+ * request.get('/').end(function(res){});
+ * request.get('/', function(res){});
+ *
+ * Sending data can be chained:
+ *
+ * request
+ * .post('/user')
+ * .send({ name: 'tj' })
+ * .end(function(res){});
+ *
+ * Or passed to `.send()`:
+ *
+ * request
+ * .post('/user')
+ * .send({ name: 'tj' }, function(res){});
+ *
+ * Or passed to `.post()`:
+ *
+ * request
+ * .post('/user', { name: 'tj' })
+ * .end(function(res){});
+ *
+ * Or further reduced to a single call for simple cases:
+ *
+ * request
+ * .post('/user', { name: 'tj' }, function(res){});
+ *
+ * @param {XMLHTTPRequest} xhr
+ * @param {Object} options
+ * @api private
+ */
+
+
+function Response(request_) {
+ this.req = request_;
+ this.xhr = this.req.xhr; // responseText is accessible only if responseType is '' or 'text' and on older browsers
+
+ this.text = this.req.method !== 'HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text') || typeof this.xhr.responseType === 'undefined' ? this.xhr.responseText : null;
+ this.statusText = this.req.xhr.statusText;
+ let status = this.xhr.status; // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request
+
+ if (status === 1223) {
+ status = 204;
+ }
+
+ this._setStatusProperties(status);
+
+ this.headers = parseHeader(this.xhr.getAllResponseHeaders());
+ this.header = this.headers; // getAllResponseHeaders sometimes falsely returns "" for CORS requests, but
+ // getResponseHeader still works. so we get content-type even if getting
+ // other headers fails.
+
+ this.header['content-type'] = this.xhr.getResponseHeader('content-type');
+
+ this._setHeaderProperties(this.header);
+
+ if (this.text === null && request_._responseType) {
+ this.body = this.xhr.response;
+ } else {
+ this.body = this.req.method === 'HEAD' ? null : this._parseBody(this.text ? this.text : this.xhr.response);
+ }
+}
+
+mixin(Response.prototype, ResponseBase.prototype);
+/**
+ * Parse the given body `str`.
+ *
+ * Used for auto-parsing of bodies. Parsers
+ * are defined on the `superagent.parse` object.
+ *
+ * @param {String} str
+ * @return {Mixed}
+ * @api private
+ */
+
+Response.prototype._parseBody = function (string_) {
+ let parse = request.parse[this.type];
+
+ if (this.req._parser) {
+ return this.req._parser(this, string_);
+ }
+
+ if (!parse && isJSON(this.type)) {
+ parse = request.parse['application/json'];
+ }
+
+ return parse && string_ && (string_.length > 0 || string_ instanceof Object) ? parse(string_) : null;
+};
+/**
+ * Return an `Error` representative of this response.
+ *
+ * @return {Error}
+ * @api public
+ */
+
+
+Response.prototype.toError = function () {
+ const req = this.req;
+ const method = req.method;
+ const url = req.url;
+ const message = "cannot ".concat(method, " ").concat(url, " (").concat(this.status, ")");
+ const error = new Error(message);
+ error.status = this.status;
+ error.method = method;
+ error.url = url;
+ return error;
+};
+/**
+ * Expose `Response`.
+ */
+
+
+request.Response = Response;
+/**
+ * Initialize a new `Request` with the given `method` and `url`.
+ *
+ * @param {String} method
+ * @param {String} url
+ * @api public
+ */
+
+function Request(method, url) {
+ const self = this;
+ this._query = this._query || [];
+ this.method = method;
+ this.url = url;
+ this.header = {}; // preserves header name case
+
+ this._header = {}; // coerces header names to lowercase
+
+ this.on('end', () => {
+ let error = null;
+ let res = null;
+
+ try {
+ res = new Response(self);
+ } catch (err) {
+ error = new Error('Parser is unable to parse the response');
+ error.parse = true;
+ error.original = err; // issue #675: return the raw response if the response parsing fails
+
+ if (self.xhr) {
+ // ie9 doesn't have 'response' property
+ error.rawResponse = typeof self.xhr.responseType === 'undefined' ? self.xhr.responseText : self.xhr.response; // issue #876: return the http status code if the response parsing fails
+
+ error.status = self.xhr.status ? self.xhr.status : null;
+ error.statusCode = error.status; // backwards-compat only
+ } else {
+ error.rawResponse = null;
+ error.status = null;
+ }
+
+ return self.callback(error);
+ }
+
+ self.emit('response', res);
+ let new_error;
+
+ try {
+ if (!self._isResponseOK(res)) {
+ new_error = new Error(res.statusText || res.text || 'Unsuccessful HTTP response');
+ }
+ } catch (err) {
+ new_error = err; // ok() callback can throw
+ } // #1000 don't catch errors from the callback to avoid double calling it
+
+
+ if (new_error) {
+ new_error.original = error;
+ new_error.response = res;
+ new_error.status = new_error.status || res.status;
+ self.callback(new_error, res);
+ } else {
+ self.callback(null, res);
+ }
+ });
+}
+/**
+ * Mixin `Emitter` and `RequestBase`.
+ */
+// eslint-disable-next-line new-cap
+
+
+Emitter(Request.prototype);
+mixin(Request.prototype, RequestBase.prototype);
+/**
+ * Set Content-Type to `type`, mapping values from `request.types`.
+ *
+ * Examples:
+ *
+ * superagent.types.xml = 'application/xml';
+ *
+ * request.post('/')
+ * .type('xml')
+ * .send(xmlstring)
+ * .end(callback);
+ *
+ * request.post('/')
+ * .type('application/xml')
+ * .send(xmlstring)
+ * .end(callback);
+ *
+ * @param {String} type
+ * @return {Request} for chaining
+ * @api public
+ */
+
+Request.prototype.type = function (type) {
+ this.set('Content-Type', request.types[type] || type);
+ return this;
+};
+/**
+ * Set Accept to `type`, mapping values from `request.types`.
+ *
+ * Examples:
+ *
+ * superagent.types.json = 'application/json';
+ *
+ * request.get('/agent')
+ * .accept('json')
+ * .end(callback);
+ *
+ * request.get('/agent')
+ * .accept('application/json')
+ * .end(callback);
+ *
+ * @param {String} accept
+ * @return {Request} for chaining
+ * @api public
+ */
+
+
+Request.prototype.accept = function (type) {
+ this.set('Accept', request.types[type] || type);
+ return this;
+};
+/**
+ * Set Authorization field value with `user` and `pass`.
+ *
+ * @param {String} user
+ * @param {String} [pass] optional in case of using 'bearer' as type
+ * @param {Object} options with 'type' property 'auto', 'basic' or 'bearer' (default 'basic')
+ * @return {Request} for chaining
+ * @api public
+ */
+
+
+Request.prototype.auth = function (user, pass, options) {
+ if (arguments.length === 1) pass = '';
+
+ if (typeof pass === 'object' && pass !== null) {
+ // pass is optional and can be replaced with options
+ options = pass;
+ pass = '';
+ }
+
+ if (!options) {
+ options = {
+ type: typeof btoa === 'function' ? 'basic' : 'auto'
+ };
+ }
+
+ const encoder = options.encoder ? options.encoder : string => {
+ if (typeof btoa === 'function') {
+ return btoa(string);
+ }
+
+ throw new Error('Cannot use basic auth, btoa is not a function');
+ };
+ return this._auth(user, pass, options, encoder);
+};
+/**
+ * Add query-string `val`.
+ *
+ * Examples:
+ *
+ * request.get('/shoes')
+ * .query('size=10')
+ * .query({ color: 'blue' })
+ *
+ * @param {Object|String} val
+ * @return {Request} for chaining
+ * @api public
+ */
+
+
+Request.prototype.query = function (value) {
+ if (typeof value !== 'string') value = serialize(value);
+ if (value) this._query.push(value);
+ return this;
+};
+/**
+ * Queue the given `file` as an attachment to the specified `field`,
+ * with optional `options` (or filename).
+ *
+ * ``` js
+ * request.post('/upload')
+ * .attach('content', new Blob(['<a id="a"><b id="b">hey!</b></a>'], { type: "text/html"}))
+ * .end(callback);
+ * ```
+ *
+ * @param {String} field
+ * @param {Blob|File} file
+ * @param {String|Object} options
+ * @return {Request} for chaining
+ * @api public
+ */
+
+
+Request.prototype.attach = function (field, file, options) {
+ if (file) {
+ if (this._data) {
+ throw new Error("superagent can't mix .send() and .attach()");
+ }
+
+ this._getFormData().append(field, file, options || file.name);
+ }
+
+ return this;
+};
+
+Request.prototype._getFormData = function () {
+ if (!this._formData) {
+ this._formData = new root.FormData();
+ }
+
+ return this._formData;
+};
+/**
+ * Invoke the callback with `err` and `res`
+ * and handle arity check.
+ *
+ * @param {Error} err
+ * @param {Response} res
+ * @api private
+ */
+
+
+Request.prototype.callback = function (error, res) {
+ if (this._shouldRetry(error, res)) {
+ return this._retry();
+ }
+
+ const fn = this._callback;
+ this.clearTimeout();
+
+ if (error) {
+ if (this._maxRetries) error.retries = this._retries - 1;
+ this.emit('error', error);
+ }
+
+ fn(error, res);
+};
+/**
+ * Invoke callback with x-domain error.
+ *
+ * @api private
+ */
+
+
+Request.prototype.crossDomainError = function () {
+ const error = new Error('Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');
+ error.crossDomain = true;
+ error.status = this.status;
+ error.method = this.method;
+ error.url = this.url;
+ this.callback(error);
+}; // This only warns, because the request is still likely to work
+
+
+Request.prototype.agent = function () {
+ console.warn('This is not supported in browser version of superagent');
+ return this;
+};
+
+Request.prototype.ca = Request.prototype.agent;
+Request.prototype.buffer = Request.prototype.ca; // This throws, because it can't send/receive data as expected
+
+Request.prototype.write = () => {
+ throw new Error('Streaming is not supported in browser version of superagent');
+};
+
+Request.prototype.pipe = Request.prototype.write;
+/**
+ * Check if `obj` is a host object,
+ * we don't want to serialize these :)
+ *
+ * @param {Object} obj host object
+ * @return {Boolean} is a host object
+ * @api private
+ */
+
+Request.prototype._isHost = function (object) {
+ // Native objects stringify to [object File], [object Blob], [object FormData], etc.
+ return object && typeof object === 'object' && !Array.isArray(object) && Object.prototype.toString.call(object) !== '[object Object]';
+};
+/**
+ * Initiate request, invoking callback `fn(res)`
+ * with an instanceof `Response`.
+ *
+ * @param {Function} fn
+ * @return {Request} for chaining
+ * @api public
+ */
+
+
+Request.prototype.end = function (fn) {
+ if (this._endCalled) {
+ console.warn('Warning: .end() was called twice. This is not supported in superagent');
+ }
+
+ this._endCalled = true; // store callback
+
+ this._callback = fn || noop; // querystring
+
+ this._finalizeQueryString();
+
+ this._end();
+};
+
+Request.prototype._setUploadTimeout = function () {
+ const self = this; // upload timeout it's wokrs only if deadline timeout is off
+
+ if (this._uploadTimeout && !this._uploadTimeoutTimer) {
+ this._uploadTimeoutTimer = setTimeout(() => {
+ self._timeoutError('Upload timeout of ', self._uploadTimeout, 'ETIMEDOUT');
+ }, this._uploadTimeout);
+ }
+}; // eslint-disable-next-line complexity
+
+
+Request.prototype._end = function () {
+ if (this._aborted) return this.callback(new Error('The request has been aborted even before .end() was called'));
+ const self = this;
+ this.xhr = request.getXHR();
+ const xhr = this.xhr;
+ let data = this._formData || this._data;
+
+ this._setTimeouts(); // state change
+
+
+ xhr.addEventListener('readystatechange', () => {
+ const readyState = xhr.readyState;
+
+ if (readyState >= 2 && self._responseTimeoutTimer) {
+ clearTimeout(self._responseTimeoutTimer);
+ }
+
+ if (readyState !== 4) {
+ return;
+ } // In IE9, reads to any property (e.g. status) off of an aborted XHR will
+ // result in the error "Could not complete the operation due to error c00c023f"
+
+
+ let status;
+
+ try {
+ status = xhr.status;
+ } catch (err) {
+ status = 0;
+ }
+
+ if (!status) {
+ if (self.timedout || self._aborted) return;
+ return self.crossDomainError();
+ }
+
+ self.emit('end');
+ }); // progress
+
+ const handleProgress = (direction, e) => {
+ if (e.total > 0) {
+ e.percent = e.loaded / e.total * 100;
+
+ if (e.percent === 100) {
+ clearTimeout(self._uploadTimeoutTimer);
+ }
+ }
+
+ e.direction = direction;
+ self.emit('progress', e);
+ };
+
+ if (this.hasListeners('progress')) {
+ try {
+ xhr.addEventListener('progress', handleProgress.bind(null, 'download'));
+
+ if (xhr.upload) {
+ xhr.upload.addEventListener('progress', handleProgress.bind(null, 'upload'));
+ }
+ } catch (err) {// Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.
+ // Reported here:
+ // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context
+ }
+ }
+
+ if (xhr.upload) {
+ this._setUploadTimeout();
+ } // initiate request
+
+
+ try {
+ if (this.username && this.password) {
+ xhr.open(this.method, this.url, true, this.username, this.password);
+ } else {
+ xhr.open(this.method, this.url, true);
+ }
+ } catch (err) {
+ // see #1149
+ return this.callback(err);
+ } // CORS
+
+
+ if (this._withCredentials) xhr.withCredentials = true; // body
+
+ if (!this._formData && this.method !== 'GET' && this.method !== 'HEAD' && typeof data !== 'string' && !this._isHost(data)) {
+ // serialize stuff
+ const contentType = this._header['content-type'];
+ let serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];
+
+ if (!serialize && isJSON(contentType)) {
+ serialize = request.serialize['application/json'];
+ }
+
+ if (serialize) data = serialize(data);
+ } // set header fields
+
+
+ for (const field in this.header) {
+ if (this.header[field] === null) continue;
+ if (hasOwn(this.header, field)) xhr.setRequestHeader(field, this.header[field]);
+ }
+
+ if (this._responseType) {
+ xhr.responseType = this._responseType;
+ } // send stuff
+
+
+ this.emit('request', this); // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)
+ // We need null here if data is undefined
+
+ xhr.send(typeof data === 'undefined' ? null : data);
+};
+
+request.agent = () => new Agent();
+
+for (var _i = 0, _arr = ['GET', 'POST', 'OPTIONS', 'PATCH', 'PUT', 'DELETE']; _i < _arr.length; _i++) {
+ const method = _arr[_i];
+
+ Agent.prototype[method.toLowerCase()] = function (url, fn) {
+ const request_ = new request.Request(method, url);
+
+ this._setDefaults(request_);
+
+ if (fn) {
+ request_.end(fn);
+ }
+
+ return request_;
+ };
+}
+
+Agent.prototype.del = Agent.prototype.delete;
+/**
+ * GET `url` with optional callback `fn(res)`.
+ *
+ * @param {String} url
+ * @param {Mixed|Function} [data] or fn
+ * @param {Function} [fn]
+ * @return {Request}
+ * @api public
+ */
+
+request.get = (url, data, fn) => {
+ const request_ = request('GET', url);
+
+ if (typeof data === 'function') {
+ fn = data;
+ data = null;
+ }
+
+ if (data) request_.query(data);
+ if (fn) request_.end(fn);
+ return request_;
+};
+/**
+ * HEAD `url` with optional callback `fn(res)`.
+ *
+ * @param {String} url
+ * @param {Mixed|Function} [data] or fn
+ * @param {Function} [fn]
+ * @return {Request}
+ * @api public
+ */
+
+
+request.head = (url, data, fn) => {
+ const request_ = request('HEAD', url);
+
+ if (typeof data === 'function') {
+ fn = data;
+ data = null;
+ }
+
+ if (data) request_.query(data);
+ if (fn) request_.end(fn);
+ return request_;
+};
+/**
+ * OPTIONS query to `url` with optional callback `fn(res)`.
+ *
+ * @param {String} url
+ * @param {Mixed|Function} [data] or fn
+ * @param {Function} [fn]
+ * @return {Request}
+ * @api public
+ */
+
+
+request.options = (url, data, fn) => {
+ const request_ = request('OPTIONS', url);
+
+ if (typeof data === 'function') {
+ fn = data;
+ data = null;
+ }
+
+ if (data) request_.send(data);
+ if (fn) request_.end(fn);
+ return request_;
+};
+/**
+ * DELETE `url` with optional `data` and callback `fn(res)`.
+ *
+ * @param {String} url
+ * @param {Mixed} [data]
+ * @param {Function} [fn]
+ * @return {Request}
+ * @api public
+ */
+
+
+function del(url, data, fn) {
+ const request_ = request('DELETE', url);
+
+ if (typeof data === 'function') {
+ fn = data;
+ data = null;
+ }
+
+ if (data) request_.send(data);
+ if (fn) request_.end(fn);
+ return request_;
+}
+
+request.del = del;
+request.delete = del;
+/**
+ * PATCH `url` with optional `data` and callback `fn(res)`.
+ *
+ * @param {String} url
+ * @param {Mixed} [data]
+ * @param {Function} [fn]
+ * @return {Request}
+ * @api public
+ */
+
+request.patch = (url, data, fn) => {
+ const request_ = request('PATCH', url);
+
+ if (typeof data === 'function') {
+ fn = data;
+ data = null;
+ }
+
+ if (data) request_.send(data);
+ if (fn) request_.end(fn);
+ return request_;
+};
+/**
+ * POST `url` with optional `data` and callback `fn(res)`.
+ *
+ * @param {String} url
+ * @param {Mixed} [data]
+ * @param {Function} [fn]
+ * @return {Request}
+ * @api public
+ */
+
+
+request.post = (url, data, fn) => {
+ const request_ = request('POST', url);
+
+ if (typeof data === 'function') {
+ fn = data;
+ data = null;
+ }
+
+ if (data) request_.send(data);
+ if (fn) request_.end(fn);
+ return request_;
+};
+/**
+ * PUT `url` with optional `data` and callback `fn(res)`.
+ *
+ * @param {String} url
+ * @param {Mixed|Function} [data] or fn
+ * @param {Function} [fn]
+ * @return {Request}
+ * @api public
+ */
+
+
+request.put = (url, data, fn) => {
+ const request_ = request('PUT', url);
+
+ if (typeof data === 'function') {
+ fn = data;
+ data = null;
+ }
+
+ if (data) request_.send(data);
+ if (fn) request_.end(fn);
+ return request_;
+};
+//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJyb290Iiwid2luZG93Iiwic2VsZiIsImNvbnNvbGUiLCJ3YXJuIiwiRW1pdHRlciIsInJlcXVpcmUiLCJzYWZlU3RyaW5naWZ5IiwicXMiLCJSZXF1ZXN0QmFzZSIsImlzT2JqZWN0IiwibWl4aW4iLCJoYXNPd24iLCJSZXNwb25zZUJhc2UiLCJBZ2VudCIsIm5vb3AiLCJtb2R1bGUiLCJleHBvcnRzIiwibWV0aG9kIiwidXJsIiwiUmVxdWVzdCIsImVuZCIsImFyZ3VtZW50cyIsImxlbmd0aCIsInJlcXVlc3QiLCJnZXRYSFIiLCJYTUxIdHRwUmVxdWVzdCIsIkVycm9yIiwidHJpbSIsInMiLCJyZXBsYWNlIiwic2VyaWFsaXplIiwib2JqZWN0IiwicGFpcnMiLCJrZXkiLCJwdXNoRW5jb2RlZEtleVZhbHVlUGFpciIsImpvaW4iLCJ2YWx1ZSIsInVuZGVmaW5lZCIsInB1c2giLCJlbmNvZGVVUkkiLCJBcnJheSIsImlzQXJyYXkiLCJ2Iiwic3Via2V5IiwiZW5jb2RlVVJJQ29tcG9uZW50Iiwic2VyaWFsaXplT2JqZWN0IiwicGFyc2VTdHJpbmciLCJzdHJpbmdfIiwic3BsaXQiLCJwYWlyIiwicG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