ktor-html-builder / io.ktor.html / HtmlContent

HtmlContent

class HtmlContent : WriteChannelContent

Represents an OutgoingContent using kotlinx.html builder.

Constructors

<init>

HtmlContent(status: HttpStatusCode? = null, builder: HTML.() -> Unit)

Represents an OutgoingContent using kotlinx.html builder.

Properties

contentType

val contentType: ContentType

status

val status: HttpStatusCode?

Functions

writeTo

suspend fun writeTo(channel: ByteWriteChannel): Unit