license import { io } from '@tensorflow/tfjs' ; param path param requestInit param weightPathPrefix export function nodeHTTPRequest ( path , requestInit ? , weightPathPrefix ? ) { return io . browserHTTPRequest ( path , { requestInit , weightPathPrefix } ) ; } export const nodeHTTPRequestRouter = ( url ) => { let isHTTP = true ; if ( Array . isArray ( url ) ) { isHTTP = url . every ( urlItem => io . isHTTPScheme ( urlItem ) ) ; } else { isHTTP = io . isHTTPScheme ( url ) ; } if ( isHTTP ) { return nodeHTTPRequest ( url ) ; } return null ; } ;