pub async fn make_http_request_reserved<B: Serialize>(
client: &Client,
rate_limiter: &RateLimiter,
method: Method,
url: &str,
headers: Vec<(&str, &str)>,
body: &Option<B>,
retry_config: RetryConfig,
reserved: bool,
) -> Result<Response, AppError>Expand description
Same as make_http_request, but told whether the first send already owns
a token.
reserved = true means the caller took a cell from rate_limiter for this
request and the first attempt must not take another. Retries always pace
themselves: each one is a fresh request as far as IG is concerned.