MCPcopy
hub / github.com/di-sukharev/opencommit / makeResponse

Function makeResponse

out/cli.cjs:58971–58986  ·  view source on GitHub ↗
(init)

Source from the content-addressed store, hash-verified

58969 );
58970 }
58971 const newResponse = makeResponse({ ...response, body: null });
58972 if (response.body != null) {
58973 newResponse.body = cloneBody(response.body);
58974 }
58975 return newResponse;
58976 }
58977 function makeResponse(init) {
58978 return {
58979 aborted: false,
58980 rangeRequested: false,
58981 timingAllowPassed: false,
58982 requestIncludesCredentials: false,
58983 type: "default",
58984 status: 200,
58985 timingInfo: null,
58986 cacheState: "",
58987 statusText: "",
58988 ...init,
58989 headersList: init.headersList ? new HeadersList(init.headersList) : new HeadersList(),

Callers 5

constructorMethod · 0.85
cloneResponseFunction · 0.85
makeNetworkErrorFunction · 0.85
schemeFetchFunction · 0.85
httpNetworkFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…