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

feat(client): allow custom fetch impl #74

Merged
merged 4 commits into from
Jul 22, 2024
Merged

Conversation

drochetti
Copy link
Collaborator

@drochetti drochetti commented Jul 19, 2024

This PR introduces the fetch function as a config option. It expects the function to follow the fetch signature and behavior, so node-fetch, isomorphic-fetch and similar can be use as a drop-in. When using HTTP clients such as Axios, one needs to write their own adapter function or use something like https://github.com/lifeomic/axios-fetch

@drochetti
Copy link
Collaborator Author

This addresses #70

@drochetti drochetti merged commit 2839e79 into main Jul 22, 2024
1 check passed
@drochetti drochetti deleted the feat/allow-custom-fetch-impl branch October 1, 2024 21:44
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.

1 participant