html

suspend fun PageController.html(block: suspend HTML.() -> Unit): RawResponse

Responds to a client with an HTML response, using specified block to build an HTML page via Kotlin's HTML DSL.

Return

HTTP response wrapping the HTML page, with a content type of text/html; charset=utf-8.

Parameters

block

Block to execute to build the HTML page.