Enum hyper::client::Body
[−]
[src]
pub enum Body<'a> { ChunkedBody(&'a mut Read + 'a), SizedBody(&'a mut Read + 'a, u64), BufBody(&'a [u8], usize), }
An enum of possible body types for a Request.
Variants
ChunkedBody | A Reader does not necessarily know it's size, so it is chunked. |
SizedBody | For Readers that can know their size, like a |
BufBody | A String has a size, and uses Content-Length. |