ktor-server-host-common / io.ktor.server.engine / BaseApplicationResponse / InvalidHeaderForContent

InvalidHeaderForContent

class InvalidHeaderForContent : IllegalStateException, CopyableThrowable<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.

Constructors

<init>

InvalidHeaderForContent(name: String, content: String)

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

Functions

createCopy

fun createCopy(): InvalidHeaderForContent?