Processing HTTP Server
Allows to create a simple HTTP Server, which can serve static pages, generate pages from templates or handle any type of request.
SimpleHTTPServer is a HTTP Server implementation for Processing. It can server static files (html,css,js) or use custom FileHandler. It can also process templates with the appache freemarker library. It can also handle PUT requests or answer with JSON. You can use callback in order to handle query parameters or access them in the respective functions that build an response.
Download Processing HTTP Server version 1.0.4 (4) in .zip format.
Unzip and put the extracted SimpleHTTPServer folder into the libraries folder of your Processing sketches. Reference and examples are included in the SimpleHTTPServer folder.
Keywords. HTTP, network
Reference. Have a look at the javadoc reference here. A copy of the reference is included in the .zip as well.
Find a list of examples in the current distribution of Processing HTTP Server, or have a look at them by following the links below.
Dependencies freemarker (included)