fetch
Also written: Response, res.ok
The function built into Node for making HTTP requests, returning a promise of a Response. It rejects only when there is no answer, so you must check `res.ok` for 404 or 500.
Also written: Response, res.ok
The function built into Node for making HTTP requests, returning a promise of a Response. It rejects only when there is no answer, so you must check `res.ok` for 404 or 500.