pub struct NativeHttpClient { /* private fields */ }Expand description
Native HTTP client using reqwest
Implementations§
Trait Implementations§
Source§impl Clone for NativeHttpClient
impl Clone for NativeHttpClient
Source§impl HttpClient for NativeHttpClient
impl HttpClient for NativeHttpClient
Source§fn request<'life0, 'async_trait>(
&'life0 self,
request: HttpRequest,
) -> Pin<Box<dyn Future<Output = SdkResult<HttpResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn request<'life0, 'async_trait>(
&'life0 self,
request: HttpRequest,
) -> Pin<Box<dyn Future<Output = SdkResult<HttpResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send an HTTP request
Source§fn set_auth_token(&mut self, token: String)
fn set_auth_token(&mut self, token: String)
Set default authorization token
Source§fn auth_token(&self) -> Option<String>
fn auth_token(&self) -> Option<String>
Get current auth token
Auto Trait Implementations§
impl Freeze for NativeHttpClient
impl !RefUnwindSafe for NativeHttpClient
impl Send for NativeHttpClient
impl Sync for NativeHttpClient
impl Unpin for NativeHttpClient
impl UnsafeUnpin for NativeHttpClient
impl !UnwindSafe for NativeHttpClient
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