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

38 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.repackaged.internal.http;
import com.google.common.net.HttpHeaders;
import o.InterfaceC15142giR;
import okhttp3.repackaged.Headers;
import okhttp3.repackaged.MediaType;
import okhttp3.repackaged.ResponseBody;
/* loaded from: classes6.dex */
public final class RealResponseBody extends ResponseBody {
private final Headers aii;
private final InterfaceC15142giR source;
public RealResponseBody(Headers headers, InterfaceC15142giR interfaceC15142giR) {
this.aii = headers;
this.source = interfaceC15142giR;
}
@Override // okhttp3.repackaged.ResponseBody
public final MediaType contentType() {
String str = this.aii.get(HttpHeaders.CONTENT_TYPE);
if (str != null) {
return MediaType.parse(str);
}
return null;
}
@Override // okhttp3.repackaged.ResponseBody
public final long contentLength() {
return OkHeaders.contentLength(this.aii);
}
@Override // okhttp3.repackaged.ResponseBody
public final InterfaceC15142giR source() {
return this.source;
}
}