]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
✨ Allow setting the `response_class` to `RedirectResponse` and returning the URL...
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 3 Jul 2021 19:51:28 +0000 (21:51 +0200)
committerGitHub <noreply@github.com>
Sat, 3 Jul 2021 19:51:28 +0000 (21:51 +0200)
commitdc5a966548df973d0fd2d3a28bad65d0436f6fb9
tree9571e5bed264a05ef2ea5c6c52b0029b767d359a
parentea8d7f689efcb0ddf28f4686fa3be90c2154503b
✨ Allow setting the `response_class` to `RedirectResponse` and returning the URL from the function (#3457)
13 files changed:
docs/en/docs/advanced/custom-response.md
docs_src/custom_response/tutorial006.py
docs_src/custom_response/tutorial006b.py [new file with mode: 0644]
docs_src/custom_response/tutorial006c.py [new file with mode: 0644]
docs_src/custom_response/tutorial009b.py [new file with mode: 0644]
fastapi/applications.py
fastapi/openapi/utils.py
fastapi/routing.py
tests/test_tutorial/test_custom_response/test_tutorial006.py
tests/test_tutorial/test_custom_response/test_tutorial006b.py [new file with mode: 0644]
tests/test_tutorial/test_custom_response/test_tutorial006c.py [new file with mode: 0644]
tests/test_tutorial/test_custom_response/test_tutorial009.py [new file with mode: 0644]
tests/test_tutorial/test_custom_response/test_tutorial009b.py [new file with mode: 0644]