Skip to main content

fetch_text

Function fetch_text 

Source
pub async fn fetch_text(client: &Client, url: &str) -> Result<String, String>
Expand description

GET url, check HTTP status, return body as text.

Retries up to MAX_RETRIES times on network errors or 5xx/429 responses, with exponential backoff starting at INITIAL_BACKOFF_MS.