apache / pekko-http

The Streaming-first HTTP server/module of Apache Pekko
https://pekko.apache.org/
Apache License 2.0
149 stars 36 forks source link

support HTTP/1.1 vs HTTP/2 protocol negotiation for client connections #483

Open pjfanning opened 6 months ago

pjfanning commented 6 months ago

Aim would be to request a HTTP/2 client connection but to allow failover to HTTP/1.1 if the server-side does not support HTTP/2.

See https://pekko.apache.org/docs/pekko-http/current/client-side/http2.html#http-2-over-tls - which says:

Apache Pekko HTTP does not currently support protocol negotiation to fall back to HTTP/1.1 for this API. When the server does not support HTTP/2, the stream will fail.