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

Function buildH2CapableSSLProxy

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

Source from the content-addressed store, hash-verified

1670}
1671
1672function buildH2CapableSSLProxy () {
1673 const serverOptions = {
1674 ca: [
1675 certs.root.crt
1676 ],
1677 key: certs.proxy.key,
1678 cert: certs.proxy.crt,
1679 allowHTTP1: true,
1680 joinDuplicateHeaders: true
1681 }
1682
1683 return new Promise((resolve) => {
1684 const server = http2.createSecureServer(serverOptions)
1685 server.listen(0, () => resolve(server))
1686 })
1687}

Callers 1

proxy-agent.jsFile · 0.85

Calls 2

resolveFunction · 0.85
listenMethod · 0.80

Tested by

no test coverage detected