RedirectOptions interface
有关如何处理重定向响应的选项。
属性
handle |
如果为 true,则遵循重定向响应。 默认值为 true。 |
max |
重定向 URL 在失败之前将尝试的最大次数。 默认值为 20。 |
属性详细信息
handleRedirects
如果为 true,则遵循重定向响应。 默认值为 true。
handleRedirects?: boolean
属性值
boolean
maxRetries
重定向 URL 在失败之前将尝试的最大次数。 默认值为 20。
maxRetries?: number
属性值
number