AFAIK you do not control the order of filters, and when you are building a
filter, you deal with data on-the-fly, which means your filter might be
invoked with a partial response coming from other filters.
Moreover, the module needs to 'win' its selection on a specific event.
I suggest you read
Hi,
I have the following three directives:
location = /hello {
hello_world;
hola_mundo on;
bonjour_monde on;
}
hello_world is an nginx handler module that provides content “hello world”
hola_mundo and bonjour_monde are filters that add to the