]> git.ipfire.org Git - thirdparty/starlette.git/commit
Support `request.url_for` when only "app" scope is avaialable (#2672)
authorJoel Sleppy <jdsleppy@gmail.com>
Sun, 29 Sep 2024 09:40:23 +0000 (05:40 -0400)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 09:40:23 +0000 (09:40 +0000)
commitfe46d99d92da17efe1827f96ad29d748aac870d2
treec4b1576552a3179c614ea72d717f8221bb3341c9
parent1a6018e08a994c78f5c169b8535408259af0f249
Support `request.url_for` when only "app" scope is avaialable (#2672)

* Support request.url_for in BaseMiddleware

* Move test to test_requests

* Call the endpoint properly

* fix test

* order the type hint

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
starlette/requests.py
tests/middleware/test_base.py
tests/test_requests.py