Common Lisp/External libraries/Hunchentoot

Hunchentoot is a web application server written in Common Lisp.

Installing with ASDF
Installing Hunchentoot on ASDF-enabled systems. The next command installs Hunchentoot and all dependencies.

Generating a simple Web page
Start the server:

The generated image is available on http://localhost:4242/hello-world.

Serving dynamic graphics
This example shows how to generate PNG images with Vecto and serve them with Hunchentoot.

First step: load external dependencies

Second step: declare a package

Add a simple prefix dispatcher to the :

The  function expects HTTP parameter   containing an integer value and generates a PNG image   pixels height. If the parameter is not specified a default value of 150 is used.

Start the server:

The generated image is available on http://localhost:4242/img. Try to change the height: http://localhost:4242/img?height=350