File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
frameworks/Kotlin/ktor/ktor/src/main/kotlin/org/jetbrains/ktor/benchmarks Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,6 @@ data class World(val id: Int, var randomNumber: Int)
3131@Serializable
3232data class Fortune (val id : Int , var message : String )
3333
34- @Serializable
35- data class DynamicValue (
36- @Contextual
37- val value : Any
38- )
39-
4034// Optimized JSON instance with better performance settings
4135private val json = Json {
4236 prettyPrint = false
@@ -167,11 +161,6 @@ fun Application.main() {
167161
168162 call.respondText(json.encodeToString(result), ContentType .Application .Json )
169163 }
170-
171- post(" /dynamic-map" ) {
172- val dynamicMap = call.receive<Map <String , DynamicValue >>()
173- call.respondText(json.encodeToString(dynamicMap), ContentType .Application .Json )
174- }
175164 }
176165}
177166
You can’t perform that action at this time.
0 commit comments