Creates a new RetryTransport.
Retry transport configuration.
Sends the request with automatic retry on transient failures. On expired auth tokens, calls RetryTransportOptions.onReauth and retries.
The HTTP request to execute. The caller's reference is not mutated; on reauth, a copy with a refreshed Authorization header is sent.
The HTTP response.
Transport wrapper that adds automatic retry with exponential backoff. Handles transient errors (408, 429, and the transient 5xx set 500/502/503/504), expired auth tokens, and network failures. Delegates to an inner HttpTransport.
Upload endpoints (
b2_upload_file/b2_upload_part) are URL-pinned. Their retryable pod failures bubble to the upload layer, which evicts the failed URL, fetches a fresh one, and retries there. HTTP 429 remains an in-place retry so account-level throttling does not trigger extra upload URL fetches.