Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom axios config for request #1682

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

50Bytes-dev
Copy link

No description provided.

@50Bytes-dev
Copy link
Author

Example usage:

FileService.uploadFile({
    file,
}).axiosConfig({
    onUploadProgress: (event) => {
        // Do something with the event
        console.log(event.loaded / event.total)
    }
})

@brmdbr
Copy link

brmdbr commented Nov 29, 2023

Can we get this merged? This opens up infinite possibilities.

@kkettinger
Copy link

Bump, also very interested in this PR.

@jordanshatford
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants