Skip to main content

Module client

Module client 

Source
Available on crate features dns and http-backend and http and std and tcp only.
Expand description

rama http client support

Contains re-exports from rama-http-backend::client and adds EasyHttpWebClient, an opiniated http web client which supports most common use cases and provides sensible defaults.

Modules§

builder
proxy
Client Http Proxy Connector Support.

Structs§

BasicHttpConId
Connection Identifier which will match inputs that have the exact same protocol, authority, proxy address and connector target
BasicHttpConnIdentifier
BasicHttpConnIdentifier can be used together with a Pool to create a basic http connection pool.
BindBodyToConn
A connection wrapper that binds the connection to the lifetime of the response body it produces.
BindBodyToConnLayer
Layer that wraps a connector’s connection in BindBodyToConn.
BindBodyToConnector
Connector produced by BindBodyToConnLayer: wraps each established connection in BindBodyToConn.
EasyHttpConnectorBuilder
Builder that is designed to easily create a connector for super::EasyHttpWebClient from most basic use cases
EasyHttpWebClient
An opiniated http client that can be used to serve HTTP requests.
HttpClientService
Internal http sender used to send the actual requests.
HttpConnectRequestAdapter
Adapt an HTTP Request to a protocol-independent ConnectRequest.
HttpConnectRequestAdapterLayer
Layer that adapts HTTP requests to protocol-independent connection inputs.
HttpConnector
A Service which establishes an HTTP Connection.
HttpConnectorLayer
A Layer that produces an HttpConnector.
HttpPooledConnectorConfig
Config used to create a multiplexing http connection pool (MultiplexPool).
MaybeProxiedConnectionsocks5
A connection which will be proxied if a proxied ProxyRoute was configured.
ProxyConnectorsocks5
Proxy connector which supports http(s) and socks5(h) proxy address
ProxyConnectorLayersocks5
Proxy connector layer which supports http(s) and socks5(h) proxy address

Functions§

http2_eager_handshake
Establish an HTTP/2 connection on the pre-established IO (bytes) stream without a triggering request, and return both the HttpClientService and a H2PeerSettingsHandle that resolves to the peer’s initial SETTINGS frame once received.
http_connect
Establish an HTTP connection on the pre-established IO (bytes) stream.

Type Aliases§

HttpPooledConnector
Default HTTP pooled connector assembled by HttpPooledConnectorConfig::build_connector.