diff --git a/docs/config/routing.md b/docs/config/routing.md index c260445..90c9a65 100644 --- a/docs/config/routing.md +++ b/docs/config/routing.md @@ -157,7 +157,7 @@ > `attrs`: object -一个 json object,键名字和值皆为字符串,用于检测流量的属性值。当 HTTP headers 包含所有指定的键,并且值包含指定的子字符串,则命中此规则。大小写不敏感。 +一个 json object,键名字和值皆为字符串,用于检测流量的属性值。当 HTTP headers 包含所有指定的键,并且值包含指定的子字符串,则命中此规则。键大小写不敏感。值支持使用正则表达式。 目前只有 http 入站代理会设置这一属性。 diff --git a/docs/en/config/routing.md b/docs/en/config/routing.md index d99d367..1feee40 100644 --- a/docs/en/config/routing.md +++ b/docs/en/config/routing.md @@ -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.