Update Transaction State Diagram

add 2 more API hooks, TS_HTTP_POST_REMAP_HOOK & TS_HTTP_PRE_REMAP_HOOK,
into state diagram.
TS_HTTP_PRE_REMAP_HOOK is new name of
TS_HTTP_READ_REQUEST_PRE_REMAP_HOOK since v2.1.5


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

Branch: refs/heads/master
Commit: b977ca50d7123b1bf096b2f4c136a623b9b2eda6
Parents: fe022ca
Author: Ethan Lai <yz...@yahoo.com>
Authored: Tue Dec 3 19:18:12 2013 +0100
Committer: Igor Galić <i.ga...@brainsware.org>
Committed: Tue Dec 3 19:18:12 2013 +0100

----------------------------------------------------------------------
 doc/sdk/http-hooks-and-transactions.en.rst            |  7 ++++++-
 .../http-hooks-and-transactions/adding-hooks.en.rst   | 14 +++++++++-----
 2 files changed, 15 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b977ca50/doc/sdk/http-hooks-and-transactions.en.rst
----------------------------------------------------------------------
diff --git a/doc/sdk/http-hooks-and-transactions.en.rst 
b/doc/sdk/http-hooks-and-transactions.en.rst
index 97c20c6..d23227d 100644
--- a/doc/sdk/http-hooks-and-transactions.en.rst
+++ b/doc/sdk/http-hooks-and-transactions.en.rst
@@ -80,7 +80,10 @@ digraph g{
   accept -> TS_HTTP_TXN_START_HOOK;
   TS_HTTP_TXN_START_HOOK -> "read req hdrs";
   "read req hdrs" -> TS_HTTP_READ_REQUEST_HDR_HOOK;
-  TS_HTTP_READ_REQUEST_HDR_HOOK -> "cache lookup";
+  TS_HTTP_READ_REQUEST_HDR_HOOK -> TS_HTTP_PRE_REMAP_HOOK;
+  TS_HTTP_PRE_REMAP_HOOK -> "remap request";
+  "remap request" -> TS_HTTP_POST_REMAP_HOOK;
+  TS_HTTP_POST_REMAP_HOOK -> "cache lookup";
   "cache lookup" -> DNS [label = "miss"];
   DNS -> TS_HTTP_OS_DNS_HOOK;
   TS_HTTP_OS_DNS_HOOK -> TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK; 
@@ -120,6 +123,8 @@ digraph g{
  
   TS_HTTP_TXN_START_HOOK [shape=box];
   TS_HTTP_READ_REQUEST_HDR_HOOK [shape = box];
+  TS_HTTP_PRE_REMAP_HOOK [shape = box];
+  TS_HTTP_POST_REMAP_HOOK [shape = box];
   TS_HTTP_OS_DNS_HOOK [shape = box];
   TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK[shape = box];
   TS_HTTP_SELECT_ALT_HOOK [shape = box];

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b977ca50/doc/sdk/http-hooks-and-transactions/adding-hooks.en.rst
----------------------------------------------------------------------
diff --git a/doc/sdk/http-hooks-and-transactions/adding-hooks.en.rst 
b/doc/sdk/http-hooks-and-transactions/adding-hooks.en.rst
index 3de9dc6..2f862e2 100644
--- a/doc/sdk/http-hooks-and-transactions/adding-hooks.en.rst
+++ b/doc/sdk/http-hooks-and-transactions/adding-hooks.en.rst
@@ -80,6 +80,15 @@ values for ``TSHttpHookID`` are:
     performing both authentication and blacklisting. Corresponds to the
     event ``TS_EVENT_HTTP_OS_DNS``.
 
+``TS_HTTP_POST_REMAP_HOOK``
+    Called immediately after remapping occurs, before cache lookup.
+    Corresponds to the event ``TS_EVENT_HTTP_POST_REMAP``.
+
+``TS_HTTP_PRE_REMAP_HOOK``
+    Called after the request header is read from the client, before any
+    remapping of the headers occurs. Corresponds to the event
+    ``TS_EVENT_HTTP_PRE_REMAP``.
+
 ``TS_HTTP_READ_CACHE_HDR_HOOK``
     Called immediately after the request and response header of a
     previously-cached object is read from cache. This hook is only
@@ -100,11 +109,6 @@ values for ``TSHttpHookID`` are:
     Called immediately after the request header is read from the client.
     Corresponds to the event ``TS_EVENT_HTTP_READ_REQUEST_HDR``.
 
-``TS_HTTP_READ_REQUEST_PRE_REMAP_HOOK``
-    Called after the request header is read from the client, before any
-    remapping of the headers occurs. Corresponds to the event
-    ``TS_EVENT_HTTP_READ_REQUEST_PRE_REMAP``.
-
 ``TS_HTTP_REQUEST_TRANSFORM_HOOK``
     See
     "`"Transformations" <../http-transformation-plugin#Transformations>`__

Reply via email to