40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
|
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;
|
||
|
}
|
||
|
}
|