get

infix fun get(url: String): Result<String>(source)

Performs a GET request on a given URL.

Return

the body of the response, or Result.failure if url is invalid, the request failed, or the response had no body

Parameters

url

the url that you want to send a GET request to