dstarcev
val html = URL("<http://mysite.com>") .openConnection() .inputStream.use { InputStreamReader(it).use { it.readText() } } return object { val html = html }