How long ago, in the shortest true words: just now, 12s ago, 4m ago, 2h ago.
Which tone a round trip wears. A tenth of a second is where a person starts to notice waiting, and a second is where they start doing something else.
The colour a verb wears, wherever a verb is printed — the reading ones cool, the writing ones warm, and the one that destroys something red. The same five every HTTP tool has taught.
The body, as much of it as was asked for.
A block of headers, one per line, with the names in the colour that means "this is what you came to find".
Everything about one connection: what was sent, what came back, and the body.
One connection on one line, for a list of them: 2m ago #3 200 GET /api/users.
The whole answer in one line:
200 OK · 101 bytes · 9ms | GET http://localhost:4000/api/users | #3.
What a request was for: GET http://localhost:4321/api/users.
Which tone a body size wears. A terminal stops being comfortable around a hundred kilobytes and stops coping around a megabyte, so those are the two boundaries.
Which tone a status wears — the one place the four classes are decided.
What a number or a status is worth saying about: the vocabulary every colour here is chosen from.
How much of a body a request command prints before it starts saying "there is more".
Usage
import * as mod from "lib/commands/repl/print-request.ts";