pub struct HttpClient { /* private fields */ }Implementations§
Source§impl HttpClient
impl HttpClient
pub fn new(config: &Auth0Config) -> Self
pub async fn get(&self, path: &str) -> Result<Response, AppError>
pub async fn post<B: Serialize>( &self, path: &str, body: &B, ) -> Result<Response, AppError>
pub async fn put<B: Serialize>( &self, path: &str, body: &B, ) -> Result<Response, AppError>
pub async fn patch<B: Serialize>( &self, path: &str, body: &B, ) -> Result<Response, AppError>
pub async fn delete(&self, path: &str) -> Result<Response, AppError>
Auto Trait Implementations§
impl Freeze for HttpClient
impl !RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl UnsafeUnpin 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