Liking cljdoc? Tell your friends :D

hive-compose.adapter.http

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`).
raw docstring

max-body-bytesclj

source

start!clj

(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.
sourceraw docstring

stop!clj

(stop! {:keys [server executor]})

Stop a server start! answered. Idempotent; nil.

Stop a server `start!` answered. Idempotent; nil.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close