共用方式為


RedirectOptions interface

如何處理重新導向響應的選項。

屬性

handleRedirects

若為 true,則會遵循重新導向回應。 默認值為 true。

maxRetries

在失敗之前,將會嘗試重新導向 URL 的次數上限。 預設值為 20。

屬性詳細資料

handleRedirects

若為 true,則會遵循重新導向回應。 默認值為 true。

handleRedirects: boolean

屬性值

boolean

maxRetries

在失敗之前,將會嘗試重新導向 URL 的次數上限。 預設值為 20。

maxRetries?: number

屬性值

number