HTTP variables

$sent_trailer_* variable family (HTTP)

Inspect a response trailer by its normalized field name. Unlike ordinary headers, trailers arrive at the end of the response and may be absent. Use synthetic values and log-phase observation. The asterisk represents a name suffix, not literal configuration syntax. Version: 1.13.2. OSS documentation; verify build. No positional directive arguments. Example is a partial configuration fragment for a disposable synthetic lab; not a production logging policy.

Formal Syntax & Structure

nginx syntaxnginx
$sent_trailer_*

Working Example

Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_sent_trailer_family escape=json '{"observed":"$sent_trailer_x_lab_result"}';
Nginx Reference