Update run-knots-web-server docstring
This commit is contained in:
parent
675d8c3258
commit
c1796f0081
1 changed files with 2 additions and 2 deletions
|
@ -353,7 +353,7 @@ on the procedure being called at any particular time."
|
||||||
(write-response-exception-handler
|
(write-response-exception-handler
|
||||||
default-write-response-exception-handler)
|
default-write-response-exception-handler)
|
||||||
(connection-idle-timeout 60))
|
(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
|
HANDLER should be a procedure that takes one argument, the HTTP
|
||||||
request and returns two values, the response and response body.
|
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)))
|
(let ((body (read-request-body request)))
|
||||||
(values '((content-type . (text/plain)))
|
(values '((content-type . (text/plain)))
|
||||||
\"Hello, World!\")))
|
\"Hello, World!\")))
|
||||||
(run-server handler)
|
(run-knots-web-server handler)
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
The response and body will be run through ‘sanitize-response’
|
The response and body will be run through ‘sanitize-response’
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue