Hwaro::Services::NotFoundHandler
Inherits HTTP::Handler / Reference / Object
Constructors
new(public_dir : String, injector : LiveReloadInjectHandler | Nil = nil)
With live reload on, 404 responses embed the reload script too: a tab parked on a not-yet-rendered URL (a page still building, a --fast-start deferred page) then refreshes itself the moment its HTML lands on disk, and build-error overlays reach 404 tabs as well. Without the script those tabs sat on the 404 forever.
Instance methods
call(context)
Source