Stefano wrote:
you can't currently set_handlers() for the current phase. sorry. there was a patch floating around to do this, but it was never integrated.Hello,This is a question about the correct use of set_handlers request method. I have some handlers stacked by the first one content handler; one of them processing the request needs to redirect and then close the HTTP response with a HTTP_MOVED_PERMANENTLY; so I thought that the following stacked handlers have to be removed from the stack with a $r->set_handlers('PerlHandler' => undef) in a way such: $r->content_type('text/html') ; $r->header_out('Location', '/go/there') ; $r->set_handlers('PerlHandler' => undef) ;
that should terminate the phase entirely and keep the other handlers from running - no need to explicitly undef the stack anyway.return HTTP_MOVED_PERMANENTLY ;
HTH
--Geoff