data Bezel::Runner
include HTTP::Handler
An endpoint's handler: its plugs and the application, made once and shared by the server's connections.
Methods
def endpoint -> Type[Bezel::Endpoint]
def plugs -> Array[Bezel::Plug]
def app -> Bezel::App
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def with(*, endpoint: Type[Bezel::Endpoint] = …, plugs: Array[Bezel::Plug] = …, app: Bezel::App = …) -> Bezel::Runner
A copy with the fields given replaced.
def call(req: HTTP::Server::Request) -> HTTP::Server::Response
The response to req. An HTTP::Error raised is answered with its
status; another StandardError with a 500.
from HTTP::Handler
def answer(conn: Bezel::Conn, error: StandardError) -> HTTP::Server::Response
The error page for error, with the headers the plugs set on
conn (the request id, security headers) but DROPPED.