utils_http: Utilities: HTTP and Retry Logic

utils_httpR Documentation

Utilities: HTTP and Retry Logic

Description

Provides standardized HTTP request handling with exponential backoff retry.

Implements multi-layer defense strategy for handling API responses:

  • Empty response body handling (returns instead of parse error)

  • JSON parsing with repair fallback

  • SSE stream error recovery

  • Graceful degradation on malformed data


aisdk documentation built on May 29, 2026, 9:07 a.m.