MCPcopy Create free account
hub / github.com/nodejs/node / dispatch

Method dispatch

deps/undici/undici.js:10319–10324  ·  view source on GitHub ↗
(opts, handler)

Source from the content-addressed store, hash-verified

10317 return new LegacyHandlerWrapper(handler);
10318 }
10319 dispatch(opts, handler) {
10320 if (opts.allowH2 !== false) {
10321 opts = { ...opts, allowH2: false };
10322 }
10323 return this.#dispatcher.dispatch(opts, _Dispatcher1Wrapper.wrapHandler(handler));
10324 }
10325 close(...args) {
10326 return this.#dispatcher.close(...args);
10327 }

Callers

nothing calls this directly

Calls 2

dispatchMethod · 0.65
wrapHandlerMethod · 0.45

Tested by

no test coverage detected