Hello!

On Tue, Dec 24, 2013 at 11:14 PM, honwel wrote:
> but ngx_http_subrequest() not supports POST method, so, What
> do I need to pay attention, if i just modify to :
>      sr->method = NGX_HTTP_POST
>     sr->http_version = r->http_version;
>     ...............
>
>     sr->method_name = r->method_name;
>     ???
>

Yeah, you can do something like that.

My Nginx modules ngx_echo, ngx_srcache, and ngx_lua all support custom
method names in their subrequests. See

  https://github.com/agentzh/echo-nginx-module#echo_subrequest_async

  https://github.com/agentzh/srcache-nginx-module#srcache_fetch

  https://github.com/chaoslawful/lua-nginx-module#ngxlocationcapture_multi

Merry Christmas!

Best regards,
-agentzh

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to