 ;;; Ring server management.
 
 (defn start
+  "Start HTTP Kit, based on the specified spec config."
   [config]
   (println "Starting HTTP Kit using config:" (:http-kit config))
   (make-app)



(defn- make-app
  []
  (let [handler (if-let [apps (seq (vals @apps))]
                  (let [sorted (sort-apps apps)

;; file, You can obtain one at http://mozilla.org/MPL/2.0/.

(ns containium.http-kit
  "The namespace for starting and stopping HTTP Kit, and managing
  boxes that contain ring apps."
  (:require [org.httpkit.server :refer (run-server)]
            [boxure.core :as boxure]))


;;; Ring app registry.

(defrecord RingApp [box handler-fn ring-conf])

(def apps (atom {}))

