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

Subrequest API - method can be passed as a string #289

Closed
wants to merge 18 commits into from

Conversation

aviramc
Copy link

@aviramc aviramc commented Oct 7, 2013

In the ngx.location.capture and ngx.localtion.capture_multi APIs, the method option can now also be a string. If the string is an unknown method, the subrequest's method field is set to NGX_HTTP_UNKNOWN, and the method_name field is set to the given method name. The previous numeric method still works.

The is a part of pull request #286

Aviram and others added 17 commits April 24, 2013 10:36
…header that determines whether or not to replace underscores with hyphens.

Previously, underscores were replaced unconditionally.
Currently each of the functions has another boolean argument. If it's false, underscores would not be touched. If it's true, they would.
The default value of the argument is true.
…ptions), in which the only possible option currently is replace_underscores.
…eter as a string.

If the method string isn't a known Nginx method, it is still passed (and Nginx considers it as unknown).
@aviramc aviramc closed this Mar 30, 2015
@aviramc aviramc deleted the subrequest-methods branch March 30, 2015 11:31
@aviramc
Copy link
Author

aviramc commented Mar 30, 2015

Will open a new tidy pull request

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

Successfully merging this pull request may close these issues.

2 participants