send_standard_request

Function send_standard_request 

Source
pub async fn send_standard_request(
    timeout: Duration,
    prepare: impl Fn() -> RequestBuilder,
    handle_rate_limit: impl Fn(&Response) -> Option<Duration>,
    body: Bytes,
) -> Result<(Response, Duration), Report<ProviderError>>
Expand description

Send an HTTP request with retries, and handle errors. Most providers can use this to handle sending their request and handling errors.