Tower Guidev2
io.arrow-kt:arrow-core-retrofit
if (response.isSuccessful && response.code() == HttpURLConnection.HTTP_OK) { } else manageHTTPError(response)
retrofit2.Response
Either<NetworkException, Response<UserInfoResponse>>
stojan
Either<ErrorBody, SuccessBody>
SuccessBody
ErrorBody
IOException
private const val GOOGLE_CONNECTIVITY_CHECK_URL = "<https://connectivitycheck.gstatic.com/generate_204>"
ResponseE<ErrorBody, SuccessBody>
ResponseE
Response
Either
A modern programming language that makes developers happier.