-
-
Notifications
You must be signed in to change notification settings - Fork 943
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 Mount(..., middleware=[...]) #1649
Merged
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
42548cf
Add Mount(..., middleware=[...])
adriangb 01bbcdc
fmt
adriangb d8b626d
add missing test
adriangb 73dc39e
fmt
adriangb 14d3005
move docs
adriangb 8eb2699
Merge branch 'master' into mount-middleware
adriangb baab334
Merge branch 'master' into mount-middleware
adriangb bbca389
Merge remote-tracking branch 'upstream/master' into mount-middleware
adriangb a75a523
replace basehttpmiddleware
adriangb 578f618
Merge branch 'mount-middleware' of https://github.com/adriangb/starle…
adriangb ba59a35
Merge branch 'master' into mount-middleware
adriangb 3cadfb2
Merge branch 'master' into mount-middleware
adriangb 1eace2b
Merge branch 'master' into mount-middleware
adriangb ca50340
Merge branch 'master' into mount-middleware
adriangb f65dfc8
lint
adriangb 5edb100
Merge branch 'master' into mount-middleware
adriangb 1ef66e6
Merge branch 'master' into mount-middleware
adriangb fb93ef5
Merge branch 'master' into mount-middleware
adriangb 273cc73
Merge remote-tracking branch 'upstream/master' into mount-middleware
adriangb 4369ee7
add comment to docs
adriangb 10f47ae
save
adriangb feeba5e
Merge branch 'master' into mount-middleware
Kludex 0bb54e4
Merge branch 'master' into mount-middleware
adriangb d7c3f2a
Update docs/middleware.md
adriangb e6fad81
Update docs/middleware.md
adriangb adb52ab
Merge branch 'master' into mount-middleware
adriangb 0f7a2c4
Merge branch 'master' into mount-middleware
Kludex f6de20f
Apply suggestions from code review
Kludex 72fbaa6
fix duplicate parametrization
adriangb eee6a6f
fix bad test for url_path_for
adriangb aec580f
Add test explaining behavior
adriangb 93ec37f
fix linting
adriangb 5f936e9
Merge branch 'master' into mount-middleware
adriangb 0079756
Merge branch 'master' into mount-middleware
abersheeran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also
assert
that calling a route not under theMount
does not apply the middleware? E.g. testing atest_client.get("/")
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in eee6a6f