Version: 4.1.5
3.2 Setting Up Servlets
This module is used internally to build and load servlets. It may be useful to those who are trying to extend the server.
Creates a version 1 servlet that uses directory as its current directory, a timeout manager with a timeout timeout, and start as the request handler.
Creates a version 2 servlet that uses directory as its current directory, a manager as the continuation manager, and start as the request handler.
Creates a stateless web-server servlet that uses directory as its current directory and start as the request handler.
The modules that the Web Server needs to share with all servlets.
Equivalent to (-> path? servlet?).
Constructs a procedure that loads a servlet from the path in a namespace created with make-servlet-namespace,
using a timeout manager with timeouts-default-servlet as the default timeout (if no manager is given.)
3.2.1 Internal Servlet Representation
Instances of this structure hold the necessary parts of a servlet:
the custodian responsible for the servlet’s resources,
the namespace the servlet is executed within,
the manager responsible for the servlet’s continuations,
the current directory of the servlet,
and the handler for all requests to the servlet.