ClientStream

Type Alias ClientStream 

Source
pub type ClientStream = BoxStream<'static, Result<Bytes, ClientError>>;
Expand description

Incoming byte stream from a client PUT request body.

Uses ClientError as the error type so that a dropped or interrupted client connection is distinguishable from a backend I/O failure. Backends that detect a ClientError (via unpack_client_error) can surface it as crate::error::Error::Client, which the server maps to HTTP 400 rather than 500.

Use single to construct a single-chunk ClientStream from an owned value.

Aliased Typeยง

pub struct ClientStream { /* private fields */ }