Rudiments
httpserverapimain.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information
3 
4 #ifndef RUDIMENTS_HTTPSERVERMAIN_H
5 #define RUDIMENTS_HTTPSERVERMAIN_H
6 
7 // Include this file in the .cpp file that contains your functions
8 // httpModuleInit(), httpModuleMain(), and httpModuleExit().
9 //
10 // Define HTTP_MODULE_CGI to compile your program as a CGI.
11 // Define HTTP_MODULE_APACHE to compile your program as an Apache module.
12 //
13 // To enable an Apache module, add directives like the following to the
14 // Apache configuration:
15 //
16 // LoadModule example_module modules/mod_example.so
17 // AddHandler example ".mvc"
18 //
19 // In this example, mod_example.so handles urls where the "page" extension is
20 // ".mvc", such as http://site/example.mvc or http://site/example.mvc/path
21 
22 #if defined(HTTP_MODULE_CGI)
23  #include <rudiments/private/cgimodule.h>
24 #elif defined(HTTP_MODULE_APACHE)
25  #include <rudiments/private/apachemodule.h>
26 #endif
27 
28 #endif