hpx 2.4.9

High Performance HTTP Client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use hpx::tls::KeyLog;

#[tokio::main]
async fn main() -> hpx::Result<()> {
    // Build a client
    let client = hpx::Client::builder()
        .keylog(KeyLog::from_file("keylog.txt"))
        .cert_verification(false)
        .build()?;

    // Use the API you're already familiar with
    let resp = client.get("https://yande.re/post.json").send().await?;
    println!("{}", resp.text().await?);

    Ok(())
}