leyline-http 0.1.5

HTTP client that impersonates Chrome, Firefox, and Safari on the wire: TLS (JA3/JA4), HTTP/2, and HTTP/3 fingerprints
Documentation
use leyline::Session;

const URL: &str = "https://example.com/protected";

#[tokio::main]
async fn main() -> leyline::Result<()> {
    let session = Session::builder().build()?;

    let resp = session
        .get(URL)
        .headers([("x-request-id", "ex-001")])
        .header("accept-language", "en-US,en;q=0.9")
        .header("referer", "https://example.com/")
        .bearer_auth("REPLACE_WITH_YOUR_TOKEN")
        .send()
        .await?;

    println!("status: {}", resp.status());
    Ok(())
}