Support regex for attr matching
parent
09b8d43ba6
commit
2496487912
|
@ -157,7 +157,7 @@
|
|||
|
||||
> `attrs`: object
|
||||
|
||||
一个 json object,键名字和值皆为字符串,用于检测流量的属性值。当 HTTP headers 包含所有指定的键,并且值包含指定的子字符串,则命中此规则。大小写不敏感。
|
||||
一个 json object,键名字和值皆为字符串,用于检测流量的属性值。当 HTTP headers 包含所有指定的键,并且值包含指定的子字符串,则命中此规则。键大小写不敏感。值支持使用正则表达式。
|
||||
|
||||
目前只有 http 入站代理会设置这一属性。
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ The `sniffing` option in the inbound proxy must be enabled to detect the protoco
|
|||
|
||||
`attrs`: object
|
||||
|
||||
A json object with string keys and values, used to detect the HTTP headers of the traffic. It matches when all specified keys exist in the header and corresponding values are a substring of the header value, case in-sensitive.
|
||||
A json object with string keys and values, used to detect the HTTP headers of the traffic. It matches when all specified keys exist in the header and corresponding values are a substring of the header value. The key is case in-sensitive. You can use regex to match with value.
|
||||
|
||||
Currently, only the inbound HTTP proxy sets this attribute.
|
||||
|
||||
|
|
Loading…
Reference in New Issue