curl --http2 will use Upgrade: header if target URL is http.
so curl won't work with HTTP/2 on HTTP.
- http-client
https://www.stackage.org/package/http-client
no HTTP/2 support.
is there keepalive/session support? that would also help.
no.
gpt: is there a haskell http client library with keepalive or session support? my goal is to connect to the same HTTP server with lower latency and larger throughput by reducing tcp connection initiation.
//side note: chatgpt gives much better result than Chinese LLMs.
http-client
a connection pool is used by default. just use the same manager to send your