MCPcopy
hub / github.com/vercel/next.js / fetch

Function fetch

packages/next/src/compiled/@edge-runtime/primitives/load.js:18546–18551  ·  view source on GitHub ↗
(resource, options)

Source from the content-addressed store, hash-verified

18544 return typeof options === "undefined" || typeof options === "object" && options.duplex === void 0 ? { duplex: "half", ...options } : options;
18545}
18546async function fetch(resource, options) {
18547 const res = await import_undici.default.fetch(resource, addDuplexToInit(options));
18548 const response = new Response(res.body, res);
18549 Object.defineProperty(response, "url", { value: res.url });
18550 return response;
18551}
18552var import_node_buffer, import_undici, import_response, _Request, Request, Response, Headers, FormData, WebSocket, Blob2;
18553var init_fetch = __esm({
18554 "src/primitives/fetch.js"() {

Callers 15

EeFunction · 0.50
IcFunction · 0.50
LcFunction · 0.50
xrFunction · 0.50
initFunction · 0.50
loadEmojiFunction · 0.50
loadMethod · 0.50
loadGoogleFontFunction · 0.50
index.edge.jsFile · 0.50
kAFunction · 0.50
FIFunction · 0.50
teFunction · 0.50

Calls 2

addDuplexToInitFunction · 0.70
fetchMethod · 0.45

Tested by

no test coverage detected