Liking cljdoc? Tell your friends :D

dev.zeko.stube.halos.http

Ring handlers for the dev halos overlay. All endpoints 404 when the server was not started with :halos? true, so production builds never expose them.

Three endpoints:

routemethodpurpose
/stube/halos.jsGETthe overlay script
/stube/halos/:cid/enablePOSTflip a conv into halos mode + redraw
/stube/halos/:cid/panelGETrender the inspector side-panel HTML
Ring handlers for the dev halos overlay.  All endpoints 404 when the
server was not started with `:halos? true`, so production builds
never expose them.

Three endpoints:

| route                          | method | purpose                                |
|--------------------------------|--------|----------------------------------------|
| `/stube/halos.js`              | GET    | the overlay script                     |
| `/stube/halos/:cid/enable`     | POST   | flip a conv into halos mode + redraw   |
| `/stube/halos/:cid/panel`      | GET    | render the inspector side-panel HTML   |
raw docstring

enable-handlerclj

(enable-handler {:keys [path-params] :as req})

POST /stube/halos/:cid/enable — flip the conv into halos mode and push a freshly-decorated frame so the overlay sees data-stube attrs without a hard reload.

POST `/stube/halos/:cid/enable` — flip the conv into halos mode and
push a freshly-decorated frame so the overlay sees data-stube attrs
without a hard reload.
sourceraw docstring

js-handlerclj

(js-handler _req)

Serve the dev halos overlay script. 404s when halos is disabled.

Serve the dev halos overlay script.  404s when halos is disabled.
sourceraw docstring

panel-handlerclj

(panel-handler {:keys [path-params] :as req})

Return the rendered side-panel HTML for the dev halos overlay.

404s when the server has halos off; 410 when the conversation has halos off (the overlay shouldn't be polling); plain 200 HTML otherwise.

Return the rendered side-panel HTML for the dev halos overlay.

404s when the server has halos off; 410 when the conversation has
halos off (the overlay shouldn't be polling); plain 200 HTML otherwise.
sourceraw docstring

requested?clj

(requested? req)

True when the request URL has ?halos=1 (or any value).

True when the request URL has `?halos=1` (or any value).
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