reqwest

An easy and powerful Rust HTTP Client

Latest version: 0.12.4 registry icon
Maintenance score
100
Safety score
100
Popularity score
100
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.12.4 0 0 0 0 0
0.12.3 0 0 0 0 0
0.12.2 0 0 0 0 0
0.12.1 0 0 0 0 0
0.12.0 0 0 0 0 0
0.11.27 0 0 0 0 0
0.11.26 0 0 0 0 0
0.11.25 0 0 0 0 0
0.11.24 0 0 0 0 0
0.11.23 0 0 0 0 0
0.11.22 0 0 0 0 0
0.11.21 0 0 0 0 0
0.11.20 0 0 0 0 0
0.11.19 0 0 0 0 0
0.11.18 0 0 0 0 0
0.11.17 0 0 0 0 0
0.11.16 0 0 0 0 0
0.11.15 0 0 0 0 0
0.11.14 0 0 0 0 0
0.11.13 0 0 0 0 0
0.11.12 0 0 0 0 0
0.11.11 0 0 0 0 0
0.11.10 0 0 0 0 0
0.11.9 0 0 0 0 0
0.11.8 0 0 0 0 0
0.11.7 0 0 0 0 0
0.11.6 0 0 0 0 0
0.11.5 0 0 0 0 0
0.11.4 0 0 0 0 0
0.11.3 0 0 0 0 0
0.11.2 0 0 0 0 0
0.11.1 0 0 0 0 0
0.11.0 0 0 0 0 0
0.10.10 0 0 0 0 0
0.10.9 0 0 0 0 0
0.10.8 0 0 0 0 0
0.10.7 0 0 0 0 0
0.10.6 0 0 0 0 0
0.10.5 0 0 0 0 0
0.10.4 0 0 0 0 0
0.10.3 0 0 0 0 0
0.10.2 0 0 0 0 0
0.10.1 0 0 0 0 0
0.10.0 0 0 0 0 0
0.9.24 0 0 0 0 0
0.9.23 0 0 0 0 0
0.9.22 0 0 0 0 0
0.9.21 0 0 0 0 0
0.9.20 0 0 0 0 0
0.9.19 0 0 0 0 0
0.9.18 0 0 0 0 0
0.9.17 0 0 0 0 0
0.9.16 0 0 0 0 0
0.9.15 0 0 0 0 0
0.9.14 0 0 0 0 0
0.9.13 0 0 0 0 0
0.9.12 0 0 0 0 0
0.9.11 0 0 0 0 0
0.9.10 0 0 0 0 0
0.9.9 0 0 0 0 0
0.9.8 0 0 0 0 0
0.9.7 0 0 0 0 0
0.9.6 0 0 0 0 0
0.9.5 0 0 0 0 0
0.9.4 0 0 0 0 0
0.9.3 0 0 0 0 0
0.9.2 0 0 0 0 0
0.9.1 0 0 0 0 0
0.9.0 0 0 0 0 0
0.8.8 0 0 0 0 0
0.8.7 0 0 0 0 0
0.8.6 0 0 0 0 0
0.8.5 0 0 0 0 0
0.8.4 0 0 0 0 0
0.8.3 0 0 0 0 0
0.8.2 0 0 0 0 0
0.8.1 0 0 0 0 0
0.8.0 0 0 0 0 0
0.7.3 0 0 0 0 0
0.7.2 0 0 0 0 0
0.7.1 0 0 0 0 0
0.7.0 0 0 0 0 0
0.6.2 0 0 0 0 0
0.6.1 0 0 0 0 0
0.6.0 0 0 0 0 0
0.5.2 0 0 0 0 0
0.5.1 0 0 0 0 0
0.5.0 0 0 0 0 0
0.4.0 0 0 0 0 0
0.3.0 0 0 0 0 0
0.2.0 0 0 0 0 0
0.1.0 0 0 0 0 0
0.0.0 0 0 0 0 0

Stability
Latest release:

0.12.4 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

Apache-2.0   -   Apache License 2.0

Not a wildcard

Not proprietary

OSI Compliant


MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



reqwest

crates.io Documentation MIT/Apache-2 licensed CI

An ergonomic, batteries-included HTTP Client for Rust.

  • Async and blocking Clients
  • Plain bodies, JSON, urlencoded, multipart
  • Customizable redirect policy
  • HTTP Proxies
  • HTTPS via system-native TLS (or optionally, rustls)
  • Cookie Store
  • WASM

Example

This asynchronous example uses Tokio and enables some optional features, so your Cargo.toml could look like this:

[dependencies]
reqwest = { version = "0.12", features = ["json"] }
tokio = { version = "1", features = ["full"] }

And then the code:

use std::collections::HashMap;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let resp = reqwest::get("https://httpbin.org/ip")
        .await?
        .json::<HashMap<String, String>>()
        .await?;
    println!("{resp:#?}");
    Ok(())
}

Commercial Support

For private advice, support, reviews, access to the maintainer, and the like, reach out for commercial support.

Requirements

On Linux:

  • OpenSSL with headers. See https://docs.rs/openssl for supported versions and more details. Alternatively you can enable the native-tls-vendored feature to compile a copy of OpenSSL.

On Windows and macOS:

  • Nothing.

Reqwest uses rust-native-tls, which will use the operating system TLS framework if available, meaning Windows and macOS. On Linux, it will use the available OpenSSL or fail to build if not found.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Sponsors

Support this project by becoming a sponsor.