On 20/11/2012, at 3:34 PM, Luca Rea <[email protected]> wrote:

> Hi James,
> how can I list all headers in the lua remap plugin?

Eventually I'd like the pairs() function to work on the headers table, so you 
would do this:

    url = request:url()
    for hdr, val in pairs(url.headers) do
        -- something
    end

Give it a try, but I don't think this is hooked up to the Lua runtime. You can 
insert, modify and delete headers (delete by setting them to nil). I don't have 
a good use case for iterating the headers other than debugging. If you can come 
up with a better reason, I'll look into adding the necessary support.

J

Reply via email to