I've added #2359 because it seemed like an easy enough change to implement but as @euri10 pointed out, it might not really bring much if anything.
However the conversation around it pointed out the issue that there isn't a good way to await
response body content from async
sources - which could be async generated templates like what Jinja supports or files read asynchronously.
@provinzkraut and @peterschutt suggested some solutions in the discussion from the PR so this issue proposes implementing the proper abstraction. So that async content can be served withou breaking separation of concerns and adding this logic to ASGIResponse
classes. Maybe it could potentially help with #1250 ? Am not sure though. However if this gets through, #2359 could be reimplemented in a proper way.
No response
No response
Is this even worth pursuing? Jinja rendering and file serving currently both work ok without this.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too