HTTP variables

$upstream_trailer_* variable family (HTTP)

Access a named field received after the upstream response body. Such metadata is not necessarily forwarded to the client. Version: 1.13.10. Use a concrete synthetic trailer name, not wildcard syntax. No positional arguments. Example: partial http configuration for a disposable synthetic lab; not a complete deployment.

Formal Syntax & Structure

nginx syntaxnginx
$upstream_trailer_*

Working Example

Example Snippetnginx
# Classify presence without emitting raw backend metadata.map $upstream_trailer_x_lab_marker $lab_seen_upstream_trailer_x_lab_marker {    "" absent;    default present;}
Nginx Reference