https://github.com/caolan/snowy
HTTP server for CHICKEN Scheme
https://github.com/caolan/snowy
Last synced: over 1 year ago
JSON representation
HTTP server for CHICKEN Scheme
- Host: GitHub
- URL: https://github.com/caolan/snowy
- Owner: caolan
- Created: 2015-11-27T17:03:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T18:34:33.000Z (over 8 years ago)
- Last Synced: 2025-02-28T15:04:37.734Z (over 1 year ago)
- Language: C
- Size: 57.6 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snowy

A more [node][nodejs]-like alternative to [spiffy][spiffy].
Implements a HTTP server for [CHICKEN Scheme][chicken] based on Joyent's http-parser C library (used in Node.js). Borrows some ideas and code from the fantastic [intarweb][intarweb] and [spiffy][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
```scheme
(use snowy)
(http-listen
(lambda (req res)
(update-response res
code: 200
body: "Hello, world!\n")))
```
[chicken]: http://call-cc.org
[intarweb]: http://wiki.call-cc.org/eggref/4/intarweb
[spiffy]: http://wiki.call-cc.org/eggref/4/spiffy
[nodejs]: http://nodejs.org