Skip to content

Instantly share code, notes, and snippets.

@rogeruiz
Forked from anonymous/playground.rs
Created November 23, 2016 14:20
Show Gist options
  • Select an option

  • Save rogeruiz/eeb45fc350e5f2efee99e368230c68f0 to your computer and use it in GitHub Desktop.

Select an option

Save rogeruiz/eeb45fc350e5f2efee99e368230c68f0 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
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);
});
}
@rogeruiz
Copy link
Author

@rogeruiz
Copy link
Author

@rogeruiz
Copy link
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