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

Inheritors

ClientUpgradeContent

abstract class ClientUpgradeContent : NoContent

EmptyContent

object EmptyContent : NoContent

Concrete OutgoingContent without a payload.

HttpStatusCodeContent

class HttpStatusCodeContent : NoContent

Represents a simple status code response with no content

UnauthorizedResponse

class UnauthorizedResponse : NoContent

Response content with 401 Unauthorized status code and WWW-Authenticate header of supplied challenges