Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MethodFilter::CONNECT #2961

Merged
merged 6 commits into from
Oct 6, 2024
Merged

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!

axum-extra/src/routing/mod.rs Show resolved Hide resolved
axum/src/routing/method_filter.rs Outdated Show resolved Hide resolved
axum/src/routing/method_filter.rs Outdated Show resolved Hide resolved
axum/CHANGELOG.md Outdated Show resolved Hide resolved
@SabrinaJewson
Copy link
Contributor Author

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

axum-extra/CHANGELOG.md Outdated Show resolved Hide resolved
axum/CHANGELOG.md Outdated Show resolved Hide resolved
@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