path : string This extracts the request's URL path, which starts at the first slash and ends before the question mark (without the host part). A typical use is with prefetch-capable caches, and with portals which need to aggregate multiple information from databases and keep them in caches. Note that with outgoing caches, it would be wiser to use "url" instead. With ACLs, it's typically used to match exact file names (eg: "/login.php"), or directory parts using the derivative forms. See also the "url" and "base" fetch methods. 路径: 字符串 提取请求的URL路径,从第一个斜线开始和在问号前结束 http://192.168.32.101:3000/api/getcode?env=zj&phone=18072722237(没有主机部分) 一个典型的使用是预取缓存,和需要聚合多个数据库信息和把它们保持在caches里。 hdr(<name>) The HTTP header <name> will be looked up in each HTTP request. Just as with the equivalent ACL 'hdr()' function, the header name in parenthesis is not case sensitive. If the header is absent or if it does not contain any value, the roundrobin algorithm is applied instead. HTTP 头<name> 会在每个HTTP请求里查找,等效于ACL 'hdr()' function, header name 在插入部分是不区分大小写的,如果header 是不存在的 或者如果它不包含任何值 所有的ACL-指定的标准说明一个默认的匹配方法,最常见的是,那些标准是有把原始的例子获取方法和匹配方法联系在一起。 比如, "hdr_beg" 应用"beg"匹配 例子 检索使用"hdr" 获取方法。