async_h1::client

Function connect

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

Opens an HTTP/1.1 connection to a remote host.