Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xpepermint/async-fetch
- Owner: xpepermint
- License: mit
- Created: 2020-05-20T00:35:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T08:41:30.000Z (over 4 years ago)
- Last Synced: 2024-11-11T21:11:43.332Z (2 months ago)
- Topics: cargo, client, crate, http, relay, rust, socket, ssl, stream, tcp, tls, unix
- Language: Rust
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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