docs(chain/node,observer/stats): fix doc comment formatting, clarify Stats.Reset, add RewriteRequestBody field

This commit is contained in:
ginuerzh
2026-05-31 19:32:16 +08:00
parent 3cdfea5740
commit 1f04d2e2ea
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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.
+1 -1
View File
@@ -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()
}