You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/axios-support.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,3 +24,51 @@ in your `tsconfig.json` file:
24
24
}
25
25
}
26
26
```
27
+
28
+
29
+
## Using a custom Axios client
30
+
31
+
Sometime you may want to use your own Axios client created by `axios.create` for advanced configuration (e.g. Usage of the popular [axios-retry](https://github.com/softonic/axios-retry) interceptor) without having to [reimplement](./custom-request-file.md) the entire generated Axios request function.
32
+
33
+
In those cases, simply construct your own HttpRequest wrapper implementation and pass it into your API client
34
+
35
+
## Example
36
+
37
+
Create a file that looks like this, that references file from the `/core` folder of the generated client.
0 commit comments