unit
unit copied to clipboard
[Epic] Support `Transfer-Encoding: chunked` for all data flows
Right now Unit does not support incoming requests with Transfer-Encoding: chunked.
We should do so.
There are two main data paths: proxying to an external upstream, and passing to a Unit-hosted application runtime.
There are also two possible operation modes: buffering the incoming request until completion, then forwarding it on with Content-Length, or directly streaming while the request is still incoming. We'll do the first, then leave the latter for future potential optimization.
Necessary Tasks:
- [ ] #445
- [ ] #1088
Potential Tasks:
- [ ] #1282
Hi, I plan to get the application process to parse the chunked request body next, any suggestions are welcome.