MCPcopy Create free account
hub / github.com/nodejs/undici / buildProxy

Function buildProxy

test/env-http-proxy-agent.js:204–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204function buildProxy () {
205 return new Promise((resolve) => {
206 const server = createProxy(createServer({ joinDuplicateHeaders: true }))
207 server.listen(0, () => resolve(server))
208 })
209}
210
211const createEnvHttpProxyAgentWithMocks = (plan = 1, opts = {}) => {
212 const factory = (origin) => {

Callers 1

Calls 3

createServerFunction · 0.85
resolveFunction · 0.85
listenMethod · 0.80

Tested by

no test coverage detected