45 releases

new 0.9.20 Aug 20, 2019
0.9.19 Jul 19, 2019
0.9.18 Jun 6, 2019
0.9.12 Mar 20, 2019
0.1.0 Nov 10, 2016

#3 in HTTP client

Download history 27685/week @ 2019-05-07 36473/week @ 2019-05-14 37864/week @ 2019-05-21 40759/week @ 2019-05-28 35646/week @ 2019-06-04 57762/week @ 2019-06-11 30232/week @ 2019-06-18 34220/week @ 2019-06-25 30234/week @ 2019-07-02 33903/week @ 2019-07-09 36483/week @ 2019-07-16 38820/week @ 2019-07-23 35700/week @ 2019-07-30 36992/week @ 2019-08-06 40156/week @ 2019-08-13

160,775 downloads per month
Used in 1,107 crates (930 directly)

MIT/Apache

300KB
6K SLoC

reqwest

Travis CI Status Appveyor CI Status crates.io Documentation

An ergonomic, batteries-included HTTP Client for Rust.

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

Example

extern crate reqwest;

use std::collections::HashMap;

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

Requirements

On Linux:

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 OpenSSL 1.1.

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.

Dependencies

~18MB
~430K SLoC