Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
reqwest-impersonate
An ergonomic, batteries-included HTTP Client for Rust.
- Plain bodies, JSON, urlencoded, multipart
- Customizable redirect policy
- HTTP Proxies
- HTTPS via BoringSSL
- WebSocket
- Cookie Store
- WASM
- Changelog
A fork of reqwest used to impersonate the Chrome browser / OkHttp. Inspired by curl-impersonate.
Example
This asynchronous example uses Tokio and enables some
optional features, so your Cargo.toml
could look like this:
[]
= { = "1", = ["full"] }
= "0.11"
Or WebSocket:
[]
= { = "1", = ["full"] }
= { = "0.11", = ["websocket"] }
And then the code:
use Error;
use reqwest_impersonate as reqwest;
use Impersonate;
async
And then the websocket code:
use reqwest_impersonate as reqwest;
use Error;
use Message;
use ;
use ;
async
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 OpenSSL 1.1.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.