- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
53 lines
1.3 KiB
Java
53 lines
1.3 KiB
Java
package okhttp3;
|
|
|
|
import java.io.IOException;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public enum Protocol {
|
|
HTTP_1_0("http/1.0"),
|
|
HTTP_1_1("http/1.1"),
|
|
SPDY_3("spdy/3.1"),
|
|
HTTP_2("h2"),
|
|
H2_PRIOR_KNOWLEDGE("h2_prior_knowledge"),
|
|
QUIC("quic");
|
|
|
|
private final String protocol;
|
|
|
|
@Override // java.lang.Enum
|
|
public String toString() {
|
|
return this.protocol;
|
|
}
|
|
|
|
Protocol(String str) {
|
|
this.protocol = str;
|
|
}
|
|
|
|
public static Protocol get(String str) throws IOException {
|
|
Protocol protocol = HTTP_1_0;
|
|
if (str.equals(protocol.protocol)) {
|
|
return protocol;
|
|
}
|
|
Protocol protocol2 = HTTP_1_1;
|
|
if (str.equals(protocol2.protocol)) {
|
|
return protocol2;
|
|
}
|
|
Protocol protocol3 = H2_PRIOR_KNOWLEDGE;
|
|
if (str.equals(protocol3.protocol)) {
|
|
return protocol3;
|
|
}
|
|
Protocol protocol4 = HTTP_2;
|
|
if (str.equals(protocol4.protocol)) {
|
|
return protocol4;
|
|
}
|
|
Protocol protocol5 = SPDY_3;
|
|
if (str.equals(protocol5.protocol)) {
|
|
return protocol5;
|
|
}
|
|
Protocol protocol6 = QUIC;
|
|
if (str.equals(protocol6.protocol)) {
|
|
return protocol6;
|
|
}
|
|
throw new IOException("Unexpected protocol: " + str);
|
|
}
|
|
}
|