class

Freshen::Handler

Inherits HTTP::Handler < Reference < Object

Standard Crystal HTTP::Handler middleware serving SSE live-reload streams. Pluggable into Kemal, standard HTTP::Server, Lucky, and Amber.

Constructors

new(broker : Broker, endpoint : String = "/_freshen/reload")
Source

Instance methods

broker
Source
call(context : HTTP::Server::Context) : Nil

Handles SSE connection requests at the configured endpoint.

Source
endpoint
Source