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

Function buildSSLProxy

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

Source from the content-addressed store, hash-verified

1677}
1678
1679function buildSSLProxy () {
1680 const serverOptions = {
1681 ca: [
1682 certs.root.crt
1683 ],
1684 key: certs.proxy.key,
1685 cert: certs.proxy.crt,
1686 joinDuplicateHeaders: true
1687 }
1688
1689 return new Promise((resolve) => {
1690 const server = createProxy(https.createServer(serverOptions))
1691 server.listen(0, () => resolve(server))
1692 })
1693}
1694
1695function buildH2CapableSSLProxy () {
1696 const serverOptions = {

Callers 1

proxy-agent.jsFile · 0.85

Calls 2

resolveFunction · 0.85
listenMethod · 0.80

Tested by

no test coverage detected