HTTP variables

$sent_http_* variable family (HTTP)

Inspect a response header via its lowercase, underscore-separated field name. Example: $sent_http_content_type. Observe final response metadata at log time rather than assuming it exists during rewrite. The asterisk represents a name suffix, not literal configuration syntax. Version: Introduction not established. 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_http_*

Working Example

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