Hello, I am building a simple server-rendered HTML form with traditional POST-and-redirect logic. To this end, I have been using
However, I wanted to also add a background task to one of my redirects and I noticed that
RedirectResponse is defined with a custom
__init__ that explicitly does not include
It would be trivial for me to build my own version of
RedirectResponse, but before I do, I wanted to know: is there a reason for this omission? Should
RedirectResponse not be allowed to submit
BackgroundTasks for some reason?
One other thing I want to comment on: I’m really happy with starlette. The
BackgroundTask aspect of responses is one of the things I’ve been wanting in a web framework for years. Thank you for working on it.