diff --git a/chain/node.go b/chain/node.go index 1697a4f..56894ff 100644 --- a/chain/node.go +++ b/chain/node.go @@ -30,7 +30,7 @@ type HTTPURLRewriteSetting struct { Replacement string } -// HTTPBodyRewriteSettings defines an HTTP response body rewrite rule. +// HTTPBodyRewriteSettings defines an HTTP body rewrite rule. type HTTPBodyRewriteSettings struct { // Type is the MIME type to match, e.g. "text/html". Type string @@ -54,6 +54,8 @@ type HTTPNodeSettings struct { RewriteURL []HTTPURLRewriteSetting // RewriteResponseBody holds the response body rewrite rules. RewriteResponseBody []HTTPBodyRewriteSettings + // RewriteRequestBody holds the request body rewrite rules. + RewriteRequestBody []HTTPBodyRewriteSettings } // TLSNodeSettings holds TLS configuration for a node. diff --git a/observer/stats/stats.go b/observer/stats/stats.go index ebbf67b..83354c0 100644 --- a/observer/stats/stats.go +++ b/observer/stats/stats.go @@ -27,6 +27,6 @@ type Stats interface { Get(kind Kind) uint64 // IsUpdated reports whether any stat has changed since the last Reset. IsUpdated() bool - // Reset clears the IsUpdated flag. + // Reset clears all counters to zero and resets the IsUpdated flag. Reset() }