UNPKG

undici-retry

Version:

Library for handling retry logic with undici HTTP client

5 lines (4 loc) 219 B
import type { Either } from './either'; export declare function resolveDelayTime(headers: { 'retry-after'?: string; }, maxDelay?: number): Either<'header_not_set' | 'unknown_format' | 'max_delay_exceeded', number>;