Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Expose url args encode/decode functions #32

Open
mikz opened this issue Jan 5, 2015 · 1 comment
Open

Expose url args encode/decode functions #32

mikz opened this issue Jan 5, 2015 · 1 comment

Comments

@mikz
Copy link
Contributor

mikz commented Jan 5, 2015

Middleware should have access to ngx.decode_args and ngx.encode_args as args.encode and args.decode. Maybe args is not the right name.

/cc @picsoung @kikito

@kikito
Copy link
Contributor

kikito commented Jan 5, 2015

args is a bad name for several things. In singular (arg) it's actually a kind-of-implicit name for functions (like self) in Lua (this functionality seems to be deprecated, but I am not 100% sure).

I would go with uri.encode_query and uri.decode_query. But then the user can not use uri as a variable name (well, he/she can, but then it masks the lib)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants