class

Plombir::Server::StaticServer

Inherits Reference < Object

Lifecycle wrapper around HTTP::Server: listen binds the port (raising PortInUse), start blocks serving, and close stops gracefully — the CLI calls it from SIGINT/SIGTERM traps so Ctrl+C exits crash-free.

Constructors

new(config : Config, reloader : LiveReload::Reloader | Nil = nil)
Source

Instance methods

close
Source
listen
Source
start
Source