1 Running the Web Server
2 Scheme Servlets
3 Web Language Servlets
4 Configuration
5 Dispatchers
6 Web Config Unit
7 Web Server Unit
8 Continuation Managers
9 Internal
10 Troubleshooting
11 Acknowledgements
Index
On this page:
interface-version
timeout
manager
start
Version: 4.0.2

 

2.1 Definition

A servlet is a module that provides the following:

interface-version : (one-of/c 'v1 'v2)

A symbol indicating the servlet interface the servlet conforms to. This influences the other provided identifiers.

timeout : integer?

Only if interface-version is 'v1.

This number is used as the continuation-timeout argument to a timeout-based continuation manager used for this servlet. (See Timeouts.) (i.e., you do not have a choice of the manager for this servlet and will be given a timeout-based manager.)

manager : manager?

Only if interface-version is 'v2.

The manager for the continuations of this servlet.

(start initial-request)  response?

  initial-request : request?

This function is called when an instance of this servlet is started. The argument is the HTTP request that initiated the instance.