• Augusto Roman's avatar
    Add request placeholder support for querying request cookies. (#1392) · dc3efc93
    Augusto Roman authored
    * Add request placeholder support for querying request cookies.
    
    This adds the ability to query the request cookies for placeholders
    using the syntax "@cookiename".
    
    For example, this would allow rewriting based on a cookie:
      rewrite {
        if @version is 'dev'
        to /dev/index.html
      }
    
    * Switch cookie special char from @ to :
    
    * Switch special char for cookies from : to ~
    dc3efc93
replacer_test.go 5.47 KB