[
https://issues.apache.org/jira/browse/TS-4990?focusedWorklogId=31505&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-31505
]
ASF GitHub Bot logged work on TS-4990:
--------------------------------------
Author: ASF GitHub Bot
Created on: 03/Nov/16 04:42
Start Date: 03/Nov/16 04:42
Worklog Time Spent: 10m
Work Description: Github user jpeach commented on a diff in the pull
request:
https://github.com/apache/trafficserver/pull/1127#discussion_r86285707
--- Diff: doc/admin-guide/plugins/ts_lua.en.rst ---
@@ -1424,6 +1460,38 @@ We will get the output:
`TOP <#ts-lua-plugin>`_
+ts.server_request.server_addr.set_addr
+--------------------------------------
+**syntax:** *ts.server_request.server_addr.set_addr()*
+
+**context:** no later than function @ TS_LUA_HOOK_OS_DNS hook point
+
+**description**: This function can be used to set socket address of the
origin server.
+
+The ts.server_request.server_addr.set_addr function requires three inputs,
ip is a string, port and family is number.
+
+Here is an example:
+
+::
+
+ function do_global_read_request()
+ ts.server_request.server_addr.set_addr("192,168,231,17", 80,
TS_LUA_AF_INET)
--- End diff --
Commas?
Issue Time Tracking
-------------------
Worklog Id: (was: 31505)
Time Spent: 1h 40m (was: 1.5h)
> Add support for new apis in ts_lua
> ----------------------------------
>
> Key: TS-4990
> URL: https://issues.apache.org/jira/browse/TS-4990
> Project: Traffic Server
> Issue Type: Improvement
> Components: Lua, Plugins
> Reporter: Kit Chan
> Assignee: Kit Chan
> Fix For: 7.1.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> Want to add support for the following apis in ts_lua plugin
> TSHttpTxnParentProxyGet
> TSHttpTxnParentProxySet
> TSHttpTxnClientProtocolStackGet
> TSHttpTxnServerPush
> TSHttpTxnIsWebsocket
> TSHttpTxnPluginTagGet
> TSHttpTxnServerAddrSet
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)