Refit.RetryDelayProviders
Reads server retry hints independently of request execution. Invalid or missing hints return null.
public static TimeSpan? Aws(HttpResponseMessage response, DateTimeOffset now, CancellationToken cancellationToken)
Reads the AWS x-amz-retry-after millisecond hint, then standard Retry-After.
public static TimeSpan? Azure(HttpResponseMessage response, DateTimeOffset now, CancellationToken cancellationToken)
Prefers Azure millisecond hints, then the standard Retry-After header.
public static TimeSpan? GitHub(HttpResponseMessage response, DateTimeOffset now, CancellationToken cancellationToken)
Reads GitHub Retry-After, or the primary rate-limit reset only when the remaining quota is zero.
public static TimeSpan? Jira(HttpResponseMessage response, DateTimeOffset now, CancellationToken cancellationToken)
Reads Jira Retry-After or, on throttled responses, its ISO 8601 reset timestamp.
public static TimeSpan? ReadHeader(HttpResponseMessage response, string headerName, RetryHeaderFormat format, DateTimeOffset now, CancellationToken cancellationToken)
Reads a custom header, rejecting ambiguous multiple values and invalid or overflowing numbers.
public static TimeSpan? RetryAfter(HttpResponseMessage response, DateTimeOffset now, CancellationToken cancellationToken)
Reads standard Retry-After delta seconds or an HTTP date.