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

Function buildSSLProxy

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

Source from the content-addressed store, hash-verified

1654}
1655
1656function buildSSLProxy () {
1657 const serverOptions = {
1658 ca: [
1659 certs.root.crt
1660 ],
1661 key: certs.proxy.key,
1662 cert: certs.proxy.crt,
1663 joinDuplicateHeaders: true
1664 }
1665
1666 return new Promise((resolve) => {
1667 const server = createProxy(https.createServer(serverOptions))
1668 server.listen(0, () => resolve(server))
1669 })
1670}
1671
1672function buildH2CapableSSLProxy () {
1673 const serverOptions = {

Callers 1

proxy-agent.jsFile · 0.85

Calls 2

resolveFunction · 0.85
listenMethod · 0.80

Tested by

no test coverage detected