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
Improve middleware documentation #2852
Comments
The issue is very easy, it is documentation update only. |
Hi, Is not that already explained here? https://docs.aiohttp.org/en/stable/tutorial.html#middlewares Or you mean on something else? |
I think |
Fixed by #2874 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Current docs are not exhausting clean (#2848 for example).
https://docs.aiohttp.org/en/stable/web_advanced.html#middlewares section should have an example for middleware factory (a function that creates a middleware with passed arguments).
middleware factory conflicts with a factory for old-style middlewares, I think dropping old-styles from docs is ok (but we should support this old style for a while, #2851)
Document that normalize path middleware https://docs.aiohttp.org/en/stable/web_reference.html#normalize-path-middleware is actually a factory.
The text was updated successfully, but these errors were encountered: