Skip to main content

Crate rustycrawl_http_client

Crate rustycrawl_http_client 

Source
Expand description

A small reqwest-like HTTP client built over a caller-provided Hyper service.

The client automatically stores Set-Cookie response headers and attaches matching cookies to later requests. The cookie store is enabled by default.

Structs§

Body
The request body accepted by HttpService.
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Client
A configurable HTTP client backed by an HttpService.
ClientBuilder
RequestBuilder
Response
StandardClientBuilder
A reqwest-like builder for a standard client, including Hyper pool tuning.
StandardService
A Hyper transport service using the regular Tokio networking stack.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Version
Represents a version of the HTTP spec.

Enums§

Error

Traits§

HttpService
A cloneable Hyper-compatible request service.

Functions§

standard_client
Build a reqwest-like client with standard networking and cookies enabled.
standard_client_builder
Build a configurable standard client.
standard_connector
Build a standard connector supporting HTTP/1.1, HTTP/2, and Web PKI roots.
standard_hyper_client
Build a raw Hyper client running on Tokio’s networking stack.
standard_service
Build a standard Hyper transport for use with Client::builder.

Type Aliases§

BoxError
StandardClient
A cookie-aware client using the regular Tokio networking stack.
StandardConnector
The conventional Tokio connector used for direct HTTP and HTTPS requests.
StandardHyperClient
A raw Hyper client using StandardConnector.