vertx-lang-kotlin icon indicating copy to clipboard operation
vertx-lang-kotlin copied to clipboard

Web Client Kotlin docs use "as" without escaping

Open tobiasmuehl opened this issue 5 years ago • 0 comments

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 ->

tobiasmuehl avatar Oct 31 '19 03:10 tobiasmuehl