Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Asynchronous HTTP client.
https://github.com/xpepermint/async-fetch

cargo client crate http relay rust socket ssl stream tcp tls unix

Last synced: about 2 months ago
JSON representation

Asynchronous HTTP client.

Awesome Lists containing this project

README

        

> Asynchronous HTTP client.

This crate provides a simple HTTP client and is built on top of [async-std](https://github.com/async-rs/async-std).

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

**Example:**

```rs
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