pub trait IntoBody {
type IntoBody: Body;
// Required method
fn into_body(self) -> Self::IntoBody;
}Expand description
Conversion into a Body.
NOTE: We have our own trait over wstd::http::body::IntoBody to avoid possible future conflicts when implementing IntoResponse for Result<B: IntoBody, HttpError>.