Skip to content

Glossary: Node.js Basics

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.

Where the book teaches it

Related terms

AbortSignal.timeoutMock