这是indexloc提供的服务,不要输入任何密码
Skip to content

u5surf/surf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Surf

Surf the web

Built with 🌊 by The Rust Async Ecosystem WG

About

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 Client interface
  • Fully streaming requests and responses
  • TLS/SSL enabled by default
  • Swappable HTTP backends (hyper (default), libcurl (wip), fetch (wip))

Examples

let mut res = surf::get("https://google.com").await?;
dbg!(res.body_string().await?);

Installation

$ cargo add surf

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

See Also

License

MIT OR Apache-2.0

About

Fast and friendly HTTP client framework for async Rust

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%