add rewrite body http node setting

This commit is contained in:
ginuerzh 2024-07-19 20:42:33 +08:00
parent 48d070d345
commit 2697697552

View File

@ -22,11 +22,18 @@ type HTTPURLRewriteSetting struct {
Replacement string
}
type HTTPBodyRewriteSettings struct {
Type string
Pattern *regexp.Regexp
Replacement []byte
}
type HTTPNodeSettings struct {
Host string
Header map[string]string
Auther auth.Authenticator
Rewrite []HTTPURLRewriteSetting
Host string
Header map[string]string
Auther auth.Authenticator
RewriteURL []HTTPURLRewriteSetting
RewriteBody []HTTPBodyRewriteSettings
}
type TLSNodeSettings struct {