Michael Ludwig schrieb am 23.03.2010 um 00:50:43 (+0100): > What's the purpose and what are the use cases for the methods > get_handler and set_handler available from Apache2::RequestUtil > and Apache2::ServerUtil?
My desire to believe in the wisdom of the designers of the API has kept me busy thinking about this. Considering that we have: * get_handlers * set_handlers * push_handlers It occurred to me that push_handlers could be implemented in terms of get_handlers and set_handlers; and so could a merely hypothetical unshift_handlers, which isn't there, and that could be the raison d'ĂȘtre of get_handlers. Maybe dynamic reconfiguration on a per-request basis as in this example for a MyApache2::SendEmail handler [1] is what this is about. Plus the same kind of thing for the whole server. Maybe you would like to retire a certain handler at a given point in time, or on some condition being met; you would then call set_handlers to install a new handler and not have to do additional maintenance. Any thoughts or comments you might have are welcome. -- Michael Ludwig