talira

An ergonomic, batteries-included HTTP Client for Rust.

open sourceMIT OR Apache-2.0self-hostablefree

reqwest is Rust's most widely used high-level HTTP client, built on hyper. It has async and blocking clients, plain, JSON, urlencoded and multipart bodies, a customizable redirect policy, HTTP proxies, HTTPS through the system's native TLS or optionally rustls, a cookie store, and WASM support. A ClientBuilder sets timeouts, the user agent, the redirect policy and a custom DNS resolver.

Problems it solves

  • make HTTP requests from a Rust program and parse the JSON response
  • I need an async HTTP client for a Tokio service that calls other APIs
  • download a file over HTTPS in Rust without writing my own TLS setup
  • post a multipart form upload from Rust code
  • follow redirects myself and check each one before following it
  • stream a large response body in chunks instead of loading it all into memory
  • plug in my own DNS resolver so outbound requests can't reach internal addresses
  • set a connect timeout and a total timeout on every outbound request
  • send requests through an HTTP proxy from a Rust CLI
  • call a REST API from Rust compiled to WebAssembly

Features

  • async and blocking clients
  • JSON, urlencoded and multipart bodies
  • customizable redirect policy
  • HTTP proxies
  • native TLS or rustls
  • cookie store
  • custom DNS resolvers
  • WASM

Capabilities

Has official SDKsplan not known

Alternatives

The same job

These do what reqwest does.

  1. hyper A protective and efficient HTTP library for all.
  2. Isahc The practical HTTP client that is fun to use.
  3. ureq A simple, safe HTTP client

Compare reqwest with the top 3