Cyper
An HTTP library based on compio and hyper.
Install / Use
/learn @compio-rs/CyperREADME
Cyper
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.17.0", features = ["macros"] }
cyper = "0.7.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://compio.rs/")
.unwrap()
.send()
.await
.unwrap();
println!("{}", response.text().await.unwrap());
}
Features
- [x] HTTPS - powered by compio-tls
- [x] native-tls
- [x] rustls
- [x] HTTP 2
- [x] HTTP 3 - powered by compio-quic
- [x] cookies
- [x] charset
- [x] serde-json
- [x] multipart
- [ ] compression
- [ ] gzip
- [ ] brotli
Nyquest support
cyper supports nyquest experimentally. Start with registering:
cyper::nyquest::register();
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.
Related Skills
node-connect
334.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
334.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.1kCommit, push, and open a PR
