ktor-http / io.ktor.http.content / OutgoingContent / NoContent

NoContent

abstract class NoContent : OutgoingContent

Variant of a OutgoingContent without a payload

Constructors

<init>

NoContent()

Variant of a OutgoingContent without a payload

Inherited Properties

contentLength

open val contentLength: Long?

Specifies content length in bytes for this resource.

contentType

open val contentType: ContentType?

Specifies ContentType for this resource.

headers

open val headers: Headers

Headers to set when sending this content

status

open val status: HttpStatusCode?

Status code to set when sending this content

Inherited Functions

getProperty

open fun <T : Any> getProperty(key: AttributeKey<T>): T?

Gets an extension property for this content

setProperty

open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?): Unit

Sets an extension property for this content