Webapp module
The Webapp module allows the development of web applications with tight integration with the HTMLDocument module for high-quality HTML output (including auto-filling of forms), and secure state management.
Exceptions
- BadHeadersKey - Malformed HTTP header key
- BadHeadersVal - Malformed HTTP header value
- IllegalHandler - Bad handler function
Functions
- Void autoFill(ElementTree form,DataSource mainvars,Dict<String, [String]> extravars=Dict::new()) - Automatically fill a HTML form
- Bool debugMode() - Check debugging mode
- Void disableDebugging() - Disable debugging mode
- Void displayPage(Void() fn,[Pair<String, String> ] headers) - Displays a function result
- Void displayPage(Binary bdata,[Pair<String, String> ] headers) - Displays binary data
- Void displayPage(HTMLDocument page) - Displays a HTML page
- Void displayPage(String sdata,[Pair<String, String> ] headers) - Displays String content
- Void enableDebugging() - Enable debugging mode
- Bool headersSent() - Returns true if headers have been sent
- b retrieveFunction(b() defn,String(String) retriever,String key) - Retrieve saved state
- b runHandler(b() defn,String prefix="") - Run the current state handler
- String storeFunction(String(String) storer,b(a) fn,a state) - Save application state persistently.