You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2015/08/17 23:56:46 UTC

trafficserver git commit: Clarify the default hook behavior in header_rewrite

Repository: trafficserver
Updated Branches:
  refs/heads/master 87b8e5f81 -> ef80cb9c4


Clarify the default hook behavior in header_rewrite


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ef80cb9c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ef80cb9c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ef80cb9c

Branch: refs/heads/master
Commit: ef80cb9c4b22161f7df99fb6f05227b1cf2d3f6f
Parents: 87b8e5f
Author: Leif Hedstrom <zw...@apache.org>
Authored: Mon Aug 17 15:56:40 2015 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Mon Aug 17 15:56:40 2015 -0600

----------------------------------------------------------------------
 doc/reference/plugins/header_rewrite.en.rst | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ef80cb9c/doc/reference/plugins/header_rewrite.en.rst
----------------------------------------------------------------------
diff --git a/doc/reference/plugins/header_rewrite.en.rst b/doc/reference/plugins/header_rewrite.en.rst
index 3b69860..84c2e13 100644
--- a/doc/reference/plugins/header_rewrite.en.rst
+++ b/doc/reference/plugins/header_rewrite.en.rst
@@ -136,7 +136,7 @@ other conditions are specified.
 These conditions have to be first in a ruleset, and you can only have one in
 each rule. This implies that a new hook condition starts a new rule as well.::
 
-  cond %{READ_RESPONSE_HDR_HOOK}   (this is the default hook)
+  cond %{READ_RESPONSE_HDR_HOOK}   (this is the default hook for global rules)
   cond %{READ_REQUEST_HDR_HOOK}
   cond %{READ_REQUEST_PRE_REMAP_HOOK}
   cond %{SEND_REQUEST_HDR_HOOK}
@@ -144,7 +144,11 @@ each rule. This implies that a new hook condition starts a new rule as well.::
 
 For remap.config plugin instanations, the default hook is named
 REMAP_PSEUDO_HOOK. This can be useful if you are mixing other hooks in a
-configuration, but being the default it is also optional.
+configuration, but being the default it is also optional. This hook is
+executed directly as part of the remapping phase.
+
+Note that for configurations that are global, i.e. setup via
+``plugin.config``, the default hook is READ_RESPONSE_HDR_HOOK.
 
 CLIENT-URL, URL, URL-FROM, and URL-TO
 -------------------------