H2alagút: Fetch adapter that uses HTTP/2 and can tunnel through an HTTP/1 proxy(npmjs.com)
npmjs.com
H2alagút: Fetch adapter that uses HTTP/2 and can tunnel through an HTTP/1 proxy
https://www.npmjs.com/package/@joneslloyd/h2alagut
https://www.npmjs.com/package/@joneslloyd/h2alagut
- HTTP/2: Utilises Node's built‑in http2 module.
- Proxy Tunneling: Automatically tunnels through an HTTP/1 proxy (via HTTP CONNECT) when a proxy configuration is provided.
- Fetch-like API: Provides a drop‑in replacement for the standard Fetch API. The returned Response object supports properties such as status and methods like text() and json().
Why?
Because many proxy services still use HTTP/1.1, while many sites use HTTP/2.