Expand description
One INFO line per response on target access, since production runs at
INFO, where TraceLayer says nothing.
Functions§
- agent_
label 🔒 - Bounded, and
to_stradmits only visible ASCII, so the agent cannot forge log lines. - bytes_
label 🔒 Content-Lengthwhen the handler set it, otherwise the body’s exact size, which hyper only turns into a header later.- key_
label 🔒 -without a key,malformedfor one that could not be minted, otherwise the first 12 hex chars of its hash, astoken listprints them; never the key.- log_
response - Middleware logging method, target, status, bytes, time to the response head (a download’s body is still streaming), the key’s hash prefix and the agent.