Interface Web
access this type via: ws.Web (provides, requires or uses)
Interface for web app components.
Functions
bool get(char path[], DocStream stream, HashTable params)
bool post(char path[], char contentType[], byte content[], DocStream stream, HashTable params)
bool put(char path[], char contentType[], byte content[], DocStream stream, HashTable params)
bool delete(char path[], char contentType[], byte content[], DocStream stream, HashTable params)
String[] getURLPatterns()
bool get(char path[], DocStream stream, HashTable params)
This function is called when a HTTP GET request is made.
bool post(char path[], char contentType[], byte content[], DocStream stream, HashTable params)
This function is called when a HTTP POST request is made.
bool put(char path[], char contentType[], byte content[], DocStream stream, HashTable params)
This function is called when a HTTP PUT request is made.
bool delete(char path[], char contentType[], byte content[], DocStream stream, HashTable params)
This function is called when a HTTP DELETE request is made.
String[] getURLPatterns()
This function returns URLs patterns, such as adaptor/{id}/collect.