pub type DefaultHttpWebClient<Body = Body> = EasyHttpWebClient<Body, EstablishedClientConnection<AltSvc<BindBodyToConn<MultiplexedConnection<MaybeForwardedConnection<HttpClientService<Body>, <HttpForwardProxyConnector<ProxyDialer<ProxyServiceConnector<HttpPooledConnector<HttpConnector<HttpTransportConnector<TlsConnector<DnsConnector<TcpConnector>>, DnsConnector<Http3Connector<SharedQuicEndpoint>>>, ProxyRequestBody<Body>>>>>> as ConnectorService<ConnectRequest>>::Connection>, HttpConnId>>>, Request<Body>>, ()>;dns and http-backend and http and std and tcp only.Expand description
Rama’s default asynchronous HTTP(S) client, including its default multiplexing connection pool.
With BoringSSL or Rustls plus ring/aws-lc, HTTP/3 is available through
alternative-service discovery or an explicit HTTP/3 request. Its shared UDP
endpoint is bound lazily, so constructing the client requires no runtime.
Like a browser it resumes TLS sessions (with BoringSSL, also over TCP), which lets servers link the connections of one client. It acts for a single user: proxies relay traffic instead of sharing one client between their users.
Aliased Type§
pub struct DefaultHttpWebClient<Body = Body> { /* private fields */ }Implementations§
Source§impl<Body> DefaultHttpWebClient<Body>
impl<Body> DefaultHttpWebClient<Body>
Sourcepub fn default_with_scope(scope: impl Into<WeakScope>) -> Self
pub fn default_with_scope(scope: impl Into<WeakScope>) -> Self
Rama’s default client stack, with its connections and tunnels in scope.
Sourcepub fn default_using_proxies(
scope: impl Into<WeakScope>,
proxies: DefaultProxyConnector<TcpConnector, Body>,
) -> Self
pub fn default_using_proxies( scope: impl Into<WeakScope>, proxies: DefaultProxyConnector<TcpConnector, Body>, ) -> Self
Rama’s default client stack over proxies, the connector towards proxies,
such as a ProxyConnector which isolates the 407 of an upstream proxy
for the client of a proxy.