pub fn send(self) -> impl Future<Output = Result<Response, crate::Error>> {
        match self.request {
            Ok(req) => self.client.execute_request(req),
            Err(err) => Pending::new_err(err),
        }
    }
/// Constructs the Request and sends it to the target URL, returning a
/// future Response.
///
/// # Errors
///
/// This method fails if there was an error while sending request,
/// redirect loop was detected or redirect limit was exhausted.
///
/// # Example
///
/// ```no_run
/// # use reqwest::Error;
/// #
/// # async fn run() -> Result<(), Error> {
/// let response = reqwest::Client::new()
///     .get("https://hyper.rs")
///     .send()
///     .await?;
/// # Ok(())
/// # }
/// ```
Constructs the Request and sends it to the target URL, returning a
future Response.
Constructs the Request and sends it to the target URL returning a future Response .
pub fn send(self) -> impl Future<Output = Result<Response, crate::Error>> {
        match self.request {
            Ok(req) => self.client.execute_request(req),
            Err(err) => Pending::new_err(err),
        }
    }
pub fn send ( self ) -> impl Future < Output = Result < Response , crate :: Error > > { match self . request { Ok ( req ) => self . client . execute_request ( req ) , Err ( err ) => Pending :: new_err ( err ) , } }
Constructs the Request and sends it to the target URL, returning a
future Response.
Constructs the Request and sends it to the target URL returning a future Response .
self
self
errors
This method fails if there was an error while sending request,
redirect loop was detected or redirect limit was exhausted.
This method fails if there was an error while sending request redirect loop was detected or redirect limit was exhausted .
example
None
use reqwest::error;
None
async fn run() -> result<(), error> {
None
ok(())
None
}
None