Web

IntermediateLesson 14 of 1440 min, hands-on

Capstone: A Tiny Web Server

Part of the Web course

Every lesson in this course explained a header from the outside. You learned what Cache-Control promises, what Access-Control-Allow-Origin permits, what a 304 saves. All of it from the position of someone reading responses that somebody else wrote.

This lesson swaps sides. You are going to write the server, set the headers yourself, and then hit your own server with curl -v and watch the behaviours you have been reading about happen because of a line you typed. It is a short amount of code and the point is not the code. The point is that the entire conversation stops being magic once you have been the one answering. ...

What you'll learn

  • Serving HTTP
  • Cache headers
  • CORS headers
  • Security headers
  • curl -v
  • 304 Not Modified
  • Redirects

Work through Capstone: A Tiny Web Server

Sign in free and open the Web course. Work through the lesson, and ask the AI tutor when you get stuck.