Skip to main content

make_http_request_with_account

Function make_http_request_with_account 

Source
pub async fn make_http_request_with_account<B: Serialize>(
    client: &Client,
    pacing: Pacing<'_>,
    method: Method,
    url: &str,
    headers: Vec<(&str, &str)>,
    body: &Option<B>,
    retry_config: RetryConfig,
) -> Result<Response, AppError>
Expand description

Same as make_http_request, but paced against a key budget and the account budget its keys share.

ยงErrors

Same as make_http_request.