mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
feat(dns): added support for a custom lookup function; (#5339)
This commit is contained in:
Vendored
+4
-1
@@ -329,7 +329,7 @@ export interface AxiosRequestConfig<D = any> {
|
||||
maxBodyLength?: number;
|
||||
maxRedirects?: number;
|
||||
maxRate?: number | [MaxUploadRate, MaxDownloadRate];
|
||||
beforeRedirect?: (options: Record<string, any>, responseDetails: {headers: Record<string, string>}) => void;
|
||||
beforeRedirect?: (options: Record<string, any>, responseDetails: { headers: Record<string, string> }) => void;
|
||||
socketPath?: string | null;
|
||||
transport?: any;
|
||||
httpAgent?: any;
|
||||
@@ -344,6 +344,9 @@ export interface AxiosRequestConfig<D = any> {
|
||||
FormData?: new (...args: any[]) => object;
|
||||
};
|
||||
formSerializer?: FormSerializerOptions;
|
||||
family?: 4 | 6 | undefined;
|
||||
lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: string, family: number) => void) => void) |
|
||||
((hostname: string, options: object) => Promise<[address: string, family: number] | string>);
|
||||
}
|
||||
|
||||
// Alias
|
||||
|
||||
Reference in New Issue
Block a user