Interface RemoteLoaderOptions

Hierarchy

  • AxiosRequestConfigWithoutUrl
    • RemoteLoaderOptions

Properties

adapter?: AxiosAdapter
auth?: AxiosBasicCredentials
baseURL?: string
beforeRedirect?: ((options, responseDetails) => void)

Type declaration

    • (options, responseDetails): void
    • Parameters

      • options: Record<string, any>
      • responseDetails: {
            headers: Record<string, string>;
        }
        • headers: Record<string, string>

      Returns void

cancelToken?: CancelToken
data?: any
decompress?: boolean
env?: {
    FormData?: (new (...args) => object);
}

Type declaration

  • Optional FormData?: (new (...args) => object)
      • new (...args): object
      • Parameters

        • Rest ...args: any[]

        Returns object

headers?: AxiosRequestHeaders
httpAgent?: any
httpsAgent?: any
insecureHTTPParser?: boolean
mapResponse?: ((config) => any)

Type declaration

    • (config): any
    • A function that maps http response body to corresponding config object

      Parameters

      • config: any

      Returns any

maxBodyLength?: number
maxContentLength?: number
maxRedirects?: number
method?: string
onDownloadProgress?: ((progressEvent) => void)

Type declaration

    • (progressEvent): void
    • Parameters

      • progressEvent: any

      Returns void

onUploadProgress?: ((progressEvent) => void)

Type declaration

    • (progressEvent): void
    • Parameters

      • progressEvent: any

      Returns void

params?: any
paramsSerializer?: ((params) => string)

Type declaration

    • (params): string
    • Parameters

      • params: any

      Returns string

proxy?: false | AxiosProxyConfig
responseEncoding?: string
responseType?: ResponseType
retries?: number

Number of retries to perform, defaults to 3

retryInterval?: number

Interval in milliseconds between each retry

shouldRetry?: ((response) => boolean)

Type declaration

    • (response): boolean
    • A function that determines if the request should be retried

      Parameters

      • response: AxiosResponse<any, any>

      Returns boolean

signal?: AbortSignal
socketPath?: null | string
timeout?: number
timeoutErrorMessage?: string
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[]
transitional?: TransitionalOptions

Config file type

Type declaration

validateStatus?: null | ((status) => boolean)

Type declaration

    • (status): boolean
    • Parameters

      • status: number

      Returns boolean

withCredentials?: boolean
xsrfCookieName?: string
xsrfHeaderName?: string

Generated using TypeDoc