3 ms·
Good for NodeJS However, I feel the fetch API is completely botched because it lacks timeout support. I have cobbled some together for https://github.com/Backb
by chx 5y ago
Good for NodeJS
However, I feel the fetch API is completely botched because it lacks timeout support. I have cobbled some together for https://github.com/Backblaze/gists/pull/8 https://github.com/Backblaze/gists/pull/8 but gosh. I really hope all that is actually not necessary :/
- nikeee 5y agoYou can use an AbortController for that. Also, keep in mind that the linked solution does not abort the web request. It only aborts waiting for the response in the JS code. The browser does not close the connection.