pub struct PreferZstdHttpClient { /* private fields */ }Expand description
Wraps HttpClient so every RPC sends Accept-Encoding: zstd, gzip (see module docs).
Also persists HTTP sticky-session behavior for EXOWARE_AFFINITY_COOKIE: when responses
include Set-Cookie: exoware_affinity_cookie=..., the value is stored and sent on later requests as
Cookie: exoware_affinity_cookie=... so the same client handle stays pinned to one upstream.
Implementations§
Trait Implementations§
Source§impl ClientTransport for PreferZstdHttpClient
impl ClientTransport for PreferZstdHttpClient
Source§type ResponseBody = Incoming
type ResponseBody = Incoming
The response body type.
Source§type Error = ConnectError
type Error = ConnectError
The error type.
Source§fn send(
&self,
request: Request<ClientBody>,
) -> BoxFuture<'static, Result<Response<Self::ResponseBody>, Self::Error>>
fn send( &self, request: Request<ClientBody>, ) -> BoxFuture<'static, Result<Response<Self::ResponseBody>, Self::Error>>
Send an HTTP request and receive a response.
Source§impl Clone for PreferZstdHttpClient
impl Clone for PreferZstdHttpClient
Source§fn clone(&self) -> PreferZstdHttpClient
fn clone(&self) -> PreferZstdHttpClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreferZstdHttpClient
impl !RefUnwindSafe for PreferZstdHttpClient
impl Send for PreferZstdHttpClient
impl Sync for PreferZstdHttpClient
impl Unpin for PreferZstdHttpClient
impl UnsafeUnpin for PreferZstdHttpClient
impl !UnwindSafe for PreferZstdHttpClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more