<@U6P03BM0W> ``` sealed class MyResponse { c...
# ktor
c
@dave08
Copy code
sealed class MyResponse {
    class A : MyResponse()
}

application.sendPipeline.intercept(ApplicationSendPipeline.Transform) { it ->
    if (it is MyResponse) {
        when (it) {
            is MyResponse.A -> proceedWith(TextContent("MyResponse.A { ... }", contentType = ContentType.Text.Plain))
        }
    }
}

application.routing {
    get("/") {
        call.respond(MyResponse.A())
    }
}