RouteHandler

struct RouteHandler

A zero-argument route callback that produces a plain-text response body.

The current router does not pass Request data or path parameters to handlers; routes are exact-path GET endpoints only.

Properties

let invoke: () -> String

The route handler callback.