Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/HTTPS/Rust/https.rust
Normal file
10
Task/HTTPS/Rust/https.rust
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extern crate reqwest;
|
||||
|
||||
fn main() {
|
||||
let response = match reqwest::blocking::get("https://sourceforge.net") {
|
||||
Ok(response) => response,
|
||||
Err(e) => panic!("error encountered while making request: {:?}", e),
|
||||
};
|
||||
|
||||
println!("{}", response.text().unwrap());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue