Interface Web
access this type via: ws.Web (provides, requires or uses)
Interface for web app components. Web frameworks will instantiate one instance of a Web object to serve all requests (i.e., the same single object is persistent across all requests).
Functions
void setup()
bool post(char path[], char contentType[], byte content[],
DocStream stream)
bool put(char path[], char contentType[], byte content[],
DocStream stream)
bool delete(char path[], char contentType[], byte content[],
DocStream stream)
void setup()
This function is called once, when the web framework first starts up, and can optionally be used for initialisation tasks.
This function is called when a HTTP GET request is made.
bool post(char path[], char contentType[], byte content[],
DocStream stream)
This function is called when a HTTP POST request is made.
bool put(char path[], char contentType[], byte content[],
DocStream stream)
This function is called when a HTTP PUT request is made.
bool delete(char path[], char contentType[], byte content[],
DocStream stream)
This function is called when a HTTP DELETE request is made.