pub struct HyperClient { /* 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 HyperClient
impl HyperClient
Sourcepub fn new(
inner: HyperUtilClient<HttpsConnector<HttpConnector>, ReqBody>,
) -> Self
pub fn new( inner: HyperUtilClient<HttpsConnector<HttpConnector>, ReqBody>, ) -> Self
Create a new HyperClient
with the given HyperClient
.
Trait Implementations§
Source§impl Client for HyperClient
impl Client for HyperClient
Source§impl Clone for HyperClient
impl Clone for HyperClient
Source§fn clone(&self) -> HyperClient
fn clone(&self) -> HyperClient
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 Debug for HyperClient
impl Debug for HyperClient
Auto Trait Implementations§
impl Freeze for HyperClient
impl !RefUnwindSafe for HyperClient
impl Send for HyperClient
impl Sync for HyperClient
impl Unpin for HyperClient
impl !UnwindSafe for HyperClient
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