Make the Subrequest start same time with main request

lehuyprox nginx-forum at
Fri Jul 9 07:05:32 UTC 2021

Hi All,

I have written the Nginx module using subrequest with the main request body,
and authorization based on the result of a subrequest 
(I consulted from and
But the subrequest start when the body read completely, so the delay time
occurs when the request body size bigger

How can I make the request body is sent to the sub server immediately as it
is received?
Can I replace the main request body with the response of the subrequest?

Huy Le

Posted at Nginx Forum:,292011,292011#msg-292011

More information about the nginx mailing list