Whether an API error is transient for this route beyond the generic idempotent-retry rule. Subclasses add * rules for APIs that document extra retryable responses.
(_method: string, _path: string, _status: number)
| 49 | /** Whether an API error is transient for this route beyond the generic idempotent-retry rule. Subclasses add |
| 50 | * rules for APIs that document extra retryable responses. */ |
| 51 | protected transient(_method: string, _path: string, _status: number): boolean { |
| 52 | return false; |
| 53 | } |
| 54 | |
| 55 | /** Sends a request like `api` and also returns the relative path of the next page from the Link header. */ |
| 56 | protected async page<T>(method: string, path: string, body?: unknown): Promise<{ body: T; next?: string }> { |