Skip to content

feat: add automatic HTTP/2 and HTTP/1.1 negotiation - #69

Open
noneandundefined wants to merge 5 commits into
developfrom
feat/http11-protocol-fallback
Open

noneandundefined wants to merge 5 commits into
developfrom
feat/http11-protocol-fallback

Conversation

@noneandundefined

Copy link
Copy Markdown
Contributor

Summary

  • restore HTTP/1.1 request handling alongside the existing HTTP/2 transport
  • auto-detect cleartext HTTP/2 prior-knowledge preface and otherwise fall back to HTTP/1.1
  • negotiate TLS with ALPN, preferring h2 and falling back to http/1.1
  • serialize responses using the protocol selected for the request
  • add a real socket regression test for HTTP/1.1 fallback

This keeps the existing server API unchanged. HTTP/2 remains preferred when the client supports it; ordinary browser HTTP requests such as Swagger UI can use HTTP/1.1 automatically.

@github-actions github-actions Bot added the core label Sep 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant