clarifying default config params for http-server

This commit is contained in:
Alex Shinn 2019-01-06 08:45:48 +08:00
parent ec0b6e98f6
commit 003d3d3328

View file

@ -12,9 +12,17 @@
;;> and a \scheme{restart} procedure to restart the servlets with a new ;;> and a \scheme{restart} procedure to restart the servlets with a new
;;> request. ;;> request.
;;> ;;>
;;> The default config parameters are:
;;>
;;> \itemlist[
;;> \item{\scheme{port}: the port to listen on, default 8000}
;;> \item{\scheme{doc-root}: the directory to serve files from, default the directory of the config file, or "." if no config}
;;> \item{\scheme{index-regexp}: an SRE matching index files to serve in place of a directory listing when browsing directories, default "index.html"}
;;> ]
;;>
;;> A simple page view counter could be run as: ;;> A simple page view counter could be run as:
;;> ;;>
;;> \example{ ;;> \scheme{
;;> (let ((count 0)) ;;> (let ((count 0))
;;> (run-http-server ;;> (run-http-server
;;> 8000 ;;> 8000