mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Adding proxy to TypeScript definitions
This commit is contained in:
@@ -26,7 +26,11 @@ const config: AxiosRequestConfig = {
|
||||
onDownloadProgress: (progressEvent: any) => {},
|
||||
maxContentLength: 2000,
|
||||
validateStatus: (status: number) => status >= 200 && status < 300,
|
||||
maxRedirects: 5
|
||||
maxRedirects: 5,
|
||||
proxy: {
|
||||
host: '127.0.0.1',
|
||||
port: 9000
|
||||
}
|
||||
};
|
||||
|
||||
const handleResponse = (response: AxiosResponse) => {
|
||||
|
||||
Reference in New Issue
Block a user