tonic icon indicating copy to clipboard operation
tonic copied to clipboard

Is there any way in tonic to append data on the request ?

Open duanfuxiang0 opened this issue 2 years ago • 1 comments

Feature Request

For example, if I have a 4MB data that I don't want to encode into a protobuf field, can I directly append this chunk of data to the end of the request, like req.append_data(chunk_data); req.get_append_data()

Crates

Motivation

Proposal

Alternatives

duanfuxiang0 avatar Jun 21 '23 03:06 duanfuxiang0

I came here looking for something like this as well. The protobuf wire protocol is simple enough where I think you could theoretically manually construct a message if you could get access to the underlying HTTP/2 response body.

JonathanWilbur avatar Mar 02 '24 12:03 JonathanWilbur