Surf the web
API Docs | Contributing | Chat
Built with 🌊 by The Rust Async Ecosystem WG
Surf is the Rust HTTP client we've always wanted. It's completely modular, and
built directly for async/await. Whether it's a quick script, or a
cross-platform SDK, Surf will make it work.
- Multi-platform out of the box
- Extensible through a powerful middleware system
- Reuses connections through the
Clientinterface - Fully streaming requests and responses
- TLS/SSL enabled by default
- Swappable HTTP backends (
hyper (default),libcurl (wip),fetch (wip))
let mut res = surf::get("https://google.com").await?;
dbg!(res.body_string().await?);$ cargo add surfThis crate uses #![deny(unsafe_code)] to ensure everything is implemented in
100% Safe Rust.
Want to join us? Check out our "Contributing" guide and take a look at some of these issues:
MIT OR Apache-2.0