From: Aleksandar Lazic Date: Thu, 3 Dec 2026 20:00:33 +0000 (+0100) Subject: DOC: haterm: document the X-req and X-rsp headers X-Git-Url: https://git.kaiwu.me/web/http/static/%7Bsubstring-before(@doc,%20'.xml')%7D.html?a=commitdiff_plain;h=92c2584be37900a5c9c7ddd8bfe5eeb582272a49;p=haproxy.git DOC: haterm: document the X-req and X-rsp headers 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 Signed-off-by: Aleksandar Lazic --- diff --git a/doc/haterm.txt b/doc/haterm.txt index 3609731cb..a78fcbb38 100644 --- a/doc/haterm.txt +++ b/doc/haterm.txt @@ -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= us + X-rsp: id=dummy, code=, cache=<0|1>[, chunked,] size=, + time= us ( real) + + 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). is the delay requested with ?t= and the one +really spent waiting, both in microseconds. As the delay is scheduled on the +millisecond clock while the wait is measured in nanoseconds, may be +up to 1 ms shorter than .