Describe the bug
For the web.Application one can add_static for serving static files (https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.UrlDispatcher.add_static) but the documentation and the implementation of this function differ. Namely, the add_static is documented to have a response_factory argument but it's long gone in source code.
To Reproduce
- visit https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.UrlDispatcher.add_static
- then click the [source] link
Expected behavior
All functions match their respective documentation.
Logs/tracebacks
Python Version
$ python --version
Python 3.12.10
aiohttp Version
$ uv pip show aiohttp
3.13.5
multidict Version
$ python -m pip show multidict
6.7.1
propcache Version
$ python -m pip show propcache
0.4.1
yarl Version
$ python -m pip show yarl
1.23.0
OS
Windows
Related component
Server
Additional context
No response
Code of Conduct
Describe the bug
For the
web.Applicationone canadd_staticfor serving static files (https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.UrlDispatcher.add_static) but the documentation and the implementation of this function differ. Namely, theadd_staticis documented to have aresponse_factoryargument but it's long gone in source code.To Reproduce
Expected behavior
All functions match their respective documentation.
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
propcache Version
yarl Version
OS
Windows
Related component
Server
Additional context
No response
Code of Conduct