From 003d3d33280975aacc3b9ffb09303a919ba013d4 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Sun, 6 Jan 2019 08:45:48 +0800 Subject: [PATCH] clarifying default config params for http-server --- lib/chibi/net/http-server.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/chibi/net/http-server.scm b/lib/chibi/net/http-server.scm index ab7a2a37..3cb2c110 100644 --- a/lib/chibi/net/http-server.scm +++ b/lib/chibi/net/http-server.scm @@ -12,9 +12,17 @@ ;;> and a \scheme{restart} procedure to restart the servlets with a new ;;> 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: ;;> -;;> \example{ +;;> \scheme{ ;;> (let ((count 0)) ;;> (run-http-server ;;> 8000