Enum hyper::client::Body
[-] [+]
[src]
pub enum Body<'a> { ChunkedBody(&'a mut Read + 'a), SizedBody(&'a mut Read + 'a, u64), BufBody(&'a [u8], usize), }
The target enum for the IntoBody trait.
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. |