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 Route::all and Route::nest #379

Merged
merged 4 commits into from
Jan 11, 2020
Merged

Add Route::all and Route::nest #379

merged 4 commits into from
Jan 11, 2020

Conversation

tirr-c
Copy link
Collaborator

@tirr-c tirr-c commented Dec 22, 2019

Follow-up of #364.

Route::all catches all HTTP methods. This is mandatory for nesting story, but I missed this somehow.

This PR also adds a convenience method nest_service, which turns on nesting flag temporarily and calls all.

src/server/route.rs Outdated Show resolved Hide resolved
Copy link
Member

@yoshuawuyts yoshuawuyts 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! -- few questions, but this should be good to merge either way!

@tirr-c tirr-c changed the title Add Route::all and Route::nest_service Add Route::all and Route::nest Jan 11, 2020
@tirr-c
Copy link
Collaborator Author

tirr-c commented Jan 11, 2020

Renamed the method, and merging!

@tirr-c tirr-c merged commit 428238c into http-rs:master Jan 11, 2020
@tirr-c tirr-c deleted the nest-service branch January 11, 2020 07:46
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.

None yet

2 participants