pull/736/head
gedoor 4 years ago
parent 33f61d88c2
commit f59131aa05
  1. 6
      app/src/main/java/io/legado/app/help/http/StrResponse.kt

@ -15,8 +15,7 @@ class StrResponse private constructor(
) {
fun raw() = rawResponse
val url: String
get() {
fun url(): String {
rawResponse.networkResponse?.let {
return it.request.url.toString()
}
@ -35,8 +34,7 @@ class StrResponse private constructor(
return rawResponse.headers
}
val isSuccessful: Boolean
get() = rawResponse.isSuccessful
fun isSuccessful(): Boolean = rawResponse.isSuccessful
fun errorBody(): ResponseBody? {
return errorBody

Loading…
Cancel
Save