Feat: canary supports using specific match strategy to match header value.
This commit is contained in:
parent
7d52174b51
commit
0b33650bb8
7 changed files with 157 additions and 18 deletions
|
|
@ -119,6 +119,8 @@ type TrafficShapingPolicy struct {
|
|||
Header string `json:"header"`
|
||||
// HeaderValue on which to redirect requests to this backend
|
||||
HeaderValue string `json:"headerValue"`
|
||||
// HeaderPattern the header value match pattern, support exact, regex.
|
||||
HeaderPattern string `json:"headerPattern"`
|
||||
// Cookie on which to redirect requests to this backend
|
||||
Cookie string `json:"cookie"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue