You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/11/03 13:27:58 UTC
[jira] [Work logged] (TS-4724) Adding/creating new lua APIs:
"ts.server_request.set_url_host", "ts.server_request.get_url_host",
"ts.server_request.set_url_scheme", and "ts.server_request.get_url_scheme "
[ https://issues.apache.org/jira/browse/TS-4724?focusedWorklogId=31524&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-31524 ]
ASF GitHub Bot logged work on TS-4724:
--------------------------------------
Author: ASF GitHub Bot
Created on: 03/Nov/16 13:27
Start Date: 03/Nov/16 13:27
Worklog Time Spent: 10m
Work Description: GitHub user brkishore opened a pull request:
https://github.com/apache/trafficserver/pull/1183
TS-4724: Added new server_request APIs to set/get host name and schem…
…e in ts-lua plugin.
(cherry picked from commit a6c7f3311895b1d342c32618638937626422fd04)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/brkishore/trafficserver TS-4724-BP-6.2.x
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/1183.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1183
----
commit 3c14e851448c7ea39e41f8527206e61cd7d748ab
Author: rb304g <rb...@att.com>
Date: 2016-08-23T19:05:45Z
TS-4724: Added new server_request APIs to set/get host name and scheme in ts-lua plugin.
(cherry picked from commit a6c7f3311895b1d342c32618638937626422fd04)
----
Issue Time Tracking
-------------------
Worklog Id: (was: 31524)
Time Spent: 4.5h (was: 4h 20m)
> Adding/creating new lua APIs: "ts.server_request.set_url_host", "ts.server_request.get_url_host", "ts.server_request.set_url_scheme", and "ts.server_request.get_url_scheme "
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TS-4724
> URL: https://issues.apache.org/jira/browse/TS-4724
> Project: Traffic Server
> Issue Type: Improvement
> Components: Lua
> Reporter: Rajendra Kishore Bonumahanti
> Fix For: 7.0.0
>
> Time Spent: 4.5h
> Remaining Estimate: 0h
>
> Create new lua APIs "ts.server_request.set_url_host", "ts.server_request.get_url_host", "ts.server_request.set_url_scheme", and "ts.server_request.get_url_scheme " to Set/Get scheme and host name in the server request to next tier.
> These APIs are useful to remove scheme and host name in the request to parent, which help to have a parent remap.config entry similar to child cache. This makes provisioning more meaningful and easy at both parent and child.
> With this fix, the GET request to parent will change..
> from:
> +++++++++ Proxy's Request +++++++++
> -- State Machine Id: 5593
> GET http://origin.com/dir1/a.txt HTTP/1.1^M
> User-Agent: curl/7.29.0^M
> Host: abc.com^M
> Accept: */*^M
> Client-ip: 135.xx.xx.xx^M
> X-Forwarded-For: 135.xx.xx.xx^M
> To:
> +++++++++ Proxy's Request +++++++++
> -- State Machine Id: 5593
> GET /dir1/a.txt HTTP/1.1^M
> User-Agent: curl/7.29.0^M
> Host: abc.com^M
> Accept: */*^M
> Client-ip: 135.xx.xx.xx^M
> X-Forwarded-For: 135.xx.xx.xx^M
> This will enable to have parent and child's remap.config entries as below:
> map http://abc.com http://origin.com @plugin=tslua.so @pparam=/opt/trafficserver/etc/trafficserver/lua/test.lua
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)