]> git.kaiwu.me - haproxy.git/commitdiff
DOC: haterm: document the X-req and X-rsp headers
authorAleksandar Lazic <al-haproxy@none.at>
Thu, 3 Dec 2026 20:00:33 +0000 (21:00 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Fri, 4 Dec 2026 10:26:10 +0000 (11:26 +0100)
Describe the two informational headers of the responses and the times
they report in microseconds, including the -1 reported by X-req when
the request body is drained after the response.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Aleksandar Lazic <al-haproxy@none.at>
doc/haterm.txt

index 3609731cb1ffef21aa9f2bea065a7b7c204d1fc8..a78fcbb385905a79dd95cc3a2a162c7b80854139 100644 (file)
@@ -138,3 +138,18 @@ HATerm:
      -  GET /?s=20k&c=1&t=700&K=30r HTTP/1.0
      -  GET /?r=500?s=0?c=0?t=1000 HTTP/1.0
 
+
+Apart from the help page, the 100-continue and the 400/408 error responses,
+each response carries two informational headers:
+
+    X-req: time=<req-time> us
+    X-rsp: id=dummy, code=<code>, cache=<0|1>[, chunked,] size=<size>,
+           time=<wait> us (<real-wait> real)
+
+<req-time> is the time in microseconds from the creation of the stream, once
+the request headers were received, to the end of the request, so it covers the
+upload of the request body. It is -1 when the body is drained after the
+response (?A=1). <wait> is the delay requested with ?t= and <real-wait> the one
+really spent waiting, both in microseconds. As the delay is scheduled on the
+millisecond clock while the wait is measured in nanoseconds, <real-wait> may be
+up to 1 ms shorter than <wait>.