httpd::config(n) 1.0 "Tcl Web Server"

NAME

httpd::config - Configuration management

SYNOPSIS

package require httpd::config ?1.0?

config::init config aname
config::cget index
config::setValue (key value)...

DESCRIPTION

The package httpd::config is a core module providing all other modules of the web server with commands to define and read global configuration data.

Public API

config::init config aname
Retrieves a list of resources from disk, specifically the file config. The array variable aname contains the default configuration values to use, and the new, current values after the processing of the configuration file has completed.

config::cget index
Returns the value for configuration key/variable index. The empty string will be returned if there is no such configuration variable.

config::setValue (key value)...
Goes through the specified configuration keys, assigns them the given values, and then stores the changed information back to disk. This call will fail if config::init has not been called before.

SEE ALSO

httpd

KEYWORDS

configuration, web server

COPYRIGHT

Copyright © 2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>