4.2 Configuration Table
"configuration/configuration-table.ss" provides functions for reading, writing, parsing, and printing configuration-table structures.
The default configuration table S-expression file.
sexpr : list? |
This function converts a configuration-table from an S-expression.
(configuration-table->sexpr ctable) → list? |
ctable : configuration-table? |
This function converts a configuration-table to an S-expression.
`((port ,integer?) |
(max-waiting ,integer?) |
(initial-connection-timeout ,integer?) |
(default-host-table |
,host-table-sexpr?) |
(virtual-host-table |
(list ,symbol? ,host-table-sexpr?) |
...)) |
where a host-table-sexpr is:
`(host-table |
(default-indices ,string? ...) |
(log-format ,symbol?) |
(messages |
(servlet-message ,path-string?) |
(authentication-message ,path-string?) |
(servlets-refreshed ,path-string?) |
(passwords-refreshed ,path-string?) |
(file-not-found-message ,path-string?) |
(protocol-message ,path-string?) |
(collect-garbage ,path-string?)) |
(timeouts |
(default-servlet-timeout ,integer?) |
(password-connection-timeout ,integer?) |
(servlet-connection-timeout ,integer?) |
(file-per-byte-connection-timeout ,integer?) |
(file-base-connection-timeout ,integer)) |
(paths |
(configuration-root ,path-string?) |
(host-root ,path-string?) |
(log-file-path ,path-string?) |
(file-root ,path-string?) |
(servlet-root ,path-string?) |
(mime-types ,path-string?) |
(password-authentication ,path-string?))) |
path : path-string? |
This function reads a configuration-table from path.
(write-configuration-table ctable path) → void |
ctable : configuration-table? |
path : path-string? |
This function writes a configuration-table to path.