MCPcopy Create free account
hub / github.com/tensorflow/tfjs / nodeHTTPRequestRouter

Function nodeHTTPRequestRouter

tfjs-node/src/io/node_http.ts:34–45  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

32}
33
34export const nodeHTTPRequestRouter = (url: string) => {
35 let isHTTP = true;
36 if (Array.isArray(url)) {
37 isHTTP = url.every(urlItem => io.isHTTPScheme(urlItem));
38 } else {
39 isHTTP = io.isHTTPScheme(url);
40 }
41 if (isHTTP) {
42 return nodeHTTPRequest(url);
43 }
44 return null;
45};

Callers

nothing calls this directly

Calls 1

nodeHTTPRequestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…