Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -1,20 +0,0 @@
|
|||
extern crate reqwest;
|
||||
|
||||
use reqwest::blocking::Client;
|
||||
use reqwest::header::CONNECTION;
|
||||
|
||||
fn main() {
|
||||
let client = Client::new();
|
||||
|
||||
// reqwest uses strongly-typed structs for creating headers
|
||||
let res = client
|
||||
.get("https://www.example.com")
|
||||
.basic_auth("user", Some("password"))
|
||||
.header(CONNECTION, "close")
|
||||
.send()
|
||||
.unwrap();
|
||||
|
||||
let body = res.text().unwrap();
|
||||
|
||||
println!("{}", body);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue