coconutpalm.boot-http

default-port

httpkit-dep

immutant-dep

jetty-dep

nrepl-deps

(nrepl-deps)

serve

(serve & {:as *opts*, :keys [help dir handler init cleanup resource-root port httpkit immutant silent ssl ssl-props reload nrepl not-found charset]})

Start a web server on localhost, serving resources and optionally a directory. Listens on port 3000 by default.

Keyword Args: :help bool Print this help info. :dir str The directory to serve; created if doesn’t exist. :handler sym The ring handler to serve. :init sym A function to run prior to starting the server. :cleanup sym A function to run after the server stops. :resource-root str The root prefix when serving resources from classpath :port int The port to listen on. (Default: 3000) :httpkit bool Use Http-kit server instead of Jetty :immutant bool Use Immutant server instead of Jetty :silent bool Silent-mode (don’t output anything) :ssl bool Serve via Jetty/Immutant SSL connector on localhost on default port 3443 using cert from ./boot-http-keystore.jks :ssl-props edn Override default SSL properties e.g. “{:port 3443, :keystore ”boot-http-keystore.jks“, :key-password ”p@ssw0rd"}“ :reload bool Reload modified namespaces on each request. :nrepl edn nREPL server parameters e.g. ”{:port 3001, :bind “0.0.0.0”}" :not-found sym a ring handler for requested resources that aren’t in your directory. Useful for pushState. :charset str charset to use when serving static resources and files. (Default: utf-8)

serve-deps

ssl-default-port

ssl-defaults