MCPcopy Index your code
hub / github.com/tensorflow/tfjs / fetch

Method fetch

tfjs-core/src/platforms/platform_node.ts:53–62  ·  view source on GitHub ↗
(path: string, requestInits?: RequestInit)

Source from the content-addressed store, hash-verified

51 }
52
53 fetch(path: string, requestInits?: RequestInit): Promise<Response> {
54 if (env().global.fetch != null) {
55 return env().global.fetch(path, requestInits);
56 }
57
58 if (systemFetch == null) {
59 systemFetch = getNodeFetch.importFetch();
60 }
61 return systemFetch(path, requestInits);
62 }
63
64 now(): number {
65 const time = process.hrtime();

Callers

nothing calls this directly

Calls 2

envFunction · 0.90
fetchMethod · 0.65

Tested by

no test coverage detected