From c1796f0081cef266cbbc494cbf0791b4105d5b89 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 25 Jan 2025 18:17:38 +0000 Subject: [PATCH] Update run-knots-web-server docstring --- knots/web-server.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/knots/web-server.scm b/knots/web-server.scm index bd0d9f9..c5ec246 100644 --- a/knots/web-server.scm +++ b/knots/web-server.scm @@ -353,7 +353,7 @@ on the procedure being called at any particular time." (write-response-exception-handler default-write-response-exception-handler) (connection-idle-timeout 60)) - "Run the fibers web server. + "Run the knots web server. HANDLER should be a procedure that takes one argument, the HTTP request and returns two values, the response and response body. @@ -365,7 +365,7 @@ For example, here is a simple \"Hello, World!\" server: (let ((body (read-request-body request))) (values '((content-type . (text/plain))) \"Hello, World!\"))) - (run-server handler) + (run-knots-web-server handler) @end example The response and body will be run through ‘sanitize-response’