Skip to content

response_factory is documented, but not present #12718

@gabor-borbely

Description

@gabor-borbely

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

  1. visit https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.UrlDispatcher.add_static
  2. then click the [source] link

Expected behavior

All functions match their respective documentation.

Logs/tracebacks

None

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

  • I agree to follow the aio-libs Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions