Chx:localonly _verified_ 〈360p 2027〉
location /stream proxy_pass http://backend; proxy_set_header X-Local-Only-Hint $chx_localonly; # Strip chx:localonly before sending to client proxy_hide_header chx;
There are several use cases where chx:localonly proves to be incredibly useful: chx:localonly
In tools like Charles Proxy or Fiddler, similar directives are used to define the scope of traffic capture. location /stream proxy_pass http://backend
chx:localonly is a that tells an intermediate HTTP processor to apply a local policy (logging, rate limiting, transformation) to that specific chunk without propagating the directive downstream. It enables fine‑grained, hop‑by‑hop control over streaming data, useful in complex proxy chains, debugging, and traffic shaping. Implementers must ensure it’s properly stripped to avoid leaking internal state. proxy_set_header X-Local-Only-Hint $chx_localonly