Table of contents
September 2, 2025 ยท View on GitHub
babashka.http-serverdefault-mime-types- A map of file extensions to mime-types.exec- Exec function, intended for command line usageserve- Serves static assets using web server.
babashka.http-server
default-mime-types
A map of file extensions to mime-types.
source
exec
(exec opts)
Exec function, intended for command line usage. Same API as serve but
blocks until process receives SIGINT.
source
serve
(serve {:keys [port], :or {port 8090}, :as opts})
Serves static assets using web server. Options:
:dir- directory from which to serve assets:port- port:headers- map of headers {key value}:not-found- response function of request map when file isn't found
source