Function connect_timeout

Source
pub async fn connect_timeout<RW>(
    stream: RW,
    req: Request,
    dur: Duration,
) -> Result<Response>
where RW: Read + Write + Send + Sync + Unpin + 'static,
Expand description

Opens an HTTP/1.1 connection to a remote host with timeout.