Documentation ¶
Index ¶
Constants ¶
View Source
const ( MatchTypeEqual = "equal" MatchTypeContain = "contain" MatchTypePrefix = "prefix" MatchTypeSuffix = "suffix" MatchTypeRegex = "regex" )
View Source
const (
Name = "response_rewrite_v2"
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() eosc.IExtenderDriverFactory
func Register ¶
func Register(register eosc.IExtenderDriverRegister)
Types ¶
type HeaderMatchRule ¶
type Match ¶
type Match struct { StatusCode int `json:"match_status_code" label:"匹配状态码" minimum:"100" default:"200" description:"最小值:100"` HeaderMatch []*HeaderMatchRule `json:"match_headers" label:"响应头匹配规则"` BodyMatch *MatchRule `json:"match_body" label:"响应体匹配规则"` ResponseRewrite *ResponseRewrite `json:"response_rewrite" label:"重写响应内容"` }
Click to show internal directories.
Click to hide internal directories.