Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing not only request into procedure #72

Open
fsitedev opened this issue Dec 28, 2016 · 0 comments
Open

Passing not only request into procedure #72

fsitedev opened this issue Dec 28, 2016 · 0 comments
Assignees
Labels
enhancement question Further information is requested

Comments

@fsitedev
Copy link

Currently we have to use 'tnt_pass_http_request' directive for passing the request into procedure. Alternatively it would be convenient to have the directive controlling arguments passing into procedure. So you can pass only that you really need.

Example:

# Passing xxx, yyy and zzz params from request
tnt_method_args $arg_xxx $arg_yyy $arg_zzz

# Passing remote address and cookie 'session'
tnt_method_args $remote_addr $cookie_session

p.s.
'tnt_method_args' directive name used only for example. Maybe it's better to name it 'tnt_pass_args'

p.p.s
I don't remember exactly, whether nginx stores unescaping values in $arg_* variables or keeps them raw. If not so, it would be nice to have an ability to force unescaping for all variables passing into procedure

@dedok dedok self-assigned this Jan 19, 2017
@dedok dedok added this to the v0.2.4 milestone Jan 19, 2017
@dedok dedok added the question Further information is requested label Jan 7, 2018
@dedok dedok removed this from the v2.6 milestone Jan 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants