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 2021/11/08 23:13:31 UTC

[trafficserver] branch 9.2.x updated: Update control mechanism changes in lua plugin (#8482)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new cadb2cf  Update control mechanism changes in lua plugin (#8482)
cadb2cf is described below

commit cadb2cf5c1ddb5ac71001cc0de4033d76e180717
Author: Kit Chan <ki...@apache.org>
AuthorDate: Mon Nov 1 16:31:52 2021 -0700

    Update control mechanism changes in lua plugin (#8482)
    
    (cherry picked from commit 8371a243d3893fd1d224941607746f9c334554bb)
---
 doc/admin-guide/plugins/lua.en.rst | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/doc/admin-guide/plugins/lua.en.rst b/doc/admin-guide/plugins/lua.en.rst
index 62c280b..c6e505b 100644
--- a/doc/admin-guide/plugins/lua.en.rst
+++ b/doc/admin-guide/plugins/lua.en.rst
@@ -4166,11 +4166,11 @@ ts.http.cntl_get
 
 **context:** do_remap/do_os_response or do_global_* or later.
 
-**description:** This function can be used to retrieve the value of control channel.
+**description:** This function can be used to retrieve the value of various control mechanisms in HTTP transaction.
 
 ::
 
-    val = ts.http.cntl_get(TS_LUA_HTTP_CNTL_GET_LOGGING_MODE)
+    val = ts.http.cntl_get(TS_LUA_HTTP_CNTL_LOGGING_MODE)
 
 
 :ref:`TOP <admin-plugins-ts-lua>`
@@ -4181,30 +4181,33 @@ ts.http.cntl_set
 
 **context:** do_remap/do_os_response or do_global_* or later.
 
-**description:** This function can be used to set the value of control channel.
+**description:** This function can be used to set the value of various control mechanisms in HTTP transaction.
 
 Here is an example:
 
 ::
 
     function do_remap()
-        ts.http.cntl_set(TS_LUA_HTTP_CNTL_SET_LOGGING_MODE, 0)      -- do not log the request
+        ts.http.cntl_set(TS_LUA_HTTP_CNTL_LOGGING_MODE, 0)      -- do not log the request
         return 0
     end
 
 
 :ref:`TOP <admin-plugins-ts-lua>`
 
-Http control channel constants
-------------------------------
+Http control mechanism constants
+--------------------------------
 **context:** do_remap/do_os_response or do_global_* or later
 
 ::
 
-    TS_LUA_HTTP_CNTL_GET_LOGGING_MODE
-    TS_LUA_HTTP_CNTL_SET_LOGGING_MODE
-    TS_LUA_HTTP_CNTL_GET_INTERCEPT_RETRY_MODE
-    TS_LUA_HTTP_CNTL_SET_INTERCEPT_RETRY_MODE
+    TS_LUA_HTTP_CNTL_LOGGING_MODE
+    TS_LUA_HTTP_CNTL_INTERCEPT_RETRY_MODE
+    TS_LUA_HTTP_CNTL_RESPONSE_CACHEABLE
+    TS_LUA_HTTP_CNTL_REQUEST_CACHEABLE
+    TS_LUA_HTTP_CNTL_SERVER_NO_STORE
+    TS_LUA_HTTP_CNTL_TXN_DEBUG
+    TS_LUA_HTTP_CNTL_SKIP_REMAPPING
 
 
 :ref:`TOP <admin-plugins-ts-lua>`