pub struct HttpClient { /* private fields */ }Available on crate feature
_async only.Implementations§
Source§impl HttpClient
impl HttpClient
pub fn builder(base_url: impl Into<String>) -> HttpClientBuilder
pub fn request( &self, method: Method, path: impl Into<String>, ) -> RequestBuilder<'_>
pub fn get(&self, path: impl Into<String>) -> RequestBuilder<'_>
pub fn post(&self, path: impl Into<String>) -> RequestBuilder<'_>
pub fn put(&self, path: impl Into<String>) -> RequestBuilder<'_>
pub fn patch(&self, path: impl Into<String>) -> RequestBuilder<'_>
pub fn delete(&self, path: impl Into<String>) -> RequestBuilder<'_>
pub fn metrics_snapshot(&self) -> HttpClientMetricsSnapshot
pub fn tls_backend(&self) -> TlsBackend
Trait Implementations§
Source§impl Clone for HttpClient
impl Clone for HttpClient
Source§fn clone(&self) -> HttpClient
fn clone(&self) -> HttpClient
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 HttpClient
impl !RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl !UnwindSafe for HttpClient
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