Add support for ASGI `pathsend` extension
Summary
As per title, this adds support for ASGI pathsend extension on FileResponse class for servers implementing it.
This is a re-work of #2435 combined with parts of #2616, as discussed in #2613 with @Kludex.
Checklist
- [x] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
- [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
- [x] I've updated the documentation accordingly.
@Kludex I just rebased from current master for your convenience
@Kludex what's your current take on this? Should I rebase so it can be merged, or should we just forget about it?
@Kludex what's your current take on this? Should I rebase so it can be merged, or should we just forget about it?
I want this to get in, I want to get back to this soon. I can rebase myself.
Sorry the delay here.
@Kludex not sure why the coverage fails after the last rebase..
@Kludex not sure why the coverage fails after the last rebase..
Because we recently set branch = True on coverage.
@Kludex sorry for the long delay.
This is now rebased on latest master, and tests/CI is finally green. Let me know if any additional edits are required for merge.
Sorry the delay. Gradly you caught me at PyCon IT. 😅