()
| 1670 | } |
| 1671 | |
| 1672 | function 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 | } |
no test coverage detected