fetchText

open fun fetchText(url: Url): String

Downloads the content at url and decodes it as UTF-8 text.

Return

text content of the resource

Parameters

url

resource to download

Throws

if the resource cannot be retrieved

if the resource does not exist