-
Notifications
You must be signed in to change notification settings - Fork 86
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
new: ✨ add ASGI middleware alternative #113
new: ✨ add ASGI middleware alternative #113
Conversation
Thanks for this PR @thentgesMindee ! Just to say I have no time to look into it this week (nor next, most likely), but there are other contributors to this repo who might get to it before then. |
@laurentS alright thanks a lot for the information, no worries 😄 |
2d14dda
to
6ef3e55
Compare
rebase made, + commit to update newly added tests |
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.
Sorry for the delay in reviewing this. I suggested a few type annotations, hoping to at least get mypy
to look into each function.
I think it'd be nice to give a minimal example of each usage in the docs as well, and maybe add a line explaining how you'd choose one or the other middleware.
Hi thanks for the review @laurentS ! |
Just as an update, committed the fix I was talking about, as well as type annotations change requests. |
Sorry for the delay, but I finally managed to find some time to:
Let me know what do you think about it |
Hi @laurentS , sorry for being impatient, any chance you could review the requested changes ? |
@thentgesMindee sorry for the lag. Things are a bit busy everywhere. I just approved the CI run, hadn't noticed this was waiting for a button click, and it failed on typing. Can you check and correct? |
Sure no worries take your time, don't want to rush you, as I said I just wanted to make sure the PR wasn't forgotten. |
@laurentS type annotations were updated (just left a # type: ignore, but the other ones are fixed) |
Just saw that the CI is still failing because of some unused imports, gonna fix it tomorrow! |
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.
Looks good to me. Just a suggestion in _get_route_name
to use a more modern style, otherwise all LGTM!
9065d00
to
ed0c870
Compare
Thanks a lot for the review! rebased my branch to be up-to-date with current |
1 similar comment
Thanks a lot for the review! rebased my branch to be up-to-date with current |
fix #98
Might be easier for people reviewing to explain the different commits:
Might be easier to first review the first two commits, then the refactoring one (to avoid seeing too many changes at once)
Let me know what do you think about this 😄
Note: maybe I could do a bit of refactoring between
_inject_headers
and_inject_asgi_headers
as well ?