pub struct HttpClient<B> { /* private fields */ }Expand description
HTTPClient, supporting HTTP/1.1 and H2, HTTPS.
Implementations§
Source§impl<B> HttpClient<B>
impl<B> HttpClient<B>
Sourcepub async fn send_request(
&self,
context: Arc<ServiceContext>,
req: Request<B>,
balancer: Option<&PingBalancer>,
) -> Result<Response<Incoming>, HttpClientError>
pub async fn send_request( &self, context: Arc<ServiceContext>, req: Request<B>, balancer: Option<&PingBalancer>, ) -> Result<Response<Incoming>, HttpClientError>
Make HTTP requests
Trait Implementations§
Source§impl<B> Clone for HttpClient<B>
impl<B> Clone for HttpClient<B>
Auto Trait Implementations§
impl<B> Freeze for HttpClient<B>
impl<B> !RefUnwindSafe for HttpClient<B>
impl<B> Send for HttpClient<B>where
B: Send,
impl<B> Sync for HttpClient<B>where
B: Send,
impl<B> Unpin for HttpClient<B>
impl<B> !UnwindSafe for HttpClient<B>
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