You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ki...@apache.org on 2016/02/06 08:22:40 UTC
trafficserver git commit: TS-4163: fix ts_lua documentation for
incorrect context information for hook point constants. This closes #451
Repository: trafficserver
Updated Branches:
refs/heads/master e2720029e -> 88a9ee6de
TS-4163: fix ts_lua documentation for incorrect context information for hook point constants. This closes #451
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/88a9ee6d
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/88a9ee6d
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/88a9ee6d
Branch: refs/heads/master
Commit: 88a9ee6de2bc6941810597fb720dbd9a843fb80c
Parents: e272002
Author: Kit Chan <ki...@apache.org>
Authored: Fri Feb 5 23:22:31 2016 -0800
Committer: Kit Chan <ki...@apache.org>
Committed: Fri Feb 5 23:22:31 2016 -0800
----------------------------------------------------------------------
doc/admin-guide/plugins/ts_lua.en.rst | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/88a9ee6d/doc/admin-guide/plugins/ts_lua.en.rst
----------------------------------------------------------------------
diff --git a/doc/admin-guide/plugins/ts_lua.en.rst b/doc/admin-guide/plugins/ts_lua.en.rst
index 2cc8dc2..daed7f7 100644
--- a/doc/admin-guide/plugins/ts_lua.en.rst
+++ b/doc/admin-guide/plugins/ts_lua.en.rst
@@ -356,7 +356,6 @@ instead.
Hook point constants
--------------------
-**context:** do_remap or later
::
@@ -376,6 +375,31 @@ Hook point constants
These constants are usually used in ts.hook method call.
+Additional Information:
+::
+
+ +------------------------------------+------------------------------------+----------------------+---------------------+
+ | Hook Point | Lua Hook Point constant | Hook function be | Hook function be |
+ | | | registered within | registered within |
+ | | | do_remap() via | global context via|
+ | | | ts.hook()? | ts.hook()? |
+ +------------------------------------+------------------------------------+----------------------+---------------------+
+ | TS_HTTP_TXN_START_HOOK | TS_LUA_HOOK_TXN_START | NO | YES |
+ | TS_HTTP_READ_REQUEST_HDR_HOOK | TS_LUA_HOOK_READ_REQUEST_HDR | NO | YES |
+ | TS_HTTP_PRE_REMAP_HOOK | TS_LUA_HOOK_PRE_REMAP | NO | YES |
+ | TS_HTTP_POST_REMAP_HOOK | TS_LUA_HOOK_POST_REMAP | YES | YES |
+ | TS_HTTP_SELECT_ALT_HOOK | TS_LUA_HOOK_SELECT_ALT | NO | NO |
+ | TS_HTTP_READ_CACHE_HDR_HOOK | TS_LUA_HOOK_READ_CACHE_HDR | YES | YES |
+ | TS_HTTP_OS_DNS_HOOK | TS_LUA_HOOK_OS_DNS | YES | YES |
+ | TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK | TS_LUA_HOOK_CACHE_LOOKUP_COMPLETE | YES | YES |
+ | TS_HTTP_SEND_REQUEST_HDR_HOOK | TS_LUA_HOOK_SEND_REQUEST_HDR | YES | YES |
+ | TS_HTTP_READ_RESPONSE_HDR_HOOK | TS_LUA_HOOK_READ_RESPONSE_HDR | YES | YES |
+ | TS_HTTP_SEND_RESPONSE_HDR_HOOK | TS_LUA_HOOK_SEND_RESPONSE_HDR | YES | YES |
+ | TS_HTTP_REQUEST_TRANSFORM_HOOK | TS_LUA_REQUEST_TRANSFORM | YES | YES |
+ | TS_HTTP_RESPONSE_TRANSFORM_HOOK | TS_LUA_RESPONSE_TRANSFORM | YES | YES |
+ | TS_HTT_TXN_CLOSE_HOOK | TS_LUA_HOOK_TXN_CLOSE | YES | YES |
+ +------------------------------------+------------------------------------+----------------------+---------------------+
+
`TOP <#ts-lua-plugin>`_
ts.ctx