Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Extensions for java.net.URL
Reads the entire content of the URL as byte array.
Reads the entire content of this URL as a String using UTF-8 or the specified charset.
fun URL.readText(charset: Charset = Charsets.UTF_8): String