commit | 9935c30d1fe2279ab977630aa02264db46f46949 | [log] [tgz] |
---|---|---|
author | Hyun Jae Moon <hyunjaemoon@google.com> | Wed Feb 22 22:52:53 2023 +0000 |
committer | Hyun Jae Moon <hyunjaemoon@google.com> | Thu Feb 23 18:16:29 2023 +0000 |
tree | 657c932a58bc551986375a97b9136292877ca0ce | |
parent | 8fb2a826153c7a16d072e6e9d4c96220034c5383 [diff] |
Allow HttpResponse to directly write to stream Create a ServerResponseStream to have handlers directly write to stream. - put_ok_with_length() --> ok but we will stream output - put_chunk() --> streaming outputs - put_ok() --> one-shot body output - put_error() --> one-shot error output Bug: 270461842 Change-Id: Ieb85eb71f269e86ab90c19836cd5b0558d523629