pub struct HttpClientBuilder { /* private fields */ }Implementations§
Source§impl HttpClientBuilder
impl HttpClientBuilder
pub fn build(&self, method: Method, url: impl Into<String>) -> HttpClient
pub fn get(&self, url: impl Into<String>) -> HttpClient
pub fn post(&self, url: impl Into<String>) -> HttpClient
pub fn put(&self, url: impl Into<String>) -> HttpClient
pub fn delete(&self, url: impl Into<String>) -> HttpClient
pub fn patch(&self, url: impl Into<String>) -> HttpClient
pub fn with_header(self, name: &'static str, value: impl AsRef<str>) -> Self
pub fn with_timeout(self, timeout: Option<Duration>) -> Self
Trait Implementations§
Source§impl Clone for HttpClientBuilder
impl Clone for HttpClientBuilder
Source§fn clone(&self) -> HttpClientBuilder
fn clone(&self) -> HttpClientBuilder
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 HttpClientBuilder
impl Debug for HttpClientBuilder
Auto Trait Implementations§
impl Freeze for HttpClientBuilder
impl RefUnwindSafe for HttpClientBuilder
impl Send for HttpClientBuilder
impl Sync for HttpClientBuilder
impl Unpin for HttpClientBuilder
impl UnwindSafe for HttpClientBuilder
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