Skip to content

Conversation

SabrinaJewson
Copy link
Contributor

This makes it easiër to support HTTP/2 Extended Connect with Axum.

Suggested originally in #2894. I didn’t modify the documentation of WebSockets, because any(handler) looks a lot nicer than on(MethodFilter::GET.or(MethodFilter::CONNECT), handler) and there aren’t many disadvantages to using any (incorrect methods are rejected anyway).

Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

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

Thanks!

@SabrinaJewson
Copy link
Contributor Author

I reälized the WebSockets PR was in the wrong section in the changelog, so I fixed that too.

@jplatte jplatte enabled auto-merge (squash) October 6, 2024 19:06
@jplatte jplatte merged commit 822db3b into tokio-rs:main Oct 6, 2024
18 checks passed
@SabrinaJewson SabrinaJewson deleted the method-filter-connect branch October 6, 2024 19:52
jplatte pushed a commit that referenced this pull request Nov 14, 2024
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.

2 participants