Welcome! Log In Create A New Profile

Advanced

Re: how to get response headers from internal-requests?

June 09, 2014 09:30PM
Hello,

http://wiki.nginx.org/HttpLuaModule#ngx.location.capture

res.header holds all the response headers of the subrequest and it is a normal Lua table. For multi-value response headers, the value is a Lua (array) table that holds all the values in the order that they appear. For instance, if the subrequest response headers contain the following lines:

Set-Cookie: a=3
Set-Cookie: foo=bar
Set-Cookie: baz=blah
Then res.header["Set-Cookie"] will be evaluated to the table value {"a=3", "foo=bar", "baz=blah"}.
Subject Author Posted

how to get response headers from internal-requests?

Amikam Snir June 09, 2014 02:20PM

Re: how to get response headers from internal-requests?

arteomp June 09, 2014 09:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 102
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready