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

Function buildH2CapableSSLProxy

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

Source from the content-addressed store, hash-verified

1693}
1694
1695function buildH2CapableSSLProxy () {
1696 const serverOptions = {
1697 ca: [
1698 certs.root.crt
1699 ],
1700 key: certs.proxy.key,
1701 cert: certs.proxy.crt,
1702 allowHTTP1: true,
1703 joinDuplicateHeaders: true
1704 }
1705
1706 return new Promise((resolve) => {
1707 const server = http2.createSecureServer(serverOptions)
1708 server.listen(0, () => resolve(server))
1709 })
1710}

Callers 1

proxy-agent.jsFile · 0.85

Calls 2

resolveFunction · 0.85
listenMethod · 0.80

Tested by

no test coverage detected