Follow up to #88311:
some REST responses will generate headers (e.g. deprecation headers) during serialization. We can't add them as actual headers in the chunked encoding approach since we don't know them until we finish the serialization. We can however add them as trailers after serialization. I'll implement that here.
Follow up to #88311:
some REST responses will generate headers (e.g. deprecation headers) during serialization. We can't add them as actual headers in the chunked encoding approach since we don't know them until we finish the serialization. We can however add them as trailers after serialization. I'll implement that here.