This software enables the use of Apache::* modules with CGI::Application, avoiding interference. It can be used to streamline web applications built with CGI::Application and ensure smooth functionality.
To use the plugin, users must first use base 'CGI::Application' and then include CGI::Application::Plugin::Apache qw(:all) in their code. Once implemented, users will have access to Apache::* modules without interference.
The plugin does two things: it uses Apache::Request as the $self->query object, eliminating the need to create a CGI.pm object, and it overrides the way CGI::Application creates and prints its HTTP headers. Previously, CGI::Application used CGI.pm's header() and redirect() methods. Now, Apache->send_http_header() method is used instead, providing an alternative with added benefits. This enables the use of other Apache::* modules that may also create outgoing headers (such as Apache::Cookie) without conflating them with CGI::Application.
This plugin is an excellent solution to one of CGI::Application's most significant challenges. It provides a more efficient means of using Apache::* modules and enables their use without interfering with other modules. It is highly recommended for those seeking to streamline their code and optimize performance.
Version 1.01: N/A