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; } }