MCPcopy
hub / github.com/nodejs/undici / dispatch

Method dispatch

test/fetch/issue-2828.js:12–15  ·  view source on GitHub ↗
(options, handler)

Source from the content-addressed store, hash-verified

10
11 class CustomAgent extends Agent {
12 dispatch (options, handler) {
13 options.headers['x-my-header'] = 'hello'
14 return super.dispatch(...arguments)
15 }
16 }
17
18 const server = createServer({ joinDuplicateHeaders: true }, (req, res) => {

Calls

no outgoing calls

Tested by

no test coverage detected