fn execute_with_retries(
        &self,
        max_retries: usize,
        add_jitter: bool,
        method: Method,
        url: Url,
        headers: Option<&HeaderMap>,
        body: Option<&[u8]>,
    ) -> Result<(ResponseMetadata, Vec<u8>)> {
        self.execute_with_retries_custom_sleep(
            std::thread::sleep,
            max_retries,
            add_jitter,
            method,
            url,
            headers,
            body,
        )
    }
/// Execute (send) a previously-constructed HTTP request. In the case of a
/// retryable failure (a 5xx error), we'll retry up to max_retries with
/// exponential backoff between each attempt.
///
/// Unfortunately, to do this we need to be able to create copies of the
/// request, meaning in particular the Body needs to be copyable. So, this
/// function can only support Vec<u8>-based request Bodies.
///
/// This function returns the response metadata (e.g. response code) and
/// body, as well as the number of retries required (i.e., retries + 1
/// HTTP requests were sent by this function).
Execute (send) a previously-constructed HTTP request. In the case of a
retryable failure (a 5xx error), we'll retry up to max_retries with
exponential backoff between each attempt.

Unfortunately, to do this we need to be able to create copies of the
request, meaning in particular the Body needs to be copyable. So, this
function can only support Vec-based request Bodies.

This function returns the response metadata  and
body, as well as the number of retries required .
Execute ( send ) a previously - constructed HTTP request . In the case of a retryable failure ( a 5xx error ) we ' ll retry up to max_retries with exponential backoff between each attempt . Unfortunately to do this we need to be able to create copies of the request meaning in particular the Body needs to be copyable . So this function can only support Vec - based request Bodies . This function returns the response metadata and body as well as the number of retries required .
fn execute_with_retries(
        &self,
        max_retries: usize,
        add_jitter: bool,
        method: Method,
        url: Url,
        headers: Option<&HeaderMap>,
        body: Option<&[u8]>,
    ) -> Result<(ResponseMetadata, Vec<u8>)> {
        self.execute_with_retries_custom_sleep(
            std::thread::sleep,
            max_retries,
            add_jitter,
            method,
            url,
            headers,
            body,
        )
    }
fn execute_with_retries ( & self , max_retries : usize , add_jitter : bool , method : Method , url : Url , headers : Option < & HeaderMap > , body : Option < & [ u8 ] > , ) -> Result < ( ResponseMetadata , Vec < u8 > ) > { self . execute_with_retries_custom_sleep ( std :: thread :: sleep , max_retries , add_jitter , method , url , headers , body , ) }
Execute (send) a previously-constructed HTTP request.
Execute ( send ) a previously - constructed HTTP request .
&self
max_retries
usize
add_jitter
bool
method
Method
url
Url
headers
Option<&HeaderMap>
body
Option<&[u8]>
&self
max_retries
usize
add_jitter
bool
method
Method
url
Url
headers
Option<&HeaderMap>
body
Option<&[u8]>