Skip to content

Conversation

@giladwolff
Copy link
Contributor

This commit exposes two methods of the hyper-utils http1-only and http2-only to allow callers to configure their servers to accept requests using a specific protocol. The currently exposed mutable http-builder cannot be used to switch to http1/2 only mode.

This is similar to #130 but more limited in scope and does not break compatibility. It can be folded into that when that is merged but unblocks current usages.

Testing done: new and old unit-tests.

@giladwolff giladwolff marked this pull request as ready for review November 19, 2024 21:56
@artob
Copy link

artob commented May 8, 2025

This would be useful!

Copy link
Collaborator

@abs0luty abs0luty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@abs0luty abs0luty merged commit 140167c into programatik29:master Nov 16, 2025
24 of 29 checks passed
abs0luty added a commit that referenced this pull request Nov 16, 2025
Allow running http1-only or http2-only servers
abs0luty added a commit that referenced this pull request Nov 16, 2025
Allow running http1-only or http2-only servers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants