Hacker News new | ask | show | jobs
by augusto-moura 72 days ago
Hm, I don't think axios would do much better here. `fetch` is the official replacement for axios. If both are flawed that's another topic
2 comments

Axios has maxContentLength and maxBodyLength options. I would probably go with undici nowadays though (it also has maxResponseSize).
> `fetch` is the official replacement for axios.

No. Axios is still maintained. They have not deprecated the project in favor of fetch.

I'm not saying that axios is unmaintained, I'm saying that if you want something like axios from the standard lib, fetch is the closest thing you get to official
Sure but Axios determine what the official replacement for Axios is.
It's not deprecated, it's obsoleted.