Implementing HTTP Basic Authentication in Rust: A Complete Guide with Code Examples
let response = client.get("http://example.com/resource")
.header(reqwest::header::AUTHORIZATION, auth)
.send()
.await?;
HTTP authentication basics: https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication