Version: 4.1.3
2.1.1 Version 1 Servlets
interface-version : (one-of/c 'v1) |
This indicates that the servlet is a version one servlet.
timeout : integer? |
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.)
(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.
An example version 1 module:
#lang scheme |
(define interface-version 'v1) |
(define timeout (* 60 60 24)) |
(define (start req) |
`(html (head (title "Hello World!")) |
(body (h1 "Hi Mom!")))) |
These servlets should use the web-server/servlet API.