Processing HTTP Server

A library by Ramin Soleymani for the Processing programming environment.
Last update, 06/05/2017.

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

Download Processing HTTP Server version 1.0.6 (6) in .zip format.

Installation

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.

Source. The source code of Processing HTTP Server is available at GitHub, and its repository can be browsed here.

Examples

Find a list of examples in the current distribution of Processing HTTP Server, or have a look at them by following the links below.

Tested

Platform osx
Processing 3
Dependencies freemarker (included)