Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
02.11.2019, 06:23
(This post was last modified: 02.11.2019, 06:24 by buuuudzik.)
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
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
Hi,
Can you explain what you try to achieve?
BR,
Erwin
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
Of course, I want prepare a file config.lp which would handle the GET and POST requests based on request method. As simple as that
Done is better than perfect
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
Use ngx.var.request_method
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
02.11.2019, 08:41
(This post was last modified: 02.11.2019, 09:32 by buuuudzik.)
Perfect. Thank you all
How can I set header for response?
Done is better than perfect