This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

Request method in .lp file
Hi I'm searching a way to get info about request method in .lp file.

Probably it is in variable __ngx_req but how can I deal with userdata objects?
Done is better than perfect

Can you explain what you try to achieve?


Of course, I want prepare a file config.lp which would handle the GET and POST requests based on request method. As simple as thatWink
Done is better than perfect
Use ngx.var.request_method
Perfect. Thank you allWink

How can I set header for response?
Done is better than perfect

Forum Jump: