2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

feat(http): add HTTP2 support; (#7150)

This commit is contained in:
Dmitriy Mozgovoy
2025-10-19 15:06:36 +03:00
committed by GitHub
parent 015faeca9f
commit d676df7722
8 changed files with 734 additions and 162 deletions
Vendored
+4
View File
@@ -369,6 +369,10 @@ export interface AxiosRequestConfig<D = any> {
withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
parseReviver?: (this: any, key: string, value: any) => any;
fetchOptions?: Omit<RequestInit, 'body' | 'headers' | 'method' | 'signal'> | Record<string, any>;
httpVersion?: 1 | 2;
http2Options?: Record<string, any> & {
sessionTimeout?: number;
};
}
// Alias