(value string)
| 114 | } |
| 115 | |
| 116 | func (r HeaderRoute) IsMatch(value string) bool { |
| 117 | if len(r.MatchAny) > 0 { |
| 118 | for _, m := range r.MatchAny { |
| 119 | if m.Match(value) { |
| 120 | return true |
| 121 | } |
| 122 | } |
| 123 | } else if r.MatchOne.Match(value) { |
| 124 | return true |
| 125 | } |
| 126 | return false |
| 127 | } |
| 128 | |
| 129 | type Pattern struct { |
| 130 | prefix string |