Loadable ModulesEmbeddable web servers have several competing goals:
AppWeb ModulesAppWeb heavily uses loadable modules to componentize its functionality. The following modules are delivered with AppWeb:
Dynamic and Static LoadingAn AppWeb loadable module is a discrete unit of functionality that may be linked into AppWeb to enhance the core HTTP server. Loadable Modules may be delivered in two forms:
LoadModule DirectiveThe AppWeb configuration file specifies which modules to load and in what order. As some modules may depend on the functionality provided by other modules -- order does matter. The LoadModule directive will load a modules and activate it for processing. If the modules is already loaded (either statically or dynamically), the load directive will have no effect.LoadModule myModule lib/libmyModule On Windows, this directive will load libmyModule.dll. On Linux, it will load libmyModule.so. If the module is statically linked into AppWeb, the LoadModule directive will not need to load it. AppWeb will look for the module in the directory specified relative to the directory defined by the ServerRoot. AppWeb will search other directories if a LoadModulePath directive is specified. This will nominate a set of directories to search in order when attempting to locate the module. LoadModulePath ../../bin ../../bin/Debug ../../bin/Release For information about how to create a loadable module, see Creating AppWeb Modules. |
Quick NavAppWeb ModulesDynamic and Static Loading LoadModule Directive See Also
User Guide Overview |