Replies: 2 comments
-
|
Any update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Gunicorn has a
pre_requestserver hook:However in my testing, this function does not appear to be called when using Uvicorn workers, i.e.
worker_class = "uvicorn.workers.UvicornWorker".Would it be difficult to add support for this server hook? It's useful as a light-duty alternative to ASGI middleware.
There is also a
post_requestserver hook that would probably be convenient for some users.Overall, it would at least be useful if the Uvicorn documentation stated which Gunicorn server hooks were/weren't supported by
UvicornWorker.Beta Was this translation helpful? Give feedback.
All reactions