Lesson 2 workers-101

Request Basics

Every request contains useful information. Access request.method to get the HTTP method (GET, POST, etc.) and request.url to get the full URL. Edit the code to return a string that includes both the method and URL.

Great! You can also access request.headers to read headers. Try accessing request.headers.get("user-agent") in your next worker.

Your code