Right now we're passing around request in a bunch of places, so that we can reverse the URLs.
Instead of this, we now have an importable url_for so that we don't need to pass a request reference around everywhere.
There will likely be a review of url_for and url_path_for in starlette itself, so we may be able to swap this out for something more graceful in due course.
Right now we're passing around
request
in a bunch of places, so that we can reverse the URLs.Instead of this, we now have an importable
url_for
so that we don't need to pass a request reference around everywhere.There will likely be a review of
url_for
andurl_path_for
in starlette itself, so we may be able to swap this out for something more graceful in due course.