The actual HTTP server.
The defaults are set to use URL "http://localhost" and low verbosity.
|
NEW(port) @public | Create a new HTTP server on port port.
|
|
$setVerbosity(level) @public | Set the verbosity for the server to level.
|
|
$setBase(base) @public | Setting the base URL allows servlets to use it.
|
|
$setFileRoot(root) @public | Set the directory where files for FileServlet can be found.
|
|
$addServlet(servlet) @public | Add a servlet. The server will ask each servlet if it can handle a
request.
|
|
$addPage(page) @public | Add a ZUT page. This will make the page according to the page
argument available and create a servlet for it.
|
|
$addPage(title, template, path) @file | Add a ZUT page with title, template method template for URL path.
|
|
$redirect(from, to) @public | Generate a "301 moved permanently" response.
|
|
$openInBrowser(page)
status @public | Open page in a browser, for localhost and the port number of the
server.
|
|
$quit() @public | Tell the server to quit.
|
|
$waitForExit() @public | Wait until the server exits.
|
|