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

Function makeRequest

github-actions/bazel/configure-remote/configure-remote.js:13606–13648  ·  view source on GitHub ↗
(init)

Source from the content-addressed store, hash-verified

13604 webidl.brandCheck(this, _Request);
13605 return this[kSignal];
13606 }
13607 get body() {
13608 webidl.brandCheck(this, _Request);
13609 return this[kState].body ? this[kState].body.stream : null;
13610 }
13611 get bodyUsed() {
13612 webidl.brandCheck(this, _Request);
13613 return !!this[kState].body && util.isDisturbed(this[kState].body.stream);
13614 }
13615 get duplex() {
13616 webidl.brandCheck(this, _Request);
13617 return "half";
13618 }
13619 // Returns a clone of request.
13620 clone() {
13621 webidl.brandCheck(this, _Request);
13622 if (bodyUnusable(this)) {
13623 throw new TypeError("unusable");
13624 }
13625 const clonedRequest = cloneRequest(this[kState]);
13626 const ac = new AbortController();
13627 if (this.signal.aborted) {
13628 ac.abort(this.signal.reason);
13629 } else {
13630 let list = dependentControllerMap.get(this.signal);
13631 if (list === void 0) {
13632 list = /* @__PURE__ */ new Set();
13633 dependentControllerMap.set(this.signal, list);
13634 }
13635 const acRef = new WeakRef(ac);
13636 list.add(acRef);
13637 util.addAbortListener(
13638 ac.signal,
13639 buildAbort(acRef)
13640 );
13641 }
13642 return fromInnerRequest(clonedRequest, ac.signal, getHeadersGuard(this[kHeaders]));
13643 }
13644 [nodeUtil.inspect.custom](depth, options) {
13645 var _a;
13646 if (options.depth === null) {
13647 options.depth = 2;
13648 }
13649 (_a = options.colors) != null ? _a : options.colors = true;
13650 const properties = {
13651 method: this.method,

Callers 4

constructorMethod · 0.70
cloneRequestFunction · 0.70
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected