Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONAudit ¶
JSONAudit logs request/response bodies for audit when the upstream response is JSON-like.
func New ¶
func New() *JSONAudit
New builds a JSON audit plugin (call Prepare after construction via core).
func (*JSONAudit) OnRequest ¶
OnRequest snapshots the client request body (bounded) for pairing with JSON responses.
func (*JSONAudit) OnResponse ¶
OnResponse emits one audit log line when the upstream response looks like JSON.
Click to show internal directories.
Click to hide internal directories.