Crates.io | async-fetch |
lib.rs | async-fetch |
version | 0.4.0 |
source | src |
created_at | 2020-05-20 00:35:47.807766 |
updated_at | 2020-05-23 08:42:23.330984 |
description | Asynchronous HTTP client. |
homepage | https://github.com/xpepermint/async-fetch |
repository | https://github.com/xpepermint/async-fetch |
max_upload_size | |
id | 243644 |
size | 22,702 |
Asynchronous HTTP client.
This crate provides a simple HTTP client and is built on top of async-std.
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: