from Hacker News

H2alagút: Fetch adapter that uses HTTP/2 and can tunnel through an HTTP/1 proxy

by lloydjones on 2/8/25, 4:14 AM with 1 comments

  • by lloydjones on 2/8/25, 4:14 AM

    What?

    - 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.