Skip to main content

Module client

Module client 

Available on crate feature net only.
Expand description

generic client net logic

Modules§

pool

Structs§

BoxedConnectorService
A ConnectorService which only job is to Box the created Service by the inner ConnectorService.
ConnectRequest
A protocol-independent request to establish a client connection.
ConnectionError
A classified error produced while establishing a client connection.
ConnectorTarget
Target HostWithPort which if found in extensions is to be used by a connector such as a TCPConnector instead of the requested address, unless a proxy is requested in which case a proxy is to be used instead.
ConnectorTargetStream
Extensions carrier for an AddressCandidates source.
EstablishedClientConnection
The established connection to a server returned for the http client to be used.
GracefulConnectorService
A Service that wraps established client connections in GracefulIo and injects a CancelIo extension into the connection.
LazyProxyAddressLayer
Lazily resolve and apply a proxy address to any input with extensions.
LazyProxyAddressService
Service produced by LazyProxyAddressLayer.
NoProxyEnvLayer
Lazily apply conventional NO_PROXY bypass rules.
NoProxyEnvService
Service produced by NoProxyEnvLayer.
ProxyAddressLayer
Apply one fixed proxy address to any service input with extensions.
ProxyAddressService
Service produced by ProxyAddressLayer.
ProxyEnvLayer
Lazily select a proxy from curl-compatible environment variables.
ProxyEnvService
Service produced by ProxyEnvLayer.
ProxyRouteConnectError
Errors produced by every attempted route of an unsuccessful connection.
ProxyRouteFailureCache
Shared negative cache for temporarily failing proxy routes.
ProxyRouteFailureCacheConfig
Configuration for a ProxyRouteFailureCache.
ProxyRouteFailureCacheConnector
Connector wrapper that applies a shared ProxyRouteFailureCache.
ProxyRouteFailureCacheLayer
Layer that applies a shared ProxyRouteFailureCache to a connector.
ProxyRouteFailureCachedError
Error returned when a proxy route is still inside its failure backoff.
ProxyRouteIndex
Index of the selected route within the ordered route collection.
ProxyRoutes
Ordered proxy routes to try while establishing a client connection.
ProxyRoutesConnector
Try ordered proxy routes until a connection is established.
ProxyRoutesConnectorLayer
Layer that tries ordered proxy routes while establishing a connection.
ProxyRoutesLayer
Resolve and materialize the route decision for downstream middleware.
ProxyRoutesService
Service produced by ProxyRoutesLayer.
SystemProxyConfig
A snapshot of the operating system’s proxy configuration.
SystemProxyLayer
Apply the operating system’s proxy settings to client service inputs.
SystemProxyPacRequest
The request information passed to a system PAC resolver.
SystemProxyService
See SystemProxyLayer.

Enums§

ConnectionErrorDomain
The architectural domain in which establishing a client connection failed.
ConnectionErrorKind
A protocol-independent description of what prevented connection setup.
EitherConn
A type to allow you to use multiple types as a single type.
EitherConn3
A type to allow you to use multiple types as a single type.
EitherConn4
A type to allow you to use multiple types as a single type.
EitherConn5
A type to allow you to use multiple types as a single type.
EitherConn6
A type to allow you to use multiple types as a single type.
EitherConn7
A type to allow you to use multiple types as a single type.
EitherConn8
A type to allow you to use multiple types as a single type.
EitherConn9
A type to allow you to use multiple types as a single type.
EitherConn3Connected
A type to allow you to use multiple types as a single type.
EitherConn4Connected
A type to allow you to use multiple types as a single type.
EitherConn5Connected
A type to allow you to use multiple types as a single type.
EitherConn6Connected
A type to allow you to use multiple types as a single type.
EitherConn7Connected
A type to allow you to use multiple types as a single type.
EitherConn8Connected
A type to allow you to use multiple types as a single type.
EitherConn9Connected
A type to allow you to use multiple types as a single type.
EitherConnConnected
A type to allow you to use multiple types as a single type.
ProxyRoute
A single route through which a client connection can be established.
ProxyRouteFailureCacheScope
Scope used to identify temporarily failing proxy routes.
SystemProxyInvalidBypassRulePolicy
How system proxy discovery handles bypass rules Rama cannot parse.

Constants§

DEFAULT_SYSTEM_PROXY_CONFIG_TTL
How long a SystemProxyLayer keeps a system proxy snapshot before lazily checking for changes.

Traits§

AddressCandidates
A lazily-resolved source of connection target SocketAddresses.
ConnectorService
Glue trait that is used as the Connector trait bound for clients establishing a connection on one layer or another.
SystemProxyPacResolver
Resolves proxy routes for a request using one system-configured PAC script.
SystemProxyPacService
Supplies a resolver for a system-configured PAC URI.

Functions§

proxy_request_uri
Normalize a request target for fixed-proxy selection and PAC evaluation.
race_connect
Race connection attempts over a stream of candidate SocketAddresses.