async-fetch 0.3.0

Asynchronous HTTP client.
Documentation

Asynchronous HTTP client.

This crate provides a simple HTTP client and is built on top of async-std.

  • Fully streaming requests and responses
  • TLS/SSL enabled by default
  • Relay through HTTP proxy or UNIX socket

Example:

async_fetch::{Method, Request};

// request
let mut req = Request::parse_url("https://domain.com").unwrap();
req.set_method(Method::Post);
// response
let mut res = req.send().await?;
let data = res.recv().await.unwrap();