diff options
Diffstat (limited to 'internal/rules')
| -rw-r--r-- | internal/rules/rules.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/rules/rules.go b/internal/rules/rules.go index e0547db..76d2ce7 100644 --- a/internal/rules/rules.go +++ b/internal/rules/rules.go @@ -14,17 +14,17 @@ import ( // Rule is one match-and-replace rule. type Rule struct { - ID int64 - Enabled bool - Name string - Scope string // "request" or "response" - Part string // "header" or "body" - Match string - Replace string - IsRegex bool + ID int64 `json:"id"` + Enabled bool `json:"enabled"` + Name string `json:"name"` + Scope string `json:"scope"` // "request" or "response" + Part string `json:"part"` // "header" or "body" + Match string `json:"match"` + Replace string `json:"replace"` + IsRegex bool `json:"is_regex"` // Position orders rule application (ascending) when several rules // could touch the same text. - Position int + Position int `json:"position"` } // ApplyHeaders rewrites h in place by serializing it to a raw |