vertx-lang-kotlin
vertx-lang-kotlin copied to clipboard
Web Client Kotlin docs use "as" without escaping
From https://github.com/vert-x3/vertx-web/issues/1444
The example code on handling JSON responses on https://vertx.io/docs/vertx-web-client/kotlin/#_handling_http_responses is syntactically incorrect in Kotlin.
client.get(8080, "myserver.mycompany.com", "/some-uri").as(BodyCodec.jsonObject()).send({ ar ->
should be
client.get(8080, "myserver.mycompany.com", "/some-uri").`as`(BodyCodec.jsonObject()).send({ ar ->