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.
Native
b2_create_key,b2_create_bucket,b2_copy_file, andb2_hide_fileare not replayed after connection failures or HTTP 408/5xx responses. Check the outcome before retrying manually. Expired-token reauth and HTTP 429 backoff remain enabled because those responses reject the operation.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.