Handler modules : Content Handler vs Content Phase Handler

goldfluss nginx-forum at nginx.us
Fri Sep 4 16:56:24 UTC 2015


Hello !
I'm developping some handler modules for nginx and I'm wondering why they
are two kinds of handlers :
- Content Phase Handler
- Content Handler

I read this interesting blog : http://www.nginxguts.com/2011/01/phases/
As far as I understood, the content handler could only be called once in a
location configuration and the content phase handler is called everytime.
Is there a reason to prefer one type instead of another?

My last question is if there is a solution to develop content phase handler
modules without calling them each time, but only if they are activated in
the nginx.conf file?

Thanks in advance for helping me to understand this !

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261433,261433#msg-261433



More information about the nginx mailing list