MCPcopy Create free account
hub / github.com/socketio/socket.io / Request

Function Request

client-dist/socket.io.js:1338–1349  ·  view source on GitHub ↗

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

(uri, opts)

Source from the content-addressed store, hash-verified

1336 * @package
1337 */
1338 function Request(uri, opts) {
1339 var _this8;
1340 _classCallCheck(this, Request);
1341 _this8 = _super2.call(this);
1342 installTimerFunctions(_assertThisInitialized(_this8), opts);
1343 _this8.opts = opts;
1344 _this8.method = opts.method || "GET";
1345 _this8.uri = uri;
1346 _this8.data = undefined !== opts.data ? opts.data : null;
1347 _this8.create();
1348 return _this8;
1349 }
1350 /**
1351 * Creates the XHR object and sends the request.
1352 *

Callers

nothing calls this directly

Calls 4

_classCallCheckFunction · 0.85
installTimerFunctionsFunction · 0.85
_assertThisInitializedFunction · 0.85
createMethod · 0.80

Tested by

no test coverage detected