Trying to use 2.0, and the docs say this is how yo...
# kotlin-fuel
s
Trying to use 2.0, and the docs say this is how you resolve success or failure, but
Failure
and
Success
are internal classes.
Copy code
"<https://httpbin.org/get>"
  .httpGet()
  .responseString { request, response, result ->
    when (result) {
      is Result.Failure -> {
        val ex = result.getException()
      }
      is Result.Success -> {
        val data = result.get()
      }
    }
  }