what-the-bank/sources/okhttp3/internal/http/RealResponseBody.java

40 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.internal.http;
import o.C14957gcv;
import o.InterfaceC15149gid;
import okhttp3.MediaType;
import okhttp3.ResponseBody;
/* loaded from: classes.dex */
public final class RealResponseBody extends ResponseBody {
private final long contentLength;
private final String contentTypeString;
private final InterfaceC15149gid source;
public RealResponseBody(String str, long j, InterfaceC15149gid interfaceC15149gid) {
C14957gcv.e(interfaceC15149gid, "");
this.contentTypeString = str;
this.contentLength = j;
this.source = interfaceC15149gid;
}
@Override // okhttp3.ResponseBody
public final MediaType contentType() {
String str = this.contentTypeString;
if (str == null) {
return null;
}
return MediaType.Companion.parse(str);
}
@Override // okhttp3.ResponseBody
public final InterfaceC15149gid source() {
return this.source;
}
@Override // okhttp3.ResponseBody
public final long contentLength() {
return this.contentLength;
}
}