Yasgui icon indicating copy to clipboard operation
Yasgui copied to clipboard

Use fetch instead of superagent

Open LaurensRietveld opened this issue 5 years ago • 2 comments

We use superagent for all http requests. This is a left-over from the old yasgui version. Let's use the native fetch api instead. This should solve #144 as well, as fetch doesn't do any 'magic' response body parsing

LaurensRietveld avatar Feb 10 '20 08:02 LaurensRietveld

Any progress on this yet? I've started using Yasqe in a new JS project, and I'm using fetch for all other HTTP operations in my code, I'd prefer if Yasqe could use fetch natively too.

ashleysommer avatar Jan 31 '25 04:01 ashleysommer

For anyone still watching this, looks like it's been addressed in a fork of the library: https://github.com/zazuko/Yasgui/pull/19

lucas42 avatar Sep 22 '25 00:09 lucas42