HTTP variables

$upstream_header_time variable (HTTP)

Elapsed time until upstream response headers arrive; distinguish this from total response time. Version: 1.7.10. seconds to millisecond precision; preserve attempt boundaries No positional arguments. Example: partial http configuration for a disposable synthetic lab; not a complete deployment.

Formal Syntax & Structure

nginx syntaxnginx
$upstream_header_time

Working Example

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