UNPKG

ky

Version:

Tiny and elegant HTTP client based on the Fetch API

11 lines (10 loc) • 524 B
import type { RetryOptions } from '../types/retry.js'; import type { InternalOptions } from '../types/options.js'; export declare const normalizeRequestMethod: (input: string) => string; /** Normalizes common methods for retry matching while preserving case-sensitive custom methods. */ export declare const normalizeRetryMethod: (method: string) => string; type InternalRetryOptions = InternalOptions['retry']; export declare const normalizeRetryOptions: (retry?: number | RetryOptions) => InternalRetryOptions; export {};