Skip to content
Hoplite
Theme

Begin typing to search this site.

Host capabilities

Hara code calls native services through std.native.Host/call. The project declares the capabilities it expects:

:project/capabilities #{:host/nginx}

The Nginx host provides request-time operations. Asynchronous handlers can await supported host calls without blocking the worker:

(std.native.Host/call "nginx" "sleep" [25])
Development

The interactive console installs the hoplite.dev host. Its public HAL functions call the host with methods such as start, stop, restart, status, list-all, and logs.

The host service name and operation are explicit in the call. Hoplite does not treat arbitrary shell commands or undeclared server definitions as console capabilities.