Type alias HttpMiddlewareOptions
HttpMiddlewareOptions: {
abortController?: AbortController;
credentialsMode?: "omit" | "same-origin" | "include";
enableRetry?: boolean;
fetch?: any;
getAbortController?: (() => AbortController);
headersWithStringBody?: string[];
host: string;
includeHeaders?: boolean;
includeOriginalRequest?: boolean;
includeRequestInErrorResponse?: boolean;
includeResponseHeaders?: boolean;
maskSensitiveHeaderData?: boolean;
retryConfig?: {
backoff?: boolean;
maxDelay?: number;
maxRetries?: number;
retryCodes?: (number | string)[];
retryDelay?: number;
retryOnAbort?: boolean;
};
timeout?: number;
}
Type declaration
Optional
abortController?: AbortController
Optional
credentialsMode?: "omit" | "same-origin" | "include"
Optional
enableRetry?: boolean
Optional
fetch?: any
Optional
getAbortController?: (() => AbortController)
- (): AbortController
Returns AbortController
Optional
headersWithStringBody?: string[]
host: string
Optional
includeHeaders?: boolean
Optional
includeOriginalRequest?: boolean
Optional
includeRequestInErrorResponse?: boolean
Optional
includeResponseHeaders?: boolean
Optional
maskSensitiveHeaderData?: boolean
Optional
retryConfig?: {
backoff?: boolean;
maxDelay?: number;
maxRetries?: number;
retryCodes?: (number | string)[];
retryDelay?: number;
retryOnAbort?: boolean;
}
Optional
backoff?: boolean
Optional
maxDelay?: number
Optional
maxRetries?: number
Optional
retryCodes?: (number | string)[]
Optional
retryDelay?: number
Optional
retryOnAbort?: boolean
Optional
timeout?: number