Protocols

HTTP

HTTP is a request-response application protocol for transferring representations and commands.

ClientServerGET /orders/42200 OK + JSON
HTTP is a request-response application protocol for transferring representations and commands. Values shown in the worked visual are illustrative unless the labels state otherwise.

How it works

A client sends a method, target, headers, and optional body. A server returns a status, headers, and optional body.

A concrete example

Illustrative: GET /models returns status 200 and a 12 KB JSON body.

Do not confuse it with TCP

HTTP defines application messages; TCP transports an ordered byte stream.

Study the full lesson