Headers that matter to backend engineers
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
know the handful of headers you will use every week.
Planned topics
- Headers are
Name: valuepairs sent before the body, in both requests and responses. Content-Typesays what the body is.Content-Lengthsays how big it is.Authorizationcarries credentials.Locationgives the URL of a created resource.User-AgentandHostidentify the client and the target server.- Header names are case-insensitive; never put secrets in URLs, use headers instead.
Draft outline details
Demonstration
POST /products HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer <token>
{"name":"Pen","priceCents":150}Check your understanding
Which response header tells the client where the new resource lives?
Show answer
Location.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.