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

Function buildSSLProxy

test/proxy-agent.js:1565–1579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1563}
1564
1565function buildSSLProxy () {
1566 const serverOptions = {
1567 ca: [
1568 certs.root.crt
1569 ],
1570 key: certs.proxy.key,
1571 cert: certs.proxy.crt,
1572 joinDuplicateHeaders: true
1573 }
1574
1575 return new Promise((resolve) => {
1576 const server = createProxy(https.createServer(serverOptions))
1577 server.listen(0, () => resolve(server))
1578 })
1579}

Callers 1

proxy-agent.jsFile · 0.85

Calls 2

resolveFunction · 0.85
listenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…