pub struct AsyncRequestBuilder<'a> { /* private fields */ }Expand description
Builder for an async HTTP request.
Implementations§
Source§impl<'a> AsyncRequestBuilder<'a>
impl<'a> AsyncRequestBuilder<'a>
Sourcepub fn timeout_ms(self, ms: u64) -> Self
pub fn timeout_ms(self, ms: u64) -> Self
Override the timeout for this request.
Sourcepub async fn send(self) -> Result<Response, HttpClientError>
pub async fn send(self) -> Result<Response, HttpClientError>
Send the request asynchronously.
Auto Trait Implementations§
impl<'a> Freeze for AsyncRequestBuilder<'a>
impl<'a> RefUnwindSafe for AsyncRequestBuilder<'a>
impl<'a> Send for AsyncRequestBuilder<'a>
impl<'a> Sync for AsyncRequestBuilder<'a>
impl<'a> Unpin for AsyncRequestBuilder<'a>
impl<'a> UnsafeUnpin for AsyncRequestBuilder<'a>
impl<'a> UnwindSafe for AsyncRequestBuilder<'a>
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