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).
Parameters
Section titled “Parameters”string
string
headers?
Section titled “headers?”Record<string, string>
method?
Section titled “method?”string
redirect?
Section titled “redirect?”"error" | "manual" | "follow"
signal?
Section titled “signal?”unknown
Returns
Section titled “Returns”Promise<FetchResponseLike>