pub struct HttpClient { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl AuthenticatedHttpClientTrait for HttpClient
impl AuthenticatedHttpClientTrait for HttpClient
fn request<'life0, 'async_trait, R, O, E, U, A>(
&'life0 self,
request: R,
auth: A,
) -> Pin<Box<dyn Future<Output = Result<Result<O, E>, UnexpectedHttpError<U>>> + Send + 'async_trait>>where
O: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
E: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
U: for<'de> Deserialize<'de> + Clone + 'async_trait,
R: HttpRequest<O, E, U> + Serialize + AuthenticatedHttpRequest<A> + Send + 'static + 'async_trait,
A: Auth + Send + 'static + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl BasicHttpClientTrait for HttpClient
impl BasicHttpClientTrait for HttpClient
fn request<'life0, 'async_trait, R, O, E, U>(
&'life0 self,
request: R,
) -> Pin<Box<dyn Future<Output = Result<Result<O, E>, UnexpectedHttpError<U>>> + Send + 'async_trait>>where
O: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
E: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
U: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
R: HttpRequest<O, E, U> + Serialize + Send + 'static + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl HttpClientTrait for HttpClient
impl HttpClientTrait for HttpClient
fn get_base_url(&self) -> Url
fn get_client(&self) -> Client
Auto 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