http_request_with_retry: Make HTTP Request with Retry

View source: R/http.R

http_request_with_retryR Documentation

Make HTTP Request with Retry

Description

Internal function to make HTTP requests with retry logic for transient failures.

Usage

http_request_with_retry(
  method,
  profile,
  endpoint,
  body = list(),
  query_params = list(),
  max_retries = 3,
  retry_delay = 2
)

Arguments

method

Character. HTTP method ("GET" or "POST").

profile

List. Profile configuration from load_profile().

endpoint

Character. API endpoint path (without base URL).

body

List. Request body (for POST requests).

query_params

List. Query parameters.

max_retries

Integer. Maximum number of retries (default: 3).

retry_delay

Integer. Delay between retries in seconds (default: 2).

Value

Parsed JSON response.


cloudosR documentation built on June 1, 2026, 5:07 p.m.