MCPcopy Index your code
hub / github.com/nodejs/node / makeResponse

Function makeResponse

deps/undici/undici.js:12229–12244  ·  view source on GitHub ↗
(init)

Source from the content-addressed store, hash-verified

12227 }
12228 __name(cloneResponse, "cloneResponse");
12229 function makeResponse(init) {
12230 return {
12231 aborted: false,
12232 rangeRequested: false,
12233 timingAllowPassed: false,
12234 requestIncludesCredentials: false,
12235 type: "default",
12236 status: 200,
12237 timingInfo: null,
12238 cacheState: "",
12239 statusText: "",
12240 ...init,
12241 headersList: init?.headersList ? new HeadersList(init?.headersList) : new HeadersList(),
12242 urlList: init?.urlList ? [...init.urlList] : []
12243 };
12244 }
12245 __name(makeResponse, "makeResponse");
12246 function makeNetworkError(reason) {
12247 const isError = isErrorLike(reason);

Callers 7

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…