A Servlet that generates the page body with a function.
|
NEW(func) @public | Create a new FunctionServlet that calls func to create a response.
|
|
$setProc(func) @public | Set the function to call to func.
|
|
$serve(context)
bool @public | Handle a request by invoking the function and putting its result in the
response.
|
|
Inherited from HTTP.Servlet:
|
|
$setAllPaths(allPaths) @public | Set whether this Servlet handles all paths.
|
|
$addPath(path) @public | Add a path that this servlet will serve for.
|
|
$handle(context)
bool @public | Check if this servlet wants to serve context.request.
|
|
$setMimeType(type) @public | Set the MIME type to be used in the response for this Servlet.
|
|
$filter(context)
bool @public | Filter context.request, possibly changing context.
|
|