MCPcopy Create free account
hub / github.com/angular/dev-infra / makeRequest

Function makeRequest

github-actions/saucelabs/set-saucelabs-env.js:13606–13648  ·  view source on GitHub ↗
(init)

Source from the content-addressed store, hash-verified

13604 const clonedRequest = cloneRequest(this[kState]);
13605 const ac = new AbortController();
13606 if (this.signal.aborted) {
13607 ac.abort(this.signal.reason);
13608 } else {
13609 let list = dependentControllerMap.get(this.signal);
13610 if (list === void 0) {
13611 list = /* @__PURE__ */ new Set();
13612 dependentControllerMap.set(this.signal, list);
13613 }
13614 const acRef = new WeakRef(ac);
13615 list.add(acRef);
13616 util.addAbortListener(
13617 ac.signal,
13618 buildAbort(acRef)
13619 );
13620 }
13621 return fromInnerRequest(clonedRequest, ac.signal, getHeadersGuard(this[kHeaders]));
13622 }
13623 [nodeUtil.inspect.custom](depth, options) {
13624 var _a;
13625 if (options.depth === null) {
13626 options.depth = 2;
13627 }
13628 (_a = options.colors) != null ? _a : options.colors = true;
13629 const properties = {
13630 method: this.method,
13631 url: this.url,
13632 headers: this.headers,
13633 destination: this.destination,
13634 referrer: this.referrer,
13635 referrerPolicy: this.referrerPolicy,
13636 mode: this.mode,
13637 credentials: this.credentials,
13638 cache: this.cache,
13639 redirect: this.redirect,
13640 integrity: this.integrity,
13641 keepalive: this.keepalive,
13642 isReloadNavigation: this.isReloadNavigation,
13643 isHistoryNavigation: this.isHistoryNavigation,
13644 signal: this.signal
13645 };
13646 return `Request ${nodeUtil.formatWithOptions(options, properties)}`;
13647 }
13648 };
13649 mixinBody(Request);
13650 function makeRequest(init) {
13651 var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;

Callers 4

constructorMethod · 0.70
cloneRequestFunction · 0.70
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected