Answers for "rust request get headers"

1

rust request get headers

let client = reqwest::blocking::Client::new();

let res = client.get("https://google.com")
.header("Accept-Language", "en-US")
.send().expect("Could not execute the request.");
Posted by: Guest on April-01-2022

Browse Popular Code Answers by Language