fetch Text
suspend fun fetchText(url: String, responseCallback: (<Error class: unknown class>) -> Unit? = null): <Error class: unknown class><String>
Fetch an arbitrary URL's content as plain text String, falling back to UTF-8 if no charset is provided.
Return
The resulting text, wrapped in a Result monad, if successful. A failed Result wrapping the thrown Throwable in case of an error.
Parameters
url
The URL to fetch plaintext from.
response Callback
An optional callback to further evaluate the HttpResponse.