()
| 1693 | } |
| 1694 | |
| 1695 | function 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 | } |
no test coverage detected