pub struct HyperClient<C> { /* private fields */ }Available on crate feature
hyper-client only.Expand description
A Client implementation based on hyper_util::client::legacy::Client.
This client provides proxy capabilities using the Hyper HTTP client library. It’s lightweight and tightly integrated with the Tokio runtime.
Implementations§
Source§impl<C> HyperClient<C>
impl<C> HyperClient<C>
Sourcepub fn new(inner: HyperUtilClient<C, ReqBody>) -> Self
pub fn new(inner: HyperUtilClient<C, ReqBody>) -> Self
Create a new HyperClient with the given HyperClient.
Trait Implementations§
Source§impl<C> Client for HyperClient<C>
impl<C> Client for HyperClient<C>
Source§impl<C: Clone> Clone for HyperClient<C>
impl<C: Clone> Clone for HyperClient<C>
Source§fn clone(&self) -> HyperClient<C>
fn clone(&self) -> HyperClient<C>
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 moreSource§impl<C: Debug> Debug for HyperClient<C>
impl<C: Debug> Debug for HyperClient<C>
Source§impl Default for HyperClient<HttpsConnector<HttpConnector>>
impl Default for HyperClient<HttpsConnector<HttpConnector>>
Auto Trait Implementations§
impl<C> Freeze for HyperClient<C>where
C: Freeze,
impl<C> !RefUnwindSafe for HyperClient<C>
impl<C> Send for HyperClient<C>where
C: Send,
impl<C> Sync for HyperClient<C>where
C: Sync,
impl<C> Unpin for HyperClient<C>where
C: Unpin,
impl<C> !UnwindSafe for HyperClient<C>
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