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

Is there a way to intercept requests and responses? #38

Closed
npearson72 opened this issue Jun 11, 2021 · 2 comments
Closed

Is there a way to intercept requests and responses? #38

npearson72 opened this issue Jun 11, 2021 · 2 comments

Comments

@npearson72
Copy link

As the title says. Similar to how axios allows you interceptors.

@aribouius
Copy link
Owner

@npearson72 not at the moment, although it's something I'd love to build better support for.

While not advertised, the library does allow overriding the fetch method that is used to execute requests. This means you could provide a custom one that uses axios under the hood.

@npearson72
Copy link
Author

Thanks @aribouius

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

No branches or pull requests

2 participants