pub trait ProtobufStreamRequest {
// Required methods
fn protobuf_stream_body<S, T>(self, stream: S) -> RequestBuilder
where T: Message + Send + 'static,
S: Stream<Item = T> + Send + 'static;
fn try_protobuf_stream_body<S, T, E>(self, stream: S) -> RequestBuilder
where T: Message + Send + 'static,
S: Stream<Item = Result<T, E>> + Send + 'static,
E: Into<Box<dyn Error + Send + Sync>> + Send + 'static;
}Available on crate feature
protobuf only.Expand description
Extension trait for reqwest::RequestBuilder that streams a protobuf request body.
See ReqwestStreamBody for the HTTP caveats that apply to every streamed request body.
Required Methods§
Sourcefn protobuf_stream_body<S, T>(self, stream: S) -> RequestBuilder
fn protobuf_stream_body<S, T>(self, stream: S) -> RequestBuilder
Streams stream as length-prefixed protobuf messages, setting
Content-Type: application/x-protobuf-stream.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".