BaseApplicationResponse

abstract class BaseApplicationResponse(call: ApplicationCall) : ApplicationResponse

Base class for implementing an ApplicationResponse

Constructors

Link copied to clipboard
fun BaseApplicationResponse(call: ApplicationCall)

Types

Link copied to clipboard
class BodyLengthIsTooLong(expected: Long) : IllegalStateException, CopyableThrowable<BaseApplicationResponse.BodyLengthIsTooLong>

Content's actual body size doesn't match the provided one in Content-Length header

Link copied to clipboard
class BodyLengthIsTooSmall(expected: Long, actual: Long) : IllegalStateException, CopyableThrowable<BaseApplicationResponse.BodyLengthIsTooSmall>

Content's actual body size doesn't match the provided one in Content-Length header

Link copied to clipboard
object Companion
Link copied to clipboard
class InvalidHeaderForContent(name: String, content: String) : IllegalStateException, CopyableThrowable<BaseApplicationResponse.InvalidHeaderForContent>

OutgoingContent is trying to set some header that is not allowed for this content type. For example, only upgrade content can set Upgrade header.

Link copied to clipboard
class ResponseAlreadySentException : IllegalStateException

Thrown when there was already response sent but we are trying to respond again

Functions

Link copied to clipboard
open override fun push(builder: ResponsePushBuilder)
Link copied to clipboard
open override fun status(): HttpStatusCode?
open override fun status(value: HttpStatusCode)

Properties

Link copied to clipboard
override val call: ApplicationCall
Link copied to clipboard
open override val cookies: ResponseCookies
Link copied to clipboard
abstract val headers: ResponseHeaders
Link copied to clipboard
override val pipeline: ApplicationSendPipeline