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

Function makeResponse

github-actions/browserstack/set-browserstack-env.js:12863–12878  ·  view source on GitHub ↗
(init)

Source from the content-addressed store, hash-verified

12861 return newResponse;
12862 }
12863 function makeResponse(init) {
12864 return __spreadProps(__spreadValues({
12865 aborted: false,
12866 rangeRequested: false,
12867 timingAllowPassed: false,
12868 requestIncludesCredentials: false,
12869 type: "default",
12870 status: 200,
12871 timingInfo: null,
12872 cacheState: "",
12873 statusText: ""
12874 }, init), {
12875 headersList: (init == null ? void 0 : init.headersList) ? new HeadersList(init == null ? void 0 : init.headersList) : new HeadersList(),
12876 urlList: (init == null ? void 0 : init.urlList) ? [...init.urlList] : []
12877 });
12878 }
12879 function makeNetworkError(reason) {
12880 const isError = isErrorLike(reason);
12881 return makeResponse({

Callers 7

jsonMethod · 0.70
redirectMethod · 0.70
constructorMethod · 0.70
cloneResponseFunction · 0.70
makeNetworkErrorFunction · 0.70
schemeFetchFunction · 0.70
httpNetworkFetchFunction · 0.70

Calls 2

__spreadPropsFunction · 0.70
__spreadValuesFunction · 0.70

Tested by

no test coverage detected