blob: ded975e442f2adbf9b2892ae2c7ec05e110893d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use reqwest::blocking::Client;
fn main() {
let client = Client::new();
let response = client.request(
reqwest::Method::GET,
format!(
"https://api.github.com/users/{}/repos",
"teddywing",
),
)
.header("Accept", "application/vnd.github.v3+json")
.header("User-Agent", "reflectub")
.send()
.unwrap();
dbg!(&response);
}
|