Notes
In-class Notes
Lecture 4
---------
Web servers
What does a web server do?
Listens on port 80, 443, or other port
INPUT: HTTP requests
OUTPUT: HTTP responses & requested documents
tinywebserver.js
- written in JavaScript (Node)
- can only serve files
- understands only a few file types
So tinywebserver is how web servers worked in 1995
What changed since then is now web servers run code to generate responses
Why use frameworks?
- because we don't want to build up HTML from scratch
- and, we want logic that is abstracted away
- and, we want routing
- have someone else decide which function to call in response to requests
But for this week, bare bones
Debugging