-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
Deprecate WSGIMiddleware #1235
Deprecate WSGIMiddleware #1235
Conversation
It seems that using DeprecationWarning directly will cause the test to fail, how can I fix it? |
add it in setup.cfg ?
|
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.
Maybe we should deprecate the module instead?
Like, we are not strict when it comes to private/public objects, so I guess the middleware and build_environ
/WSGIResponder
are in the same privacy level. Does it make sense?
Agree with your ideas. But I am not sure how to do it...I have no experience in this area. Is there a module that has already done this for me? |
I guess like this: https://github.com/encode/uvicorn/pull/1205/files#diff-7c8a9d71c98f0ed83c32a88a1b7e777ef85776c98869045d24c74e3f7714494a Yeah, we never deprecated modules on uvicorn before, this would be the first time. We have done it for starlette: https://github.com/encode/starlette/blob/8a3e41a5442239bb2da5f2df6cfaaf4683e49f96/starlette/graphql.py#L12-L17 |
What's the plan with The idea is to import the middleware from |
Do I need to submit it in this PR? I took a quick look at the code and it shouldn't be difficult to implement. |
No, I just want to confirm the best steps. |
@abersheeran What's our plan for it? 🤔 |
I don't quite understand what you mean. 👀 |
let's favor #1303 |
Related links: #1049 (comment)