Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Visual Tracer

The visual tracer renders request trace files as an annotated decision diagram, making it easy to see exactly which path through the HTTP state machine a given request took.

Viewing a Trace

Trace files are written by req.enableTrace(directory) — see Request Tracing for setup.

Once you have a trace file, you can map the decision sequence back to the HTTP diagram manually, or use a diagram tool with the node names as reference:

  1. Open the HTTP decision diagram.
  2. Locate the first decision in decisions[] (always v3b13).
  3. Follow each step in order — the diagram branches are labeled with the return value that leads to each path.

Interpreting Decision Names

Decision names follow the pattern v3<column><row>:

NameDescription
v3b13Service available?
v3b12Known method?
v3b11URI too long?
v3b10Method allowed?
v3c3Accept header present?
v3d4Acceptable media type available?
v3g7Resource exists?
v3l13If-Modified-Since present?
v3o18Conflict?

See the full HTTP diagram for the complete node map.