[][src]Function http_req::request::copy_with_timeout

pub fn copy_with_timeout<R: ?Sized, W: ?Sized>(
    reader: &mut R,
    writer: &mut W,
    deadline: Instant
) -> Result<u64> where
    R: Read,
    W: Write

Copies data from reader to writer until the deadline is reached. Returns how many bytes has been read.