This code easily implements object oriented apache-2.0 handlers with C including all the standard phases of the request cycle, input filters, output filters, and protocol handlers.
This is a big improvement for a number of reasons: - C modules now only need pure C , with no kludges to allow apache hooks to invoke C methods.
- All request phases and filtering phases are exposed cleanly through object oriented method invocations.
- The core structures (e.g. request_rec) are objectified to encapsulate functionality and provide a clean api.
- Because mod_cplusplus only instanciates your objects once per server, you can easily cache re-used data in the object and all requests to that child will benefit.
It implements whichever phases of the request you are interested in (e.g. check_user_id()) and point mod_cplusplus at it in the config file.