Skip to content

Custom fetch replacement? #489

Answered by timostamm
sebastianlp asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Sebastián, writing your own Transport is straight-forward. The implementation with fetch is just 200 lines of code. Only 80 lines if you don't care about streaming. So creating your own Connect transport that uses axios is definitely a feasible option!

Are you aware of axios-fetch? It turns an axios instance into a fetch function. Have not tried it, but this could be another approach once we have a solution for #403.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sebastianlp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants