MCPcopy
hub / github.com/socketio/socket.io / Request

Function Request

packages/socket.io/client-dist/socket.io.js:1144–1155  ·  view source on GitHub ↗

* Request constructor * * @param {Object} options * @package

(createRequest, uri, opts)

Source from the content-addressed store, hash-verified

1142 * @package
1143 */
1144 function Request(createRequest, uri, opts) {
1145 var _this4;
1146 _this4 = _Emitter.call(this) || this;
1147 _this4.createRequest = createRequest;
1148 installTimerFunctions(_this4, opts);
1149 _this4._opts = opts;
1150 _this4._method = opts.method || "GET";
1151 _this4._uri = uri;
1152 _this4._data = undefined !== opts.data ? opts.data : null;
1153 _this4._create();
1154 return _this4;
1155 }
1156 /**
1157 * Creates the XHR object and sends the request.
1158 *

Callers

nothing calls this directly

Calls 2

_createMethod · 0.80
installTimerFunctionsFunction · 0.70

Tested by

no test coverage detected