module

Authly::ResponseHelper

Class methods

redirect(context, location)
Source
write(context, status_code, content_type = "text/plain", body = "")
Source
write_page(context, status_code, html, script_src : String | Nil = nil)

An HTML page for the browser (consent, device verification): not framable, not cacheable, no scripts or external loads, no referrer. Every value interpolated into html must be escaped. script_src is the exact text of the one inline script the page may run (allowed by its hash).

Source