fetch

A page talks to a server with HTTP: it sends a request (a method, a URL, some headers, maybe a body) and gets back a response (a status, headers, a body). fetch() is how JavaScript does that. Build a request to Rooms below, send it, and see the code, the request object, and the reply. Notes.

Try:

The request

The code


  

The Request object


  

The Response

(press Send)