MCPcopy Create free account
hub / github.com/apache/trafficserver / observe

Function observe

tests/gold_tests/pluginTest/compress/compress_observer.py:23–25  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

21
22
23def observe(headers):
24 log.write("{}\n".format(headers['X-Ats-Compress-Test']))
25 log.flush()
26
27
28Hooks.register(Hooks.ReadRequestHook, observe)

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
formatMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected