Package io.ktor.html
Types
Link copied to clipboard
class HtmlContent(status: HttpStatusCode?, builder: HTML.() -> Unit) : OutgoingContent.WriteChannelContent
Content copied to clipboard
Represents an OutgoingContent using kotlinx.html
builder.
Link copied to clipboard
A placeholder that is inserted inside TOuter
Link copied to clipboard
class PlaceholderItem<TOuter>(index: Int, collection: List<PlaceholderItem<TOuter>>) : Placeholder<TOuter>
Content copied to clipboard
Item of a placeholder list when it is expanded
Link copied to clipboard
Placeholder that can appear multiple times
Link copied to clipboard
A placeholder that is also a template
Functions
Link copied to clipboard
suspend fun ApplicationCall.respondHtml(status: HttpStatusCode = HttpStatusCode.OK, block: HTML.() -> Unit)
Content copied to clipboard
Responds to a client with a HTML response, using specified block to build an HTML page
Link copied to clipboard
suspend fun <TTemplate : Template<HTML>> ApplicationCall.respondHtmlTemplate(template: TTemplate, status: HttpStatusCode = HttpStatusCode.OK, body: TTemplate.() -> Unit)
Content copied to clipboard