TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

1 pointsby lloydjones3 months ago

1 comment

lloydjones3 months ago
What?<p>- HTTP&#x2F;2: Utilises Node&#x27;s built‑in http2 module.<p>- Proxy Tunneling: Automatically tunnels through an HTTP&#x2F;1 proxy (via HTTP CONNECT) when a proxy configuration is provided.<p>- 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().<p>Why?<p>Because many proxy services still use HTTP&#x2F;1.1, while many sites use HTTP&#x2F;2.