On 20/11/2012, at 6:41 AM, Luca Rea <[email protected]> wrote: > Hi James, > I was looking for data available inside lua plugins, like URL request, > headers, method, cache, and so on... but I can't find the right way to get > them. > > I've extracted the following list: > http://apaste.info/nur5
Nice list! > Is it complete or I miss something? How can I get other variables I need? In a remap plugin, you get these from the request object which is passed as the first (only!) argument to the remap() function. The remap example shows you how to do this: https://github.com/apache/trafficserver/blob/master/plugins/experimental/lua/examples/remap.lua You can't do any cache manipulations yet, but you can examine and modify the request header and the HTTP headers. Feel free to file bugs for new APIs ... the current set is very minimal :) J
