Add custom axios config for request
Example usage:
FileService.uploadFile({
file,
}).axiosConfig({
onUploadProgress: (event) => {
// Do something with the event
console.log(event.loaded / event.total)
}
})
Can we get this merged? This opens up infinite possibilities.
Bump, also very interested in this PR.
To anyone still looking for this, check out our (previously forked) version of this package https://github.com/hey-api/openapi-ts. We have just recently added support for setting request/response interceptors. In the case of axios, this would allow you to modify the config used for each request before the request is sent. Please check it out if you'd like, and create any issues if you run into problems.