HtmlContent

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

Deprecated (with error)

This will be removed from public API

Represents an OutgoingContent build using kotlinx.html.

See also

Constructors

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

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

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)