pub type Body = Body<BoxedStream>;
Available on crate feature
blocking
only.Expand description
Type alias for blocking HTTP request bodies.
Aliased Type§
enum Body {
Bytes {
content: Cow<'static, [u8]>,
content_type: Cow<'static, str>,
},
Form {
fields: Vec<(Cow<'static, str>, Cow<'static, str>)>,
},
Multipart {
parts: Vec<Part<Box<dyn BodyStream>>>,
},
// some variants omitted
}