Available on crate features
http-full and http and std 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 connoector 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
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
ProxyAddresswas 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 with the given http request as context for the initial setup.