caolan / snowy

HTTP server for CHICKEN Scheme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snowy

Snowy Owl

A more node-like alternative to spiffy.

Implements a HTTP server for CHICKEN Scheme based on Joyent's http-parser C library (used in Node.js). Borrows some ideas and code from the fantastic intarweb and spiffy too. The API is fairly basic, the idea being that nicer response authoring and query string parsing etc. can be layered on top.

NOTE: This is a work-in-progress, feel free to experiment and give feedback, but don't put to real use yet!

Example

(use snowy)

(http-listen
 (lambda (req res)
   (update-response res
     code: 200
     body: "Hello, world!\n")))

About

HTTP server for CHICKEN Scheme


Languages

Language:C 86.8%Language:Scheme 10.0%Language:Makefile 2.0%Language:Python 1.2%