async-fetch

Crates.ioasync-fetch
lib.rsasync-fetch
version0.4.0
sourcesrc
created_at2020-05-20 00:35:47.807766
updated_at2020-05-23 08:42:23.330984
descriptionAsynchronous HTTP client.
homepagehttps://github.com/xpepermint/async-fetch
repositoryhttps://github.com/xpepermint/async-fetch
max_upload_size
id243644
size22,702
Kristijan Sedlak (xpepermint)

documentation

https://github.com/xpepermint/async-fetch

README

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();

Todo:

  • Handle redirects
  • Add retry logic
Commit count: 17

cargo fmt