Skip to content

15.3.1 Change AxiosRequestConfig per method

Compare
Choose a tag to compare
@Shaddix Shaddix released this 04 Feb 08:51
· 106 commits to master since this release

You might want to configure default Timeout of 10seconds for all your requests, but few requests require a larger timeout.
Now you are able to call setRequestConfigYOUR_OPERATION_NAME({timeout: 60000}); and this single operation will have a timeout of 1 minute.
getRequestConfig* and patchRequestConfig* methods are also available.

Of course, it's not limited to timeout only, you could change any AxiosRequestConfig option.