make && make check
Make check will fire up apache, install the modules from the example/ directory, and perform some request to verify they are all working. You can use these examples and the config snippets in test/t/conf/extra.conf to get started on your own.
What does a handler look like?
This example implements a content handler:
LoadCPPHandler test_handler libtest_handler.so
=================================================
#include "apache_handler.h"
class TestHandler : public ApacheHandler
{
public:
TestHandler(void) { };
~TestHandler(void) { };
int handler(ApacheRequestRec *pRequest);
};
int TestHandler::handler(ApacheRequestRec *pRequest)
{
pRequest->rprintf("\nThis handler is called for user %s", pRequest->user())
pRequest->rputs("\nLets Dump The Request!\n");
pRequest->dump();
return OK;
}
=================================================