Crates.io | http-lib |
lib.rs | http-lib |
version | 0.1.0 |
source | src |
created_at | 2024-10-27 11:06:39.680166 |
updated_at | 2024-10-27 11:06:39.680166 |
description | High-level, asynchronous API for ureq, a safe HTTP client |
homepage | https://pimalaya.org/ |
repository | https://github.com/pimalaya/core/tree/master/http/ |
max_upload_size | |
id | 1424531 |
size | 13,230 |
High-level, asynchronous API for ureq
, a safe HTTP client.
The library comes with 5 cargo features, including 2 default ones:
tokio
: enables the tokio async runtimeasync-std
: enables the async-std async runtimerustls
: enables the rustls cryptonative-tls
: enables the native-tls cryptovendored
: compiles and statically link to a copy of non-Rust vendors like OpenSSLuse http::Client;
#[tokio::main]
async fn main() {
let client = Client::new();
let res = client.send(|agent| agent.get("https://crates.io").call()).await.unwrap();
assert_eq!(200, res.status());
}
See the full API documentation on docs.rs.
Special thanks to the NLnet foundation and the European Commission that helped the project to receive financial support from various programs:
If you appreciate the project, feel free to donate using one of the following providers: