readAsText

abstract fun readAsText(): String

Eagerly fetches the resource this Url points to, decoded as UTF-8 text.

Throws

if the resource cannot be read (e.g. missing file, unreachable host).