zoukankan      html  css  js  c++  java
  • haproxy hdr和path

    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" 获取方法。
       
       
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

  • 相关阅读:
    阿里规范
    阿里规范
    阿里规范
    sql 优化步骤
    事务的并发问题:脏读、幻读和不可重复读
    Hive 常见面试题(二)
    yield 的使用
    Java 线程状态
    Lambda 表达式推演全过程
    IDEA 代码自动补全/自动联想 功能
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199316.html
Copyright © 2011-2022 走看看