Skip to main content

reqwest_streams/
error.rs

1//! Error types for streaming responses.
2//!
3//! These now live in [`http_streams_core`] and are shared with `axum-streams`, so that a body
4//! encoded by one and decoded by the other reports failures through one type. They are
5//! re-exported here under the names they have always had.
6//!
7//! Two changes are visible: [`StreamBodyKind`] is now `#[non_exhaustive]`, and it gained a
8//! `MaxBodyLenReachedError` variant used by the server side. A `match` over it needs a `_` arm.
9
10pub use http_streams_core::error::{
11    StreamError as StreamBodyError, StreamErrorKind as StreamBodyKind,
12};