Duration
6 min
Access
Free
Transcript
Available

We'll take a look at the default code in index.js in a Workers project. We'll take a second to understand how it works before building the rest of our project.

First will see what our Worker looks like in an actual browser by running wrangler preview. In a terminal, and we'll check out how Serverless functions in Cloudflare Workers listen for HTTPS requests via the "fetch" event and respond to them by creating and returning a new Response.