Skip to main content

Module client

Module client 

Source
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§

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 connoector 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.
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 ProxyAddress 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 with the given http request as context for the initial setup.