k6
k6 copied to clipboard
xk6 extensions experiment: fetch API
Now that we have event loops and once #2423 is done, it is a good idea to start experimenting and working on making our APIs use it.
A good candidate is k6/http and we have had for some time wondered if we should not implement fetch api.
This should definitely start in an extension and is likely to need changes to netext and httpext which should also probably be first done in the extension alone.
The idea here is not to implement the whole specification. It's mostly to see whether it's possible and whether that will be beneficial for k6. It's also good idea to keep #2311 in mind but also probably most issues labeled with new-http as those are things we would like to support.
This is very likely to not ever be merged in k6, so again, its should not be perfect or complete.