property
BunFetchRequestInit.maxRedirects
maxRedirects?: number
The maximum number of redirects to follow when redirect is "follow". If the response chain redirects more than this many times, the request rejects with a "too many redirects" error. Not part of the Fetch API specification.
const response = await fetch("https://example.com/", { maxRedirects: 3 });