| MaState | Current configuration parse state. |
| void | maAddDirective(cchar *directive, MaDirective proc) |
| Define a new appweb configuration file directive. | |
| int | maConfigureServer(cchar *configFile, cchar *home, cchar *documents, cchar *ip, int port) |
| Configure a web server. | |
| char* | maGetNextArg(char *s, char **tok) |
| Get the argument in a directive. | |
| int | maLoadModule(cchar *name, cchar *libname) |
| Load an appweb module. | |
| int | maLoadModules(void) |
| Load default modules. | |
| int | maParseConfig(cchar *path) |
| Parse an Appweb configuration file. | |
| int | maParseFile(MaState *state, cchar *path) |
| Parse a configuration file. | |
| MaState* | maPopState(MaState *state) |
| Pop the state. | |
| MaState* | maPushState(MaState *state) |
| Push the state. | |
| int | maRunSimpleWebServer(cchar *ip, int port, cchar *home, cchar *documents) |
| Create and run a simple web server listening on a single IP address. | |
| int | maRunWebServer(cchar *configFile) |
| Create and run a web server based on a configuration file. | |
| bool | maTokenize(MaState *state, cchar *str, cchar *fmt, ...) |
| Tokenize a string based on route data. |
| MaDirective | Appweb configuration file directive parsing callback function. |
| #define | MA_PARSE_NON_SERVER 0x1 |
| Command file being parsed by a utility program. | |
| #define | MA_UNLOAD_TIMEOUT "5mins" |
| Default module inactivity timeout. |
Current configuration parse state.
| HttpAuth * | auth | Quick alias for route->auth. | |
| char * | configDir | Directory containing config file. | |
| struct MaState * | current | Current state. | |
| char * | data | Config data (managed). | |
| int | enabled | True if the current block is enabled. | |
| char * | endpoints | Virtual host endpoints. | |
| MprFile * | file | Config file handle. | |
| char * | filename | Config file name. | |
| int | flags | Parsing flags. | |
| HttpHost * | host | Current host. | |
| char * | key | Current directive being parsed. | |
| int | lineNumber | Current line number. | |
| struct MaState * | prev | Previous (inherited) state. | |
| HttpRoute * | route | Current route. | |
| struct MaState * | top | Top level state. |
Define a new appweb configuration file directive.
| directive | Directive name. |
| proc | Directive callback procedure of the type MaDirective |
Configure a web server.
| configFile | File name of the Appweb configuration file (appweb.conf) that defines the web server configuration. |
| home | Admin directory for the server. This overrides the value in the config file. |
| documents | Default directory for web documents to serve. This overrides the value in the config file. |
| ip | IP address to listen on. This overrides the value specified in the config file. |
| port | Port address to listen on. This overrides the value specified in the config file. |
Get the argument in a directive.
| s | String to examine. |
| tok | Next token reference. |
Load an appweb module.
| name | User name. Must be defined in the system password file. |
| libname | Library path name. |
Load default modules.
Parse an Appweb configuration file.
| path | Configuration file pathname. |
Parse a configuration file.
| state | Current state level object. |
| path | Filename to parse. |
Pop the state.
| state | Current state. |
Push the state.
| state | Current state. |
Create and run a simple web server listening on a single IP address.
| ip | IP address on which to listen. Set to "0.0.0.0" to listen on all interfaces. |
| port | Port number to listen to. |
| home | Home directory for the web server. |
| documents | Directory containing the documents to serve. |
Create and run a web server based on a configuration file.
| configFile | File name of the Appweb configuration file (appweb.conf) that defines the web server configuration. |
Tokenize a string based on route data.
| state | Current config parsing state. |
| str | String to expand. |
| fmt | Format string specifier Supported tokens:
|
Appweb configuration file directive parsing callback function.
| state | Current config parse state. |
| key | Directive key name. |
| value | Directive key value. |