Boundary: the control API served by the JDK's com.sun.net.httpserver (no
extra dependency). Bound to a loopback address only. The handler is
(fn [req] -> {:status :headers :body}), req being {:method :path :headers
:body}: :headers lower-cased names to their first value, :body the request
text or nil when it is over max-body-bytes (see hive-compose.api/route).
Boundary: the control API served by the JDK's com.sun.net.httpserver (no
extra dependency). Bound to a loopback address only. The handler is
`(fn [req] -> {:status :headers :body})`, req being {:method :path :headers
:body}: :headers lower-cased names to their first value, :body the request
text or nil when it is over `max-body-bytes` (see `hive-compose.api/route`).(start! {:keys [host port threads]} handle)Result<{:server :executor :host :port :url}>: handle served on host:port
(0 = an ephemeral port; :port answers the bound one) by threads daemon
threads. A host that is not a loopback address, a port outside 0..65535 or
a thread count below 1 is an invalid-config; a failed bind api-bind-failed.
Never throws.
Result<{:server :executor :host :port :url}>: `handle` served on `host`:`port`
(0 = an ephemeral port; :port answers the bound one) by `threads` daemon
threads. A host that is not a loopback address, a port outside 0..65535 or
a thread count below 1 is an invalid-config; a failed bind api-bind-failed.
Never throws.(stop! {:keys [server executor]})Stop a server start! answered. Idempotent; nil.
Stop a server `start!` answered. Idempotent; nil.
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 |