Jetty behind two functions. Jetty lives entirely inside the base (SPEC
§10): the host sees a handle map, never the server class. The bound port is
in the handle because with :port 0 there is no other way to learn it
without Jetty's own API.
Jetty behind two functions. Jetty lives entirely inside the base (SPEC §10): the host sees a handle map, never the server class. The bound port is in the handle because with `:port 0` there is no other way to learn it without Jetty's own API.
(start handler {:keys [port] :as options})Starts Jetty on handler and returns {:server s :port n}. Options are
ring-jetty-adapter's, minus :join?, which is always false: a joining
start blocks the caller forever, which is a hang, not a server.
Starts Jetty on `handler` and returns `{:server s :port n}`. Options are
ring-jetty-adapter's, minus `:join?`, which is always false: a joining
start blocks the caller forever, which is a hang, not a server.(stop {:keys [server]})Stops the server behind a handle returned by start.
Stops the server behind a handle returned by `start`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |