Function cyfs_util::async_h1_helper::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.