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 streaming API #291

Closed
wants to merge 20 commits into from

Conversation

aviramc
Copy link

@aviramc aviramc commented Oct 7, 2013

Streaming subrequest API - Added the ability to perform a 'streaming' subrequest, using ngx.location.capture_stream, meaning that the main request and the subrequest would run simultaneously. This is still preliminary, thus the feature is protected by a C macro. To enable it on compile time, the option '-DNGX_LUA_CAPTURE_DOWN_STREAMING' should be given to GCC.

For more information about the streaming subrequest API, go to
https://groups.google.com/forum/?hl=en#!topic/openresty-en/2M6Z9BNtufQ

The is a part of pull request #286

Aviram and others added 20 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.
Previously, the resume handler was set to ngx_http_lua_subrequest_resume even when the subrequest is streaming, meaning the Lua code would return from a wrong context.
Fixed and tested.
@aviramc aviramc closed this Apr 1, 2015
@aviramc aviramc deleted the subrequest-streaming branch April 1, 2015 07:20
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.

1 participant