Planet of the Crabs
🦀 fearless rust


reqwest v0.10

Posted on by Sean McArthur : seanmonstar

reqwest is a higher-level HTTP client for Rust. Let me introduce you the v0.10 release that adds async/await support!

Some headline features are:

Here’s a simple streaming example using the new syntax:

async fn example() -> Result<(), Box<dyn std::error::Error>> {
    let mut resp = reqwest::get("https://hyper.rs").await?;

    while let Some(chunk) = resp.chunk().await? {
        stdout().write_all(&chunk).await?;
    }

    Ok(())
} 

I want to thank all those contributing to make the best Rust HTTP client even better!

Take a look at the changelog for all the details.