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

Function processResponse

github-actions/browserstack/set-browserstack-env.js:13930–13945  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

13928 constructor(dispatcher) {
13929 super();
13930 this.dispatcher = dispatcher;
13931 this.connection = null;
13932 this.dump = false;
13933 this.state = "ongoing";
13934 }
13935 terminate(reason) {
13936 var _a;
13937 if (this.state !== "ongoing") {
13938 return;
13939 }
13940 this.state = "terminated";
13941 (_a = this.connection) == null ? void 0 : _a.destroy(reason);
13942 this.emit("terminated", reason);
13943 }
13944 // https://fetch.spec.whatwg.org/#fetch-controller-abort
13945 abort(error) {
13946 var _a;
13947 if (this.state !== "ongoing") {
13948 return;

Callers

nothing calls this directly

Calls 10

updateMethod · 0.80
abortFetchFunction · 0.70
fromInnerResponseFunction · 0.70
failWebsocketConnectionFunction · 0.70
parseExtensionsFunction · 0.70
getDecodeSplitFunction · 0.70
derefMethod · 0.45
getMethod · 0.45
hasMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected