-
Notifications
You must be signed in to change notification settings - Fork 35
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
Enriched scope and path #76
Conversation
Added headers to the scope
Hi @evstratbg , I'm curious why the StaticFile test fails when switching the isinstance check from Mount to BasePath. Any idea? |
Hi! I cant reproduce your issue. Are you sure you meant Can you share the details of your setup? |
Yes, I meant BaseRoute. I'm not having an issue, I just noticed that StaticFiles handler setup changed at the same time as moving it to testconf.py. When I change it back, the test fails. Also, thank you for contributing! Sorry it's taken some time to get to this, things have been extra busy. |
@stephenhillier it hasn't changed, I just moved it to a What else can I do to get this MR merged? |
You made a change to the StaticFile test setup at the same time that you moved the files around. I would like to help support your use case but the tests need to pass without modifications (they currently don't). Happy to take another look if you can get the tests to pass as-is, or if you can share more about the header based routing I can try to help find a way to support it. |
@stephenhillier I don't quite understand what you are talking about, because the latest checks have been passed, all green I rollbacked my changes to the |
You are correct, they are passing. I will try to do a release as soon as I can this week. Thank you for contributing this. Just for my own knowledge, do you have any examples of the header based versioning? Is this a library on GitHub or custom middleware? |
@stephenhillier thanks! |
I started preparing the repo, you can find it here |
released first version |
Hi!
I added headers to the
scope
forget_router_path
as I have my custom Router which matches against headers, so-called "header-based versioning", as well as deletedMount
isinstance check, because startlette allows Routers include Routers as pathsWould be cool if you accept this PR and release a patch version of the package
Looking forward to your comments