Crates.io | cyper-core |
lib.rs | cyper-core |
version | 0.1.3 |
source | src |
created_at | 2023-11-18 11:23:55.071536 |
updated_at | 2024-10-04 08:59:03.06126 |
description | Core adaptors and services for compio running on hyper |
homepage | |
repository | https://github.com/compio-rs/cyper |
max_upload_size | |
id | 1040446 |
size | 18,070 |
An HTTP library based on compio and hyper.
This project references code from reqwest.
Add compio
and cyper
as dependency:
compio = { version = "0.12.0", features = ["macros"] }
cyper = "0.1.0"
Then we can start a simple HTTP request:
use cyper::Client;
#[compio::main]
async fn main() {
let client = Client::new();
let response = client
.get("https://www.example.com/")
.unwrap()
.send()
.await
.unwrap();
println!("{}", response.text().await.unwrap());
}
There are opportunities to contribute to Cyper at any level. It doesn't matter if you are just getting started with Rust or are the most weathered expert, we can use your help. If you have any question about Cyper, feel free to join our telegram group. Before contributing, please checkout our contributing guide.