mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-24 08:02:37 -06:00
54 lines
3.8 KiB
Java
54 lines
3.8 KiB
Java
package okhttp3.internal;
|
|
|
|
import io.sentry.SentryBaseEvent;
|
|
import io.sentry.protocol.Request;
|
|
import javax.net.ssl.SSLSocket;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import okhttp3.Cache;
|
|
import okhttp3.ConnectionSpec;
|
|
import okhttp3.Cookie;
|
|
import okhttp3.Headers;
|
|
import okhttp3.HttpUrl;
|
|
import okhttp3.Response;
|
|
|
|
/* compiled from: internal.kt */
|
|
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000T\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0016\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004\u001a\u001e\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u0004\u001a\u001e\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000e\u001a\u0018\u0010\u000f\u001a\u0004\u0018\u00010\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0014\u001a\u0016\u0010\u0015\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u000e\u001a \u0010\u0019\u001a\u0004\u0018\u00010\u00172\u0006\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u0004¨\u0006\u001f"}, d2 = {"addHeaderLenient", "Lokhttp3/Headers$Builder;", "builder", "line", "", "name", "value", "applyConnectionSpec", "", "connectionSpec", "Lokhttp3/ConnectionSpec;", "sslSocket", "Ljavax/net/ssl/SSLSocket;", "isFallback", "", "cacheGet", "Lokhttp3/Response;", "cache", "Lokhttp3/Cache;", SentryBaseEvent.JsonKeys.REQUEST, "Lokhttp3/Request;", "cookieToString", "cookie", "Lokhttp3/Cookie;", "forObsoleteRfc2965", "parseCookie", "currentTimeMillis", "", Request.JsonKeys.URL, "Lokhttp3/HttpUrl;", "setCookie", "okhttp"}, k = 2, mv = {1, 4, 0})
|
|
/* loaded from: classes3.dex */
|
|
public final class Internal {
|
|
public static final Cookie parseCookie(long j, HttpUrl url, String setCookie) {
|
|
Intrinsics.checkNotNullParameter(url, "url");
|
|
Intrinsics.checkNotNullParameter(setCookie, "setCookie");
|
|
return Cookie.INSTANCE.parse$okhttp(j, url, setCookie);
|
|
}
|
|
|
|
public static final String cookieToString(Cookie cookie, boolean z) {
|
|
Intrinsics.checkNotNullParameter(cookie, "cookie");
|
|
return cookie.toString$okhttp(z);
|
|
}
|
|
|
|
public static final Headers.Builder addHeaderLenient(Headers.Builder builder, String line) {
|
|
Intrinsics.checkNotNullParameter(builder, "builder");
|
|
Intrinsics.checkNotNullParameter(line, "line");
|
|
return builder.addLenient$okhttp(line);
|
|
}
|
|
|
|
public static final Headers.Builder addHeaderLenient(Headers.Builder builder, String name, String value) {
|
|
Intrinsics.checkNotNullParameter(builder, "builder");
|
|
Intrinsics.checkNotNullParameter(name, "name");
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
return builder.addLenient$okhttp(name, value);
|
|
}
|
|
|
|
public static final Response cacheGet(Cache cache, okhttp3.Request request) {
|
|
Intrinsics.checkNotNullParameter(cache, "cache");
|
|
Intrinsics.checkNotNullParameter(request, "request");
|
|
return cache.get$okhttp(request);
|
|
}
|
|
|
|
public static final void applyConnectionSpec(ConnectionSpec connectionSpec, SSLSocket sslSocket, boolean z) {
|
|
Intrinsics.checkNotNullParameter(connectionSpec, "connectionSpec");
|
|
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
|
connectionSpec.apply$okhttp(sslSocket, z);
|
|
}
|
|
}
|