unit icon indicating copy to clipboard operation
unit copied to clipboard

[Epic] Support `Transfer-Encoding: chunked` for all data flows

Open callahad opened this issue 1 year ago • 1 comments

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

callahad avatar May 20 '24 20:05 callahad

Hi, I plan to get the application process to parse the chunked request body next, any suggestions are welcome.

hongzhidao avatar Jun 03 '24 14:06 hongzhidao