web

A web framework for Carp with routing, JSON integration, and concurrent connection handling.

Define handlers as (Fn [&Request &(Map String String)] Response) functions, register them as routes on an App, and start serving with App.serve.

Example

(load "git@github.com:carpentry-org/web@0.3.0")

(defn hello [req params]
  (Response.text @"Hello, world!"))

(defserver "0.0.0.0" 8080
  (GET "/" hello))