-
-
Save mccraigmccraig/fee0055f7c492cf363e37a14170c2b22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn create-aleph-server [{:keys [handler server-opts]}] | |
(info "Starting web server with opts " server-opts) | |
(let [server (http/start-server (some-fn handler | |
(constantly {:status 404 | |
:body "Not found"})) | |
server-opts)] | |
(info "Started web server.") | |
[server (fn [] (.close server))])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment