pub struct DefaultHttpClient;Expand description
The default HttpClient
Trait Implementations§
Source§impl OidcHttpClient for DefaultHttpClient
impl OidcHttpClient for DefaultHttpClient
Source§async fn request(&self, req: HttpRequest) -> Result<HttpResponse, String>
async fn request(&self, req: HttpRequest) -> Result<HttpResponse, String>
Makes an HTTP request using the provided HttpRequest object. Read more
Source§fn get_client_certificate(
&self,
_req: &HttpRequest,
) -> impl Future<Output = Option<ClientCertificate>> + Send
fn get_client_certificate( &self, _req: &HttpRequest, ) -> impl Future<Output = Option<ClientCertificate>> + Send
Gets the client certificate for the current request. Return none if the request does not need mtls
Auto Trait Implementations§
impl Freeze for DefaultHttpClient
impl RefUnwindSafe for DefaultHttpClient
impl Send for DefaultHttpClient
impl Sync for DefaultHttpClient
impl Unpin for DefaultHttpClient
impl UnwindSafe for DefaultHttpClient
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