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 example how to use custom HTTP methods #877

Merged

Conversation

outergod
Copy link
Contributor

@outergod outergod commented Jul 1, 2021

Fixes #871.

This has been created as a result out of #874.

fn method(name: &'static str) -> impl Filter<Extract = (), Error = Rejection> + Clone {
warp::method()
.and_then(move |m: Method| {
async move {
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like rustfmt is suggesting to move the async move { up to be on the same line as the start of the closure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting, it seems like a missing Cargo.toml made my rustfmt fail in applying the correct formatting. Fixed by running it with the corresponding option manually.

@outergod
Copy link
Contributor Author

outergod commented Sep 7, 2021

@seanmonstar Would you mind starting another workflow, please?

@seanmonstar seanmonstar merged commit f490c69 into seanmonstar:master Sep 7, 2021
@outergod outergod deleted the feature/document-custom-methods branch September 8, 2021 07:17
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.

Support for HTTP extension methods
2 participants