DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

More secure `fetch`, but not overdone like Axios?

I love fetch in that I can easily control whether to output JSON or plainText via chaining; but obviously, it is lacking a URL builder.

I do love axios in that I can create an Instance, but sometimes I don't get whether it will return JSON or plainText (by default settings, i.e. no transformers)?

Also, WHATWG URL object might be doing it wrong, keeping .searchParams and .href apart, making it impossible for chaining?

Top comments (0)