cyper

Crates.iocyper
lib.rscyper
version0.5.0
created_at2023-11-18 11:24:26.070437+00
updated_at2025-09-06 14:24:58.170082+00
descriptionHTTP client library based on compio and hyper
homepage
repositoryhttps://github.com/compio-rs/cyper
max_upload_size
id1040447
size142,769
Yuyi Wang (Berrysoft)

documentation

README

Cyper

MIT licensed crates.io docs.rs Check Test

An HTTP library based on compio and hyper.

This project references code from reqwest.

Quick start

Add compio and cyper as dependency:

compio = { version = "0.16.0", features = ["macros"] }
cyper = "0.5.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());
}

Features

  • HTTPS - powered by compio-tls
    • native-tls
    • rustls
  • HTTP 2
  • HTTP 3 - powered by compio-quic
  • cookies
  • charset
  • serde-json
  • compression
    • gzip
    • brotli

Contributing

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.

Commit count: 302

cargo fmt