Lesson 9.1
The cookie round-trip
What a cookie is on the wire, why Set-Cookie cannot share the overwrite map, and the first build - parsing the inbound Cookie header into a lazy req.cookies getter.
What you will build
- Diagram the Cookie and Set-Cookie field names moving in opposite directions.
- Explain the header-storage asymmetry and why Set-Cookie must be stored as a list.
- Parse one or more Cookie fields into a null-prototype, lazily cached req.cookies map.