rustycrawl-http-client 0.0.2

A reqwest-like Hyper client with automatic cookie storage
Documentation

rustycrawl-http-client

A small reqwest-like HTTP client built on Hyper.

Features include:

  • automatic cookie storage, enabled by default;
  • standard HTTP and HTTPS networking through Tokio and rustls;
  • Hyper connection pooling with configurable idle timeout and per-host limit;
  • request builders, default headers, timeouts, JSON bodies, and JSON responses;
  • support for caller-provided Hyper-compatible request services.
use rustycrawl_http_client::standard_client;

# async fn example() -> Result<(), rustycrawl_http_client::Error> {
let client = standard_client();
let response = client.get("https://example.com/")?.send().await?;
println!("{}", response.status());
# Ok(())
# }

License

Licensed under either Apache-2.0 or MIT, at your option.