Enum hyper::http::HttpReader
[-] [+]
[src]
pub enum HttpReader<R> {
SizedReader(R, u64),
ChunkedReader(R, Option<u64>),
EofReader(R),
EmptyReader(R),
}Readers to handle different Transfer-Encodings.
If a message body does not include a Transfer-Encoding, it should include a Content-Length header.
Variants
Methods
impl<R: Read> HttpReader<R>
fn into_inner(self) -> R
Unwraps this HttpReader and returns the underlying Reader.
fn get_mut(&mut self) -> &mut R
Gets a mutable reference to the underlying Reader.