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§
Structs§
- Basic
Http ConId - Connection Identifier which will match inputs that have the exact same protocol, authority, proxy address and connector target
- Basic
Http Conn Identifier BasicHttpConnIdentifiercan be used together with aPoolto create a basic http connection pool.- Bind
Body ToConn - A connection wrapper that binds the connection to the lifetime of the response body it produces.
- Bind
Body ToConn Layer Layerthat wraps a connector’s connection inBindBodyToConn.- Bind
Body ToConnector - Connector produced by
BindBodyToConnLayer: wraps each established connection inBindBodyToConn. - Easy
Http Connector Builder - Builder that is designed to easily create a connector for
super::EasyHttpWebClientfrom most basic use cases - Easy
Http WebClient - An opiniated http client that can be used to serve HTTP requests.
- Http
Client Service - Internal http sender used to send the actual requests.
- Http
Connect Request Adapter - Adapt an HTTP
Requestto a protocol-independentConnectRequest. - Http
Connect Request Adapter Layer - Layer that adapts HTTP requests to protocol-independent connection inputs.
- Http
Connector - A
Servicewhich establishes an HTTP Connection. - Http
Connector Layer - A
Layerthat produces anHttpConnector. - Http
Pooled Connector Config - Config used to create a multiplexing http connection pool (
MultiplexPool). - Maybe
Proxied Connection socks5 - A connection which will be proxied if a proxied
ProxyRoutewas configured. - Proxy
Connector socks5 - Proxy connector which supports http(s) and socks5(h) proxy address
- Proxy
Connector Layer socks5 - 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
HttpClientServiceand aH2PeerSettingsHandlethat 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§
- Http
Pooled Connector - Default HTTP pooled connector assembled by
HttpPooledConnectorConfig::build_connector.