HtmlContent

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

Deprecated

This will be removed from public API

Represents an OutgoingContent build using kotlinx.html.

See also

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 fun trailers(): Headers?
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