rquest-0.11.100 has been yanked.
Visit the last successful build:
rquest-5.1.0
rquest
An intuitive and robust Rust HTTP/WebSocket Client featuring TLS/JA3/JA4/HTTP2 fingerprint impersonate
- Impersonate Chrome / Safari / Edge / OkHttp
- Plain bodies, JSON, urlencoded, multipart
- Customizable redirect policy
HTTP/HTTPS/Socks5/Socks5hProxiesHTTPS/WebSocketvia BoringSSL- Cookie Store
- Changelog
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 rquest;
use Impersonate;
async
And then the websocket code:
use rquest;
use Error;
use Message;
use ;
use ;
async
Contributing
If you would like to submit your contribution, please open a Pull Request.
Getting help
Your question might already be answered on the issues
License
MIT license (LICENSE or http://opensource.org/licenses/MIT)