HtmlContent

class HtmlContent(status: HttpStatusCode?, builder: HTML.() -> Unit) : OutgoingContent.WriteChannelContent

Represents an OutgoingContent using kotlinx.html builder.

Constructors

Link copied to clipboard
fun HtmlContent(status: HttpStatusCode? = null, builder: HTML.() -> Unit)

Functions

Link copied to clipboard
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Link copied to clipboard
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?)
Link copied to clipboard
open suspend override fun writeTo(channel: ByteWriteChannel)

Properties

Link copied to clipboard
open val contentLength: Long?
Link copied to clipboard
open override val contentType: ContentType
Link copied to clipboard
open val headers: Headers
Link copied to clipboard
open override val status: HttpStatusCode? = null