Reqwest

An easy and powerful Rust HTTP Client
Alternatives To Reqwest
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Caddy46,512118334a day ago85October 26, 2020101apache-2.0Go
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Okhttp43,73327,1422,318a day ago88June 27, 2022173apache-2.0Kotlin
Square’s meticulous HTTP client for the JVM, Android, and GraalVM.
Mitmproxy30,5534234321 hours ago53June 28, 2022260mitPython
An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers.
Nginxconfig.io25,374
15 days ago40mitJavaScript
⚙️ NGINX config generator on steroids 💉
Vegeta20,9404220 days ago74October 11, 2020108mitGo
HTTP load testing tool and library. It's over 9000!
Goproxy13,621
a day ago17April 09, 2021112gpl-3.0Go
🔥 Proxy is a high performance HTTP(S) proxies, SOCKS5 proxies,WEBSOCKET, TCP, UDP proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,黑白名单,限速,限流量,限连接数,跨平台,KCP支持,认证API。
Gost11,4804520 days ago4March 24, 2021230mitGo
GO Simple Tunnel - a simple tunnel written in golang
Halfrost Field11,208
9 months ago5cc-by-sa-4.0Go
✍🏻 这里是写博客的地方 —— Halfrost-Field 冰霜之地
Reqwest7,2462,3984,7593 days ago75September 20, 2022331apache-2.0Rust
An easy and powerful Rust HTTP Client
Twisted5,0019,695551a day ago90April 11, 20222,740otherPython
Event-driven networking engine written in Python.
Alternatives To Reqwest
Select To Compare


Alternative Project Comparisons
Readme

reqwest

crates.io Documentation MIT/Apache-2 licensed CI

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
  • WASM
  • Changelog

Example

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

[dependencies]
reqwest = { version = "0.11", 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(())
}

Blocking Client

There is an optional "blocking" client API that can be enabled:

[dependencies]
reqwest = { version = "0.11", features = ["blocking", "json"] }
use std::collections::HashMap;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let resp = reqwest::blocking::get("https://httpbin.org/ip")?
        .json::<HashMap<String, String>>()?;
    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.

Popular Http Projects
Popular Tls Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Rust
Http
Tls
Openssl
Http Client
Tokio