lua-nginx-module
lua-nginx-module copied to clipboard
added an API for getting and setting the keepalive property of a request
@aviramc Thank you for the update! Yeah, sometimes I found myself want this feature as well :) I'll look into this as soon as I can :)
@aviramc Will you mind adding some test cases for this feature? Otherwise it looks good to me :)
@agentzh , I've added some test cases
Any update on this?
@StephanDollberg What's you use case of this? Maybe you should just manipulate the Connection request header via ngx.req.set_header() and ngx.req.clear_header()?
I'm in need of this feature as well.
@agentzh r->keepalive is set early enough that by the time you're far enough along to change the header that it's already set and won't be affected by changes to the header (or even by changes to connection_type).
This pull request is now in conflict :(