[dev] http phase handler

Igor Sysoev is at rambler-co.ru
Wed Dec 5 22:37:23 MSK 2007

On Wed, Dec 05, 2007 at 08:27:56PM +0100, Manlio Perillo wrote:

> Igor Sysoev ha scritto:
> >[...]
> >>>In the context phase there may run a single defined content handler 
> >>>(perl,
> >>>proxy_pass, fastcgi_pass, memcached_pass, flv, empty_gif) or stack
> >>>of handlers: index, autoindex, dav, static.
> >>>
> >>>If a defined handler calls finally 
> >>>ngx_http_finalize_request(NGX_DECLINED),
> >>>then nginx goes to the stack of handlers. Now only perl can do this.
> >>>
> >>Ok.
> >>This should be possible with Python, too.
> >>But I can't see an useful application for this.
> >
> >For example, perl may handle POSTs and decline other to default stack.
> >
> What happens if the perl handler sends the headers and writes some data?

Two responses: perl's one and default's one.

Igor Sysoev

More information about the nginx mailing list