Hello!
On Sat, Jun 7, 2014 at 10:34 AM, Mathew Heard wrote:
> The purpose of this was to allow exact control over the flow body data of a
> request (and preferably its headers). e.g delaying
>
> Its for a friends research, for which I threw nginx up as a suggestion. For
> those curious he opted to do this via a standalone basic C HTTP proxy server
> since it doesn't easily fit into the nginx model.
>
You cannot do this in the nginx body filter, which is not designed for
this use pattern. But you can easily achieve this based on a proxy
atop ngx_lua's cosocket API where you have complete control over
everything in Lua. There may be some 3rd-party lua-resty-http*
libraries that already do something like this.
Regards,
-agentzh