-
-
Save rogeruiz/eeb45fc350e5f2efee99e368230c68f0 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern crate curl; | |
| use curl::http; | |
| fn main() { | |
| let url = "https://www.hautelook.com/api"; | |
| let resp = http::handle() | |
| .get(url) | |
| .exec() | |
| .unwrap_or_else(|e| { | |
| panic!("Failed to get {}; error is {}", url, e); | |
| }); | |
| } |
Author
Author
Author
I've really found this repo helpful when it comes to talking about and learning about HTTP stuff for Rust.
https://github.com/flosse/rust-web-framework-comparison
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Rustlang playground
https://play.rust-lang.org/?gist=39ee9451557c9051a077859639861f25&version=stable&backtrace=0