Anatomy of an HTTP Request

Talk it through out loud with your AI coach.

The problem

  • easy

A junior developer has only ever called APIs through a library and asks what an HTTP request and response actually contain. Walk them through the parts of each, using a request to load a user's profile as the example.

What a strong answer covers

  • What a request carries: what you want done, to which resource, plus metadata and sometimes a payload.
  • What comes back: an outcome code, metadata and usually a payload.
  • Concrete header examples and what each is for.
  • Why every request has to identify the user again.

Common mistake: Describing the library or framework you use instead of what actually travels over the wire.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud