kotlin.io.java.net.URL

Extensions for java.net.URL

readBytes

fun URL.readBytes(): ByteArray

Reads the entire content of the URL as byte array.

readText

fun URL.readText(charset: Charset = Charsets.UTF_8): String

Reads the entire content of this URL as a