Skip to content
docs

FetchLike

FetchLike = (url, init?) => Promise<FetchResponseLike>

Defined in: verify.ts:43

A fetch-compatible function; pass one to route checks through a proxy or a test double. The verifier asks for redirect: 'error': a transport that cannot refuse redirects should at least report url / redirected, so a redirected answer is refused (the redirected request itself has then already gone out).

string

string

Record<string, string>

string

"error" | "manual" | "follow"

unknown

Promise<FetchResponseLike>