Skip to content

Instantly share code, notes, and snippets.

Created November 23, 2016 14:19
Show Gist options
  • Select an option

  • Save anonymous/39ee9451557c9051a077859639861f25 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/39ee9451557c9051a077859639861f25 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);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment