Last week, we understood about HTTP Servers

Screenshot 2024-08-31 at 6.33.20 PM.png

Jargon from last week

  1. Domain name/IP
  2. Port
  3. Methods
  4. Plaintext vs JSON vs HTML response
  5. Status codes
  6. Body
  7. Routes
  8. Express

What we’re learning today

  1. Headers
  2. Fetch API in the browser
  3. Query params, Creating our own HTTP Server (Again). Does simple math (sum server)
  4. Middlewares
    1. Create a middleware function that logs each incoming request’s HTTP method, URL, and timestamp to the console
    2. Count total number of requests
  5. Commonly used middlewares
    1. express.json / bodyParser.json
    2. cors