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

Function lazyUndici

lib/http.js:128–130  ·  view source on GitHub ↗

* Lazy loads WebSocket, CloseEvent and MessageEvent classes from undici * @returns {object} An object containing WebSocket, CloseEvent, and MessageEvent classes.

()

Source from the content-addressed store, hash-verified

126 * @returns {object} An object containing WebSocket, CloseEvent, and MessageEvent classes.
127 */
128function lazyUndici() {
129 return undici ??= require('internal/deps/undici/undici');
130}
131
132function setGlobalProxyFromEnv(env = process.env) {
133 validateObject(env, 'proxyEnv');

Callers 2

setGlobalProxyFromEnvFunction · 0.70
getFunction · 0.70

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…