-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
documentation bugs ? #1942
Comments
Yes, I think you're right. That is a mistake in the documentation. |
Also what I found in
in docstring for
But in code it is:
|
And please correct me if I am wrong but:
But it does not seams so, and even next paragraph
And in code registering middleware for blueprint is done with register_named_middleware, |
Also we could write tiny paragraph for: |
And also in middlewares documentation in listeners section for listeners execution order:
I think it would be more clear to describe it like that: "before_server_start", "after_server_start" listeners are executed in order they were registered |
@tomaszdrozdz
This behavior changed when the standard HTTP response messages were refactored into "sanic.helpers" but the docstring for
This paragraph in the documentation was not updated when "named" middleware was introduced, so now blueprint middleware is only executed on the routes in that blueprint. Of course this is a bad thing, but it is a very difficult problem to solve. When a user creates a pull request, they are only concerned about implementing a feature or fixing a bug they've found, and possibly creating a unit test for it. It is difficult for a contributor to know every place in the code that references that, or every piece of existing documentation which will now be inaccurate due to their change. Its something we will need to continue to consider going forward. |
I understand :) |
https://sanic.readthedocs.io/en/latest/sanic/static_files.html
chunk_size = 1
means 1 Byte ???
If so then
chunk_size = 1024 * 1024 * 8
Shouldn't it be 8MiB ???
Not 8KB, not 8MB but just 8MiB
The text was updated successfully, but these errors were encountered: