BaseApplicationResponse
abstract class BaseApplicationResponse(call: ApplicationCall) : ApplicationResponse
Content copied to clipboard
Base class for implementing an ApplicationResponse
Constructors
Types
Link copied to clipboard
class BodyLengthIsTooLong(expected: Long) : IllegalStateException, CopyableThrowable<BaseApplicationResponse.BodyLengthIsTooLong>
Content copied to clipboard
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 copied to clipboard
Content's actual body size doesn't match the provided one in Content-Length
header
Link copied to clipboard
class InvalidHeaderForContent(name: String, content: String) : IllegalStateException, CopyableThrowable<BaseApplicationResponse.InvalidHeaderForContent>
Content copied to clipboard
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
Thrown when there was already response sent but we are trying to respond again