mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 20:07:19 +01:00
35 lines
1.2 KiB
Java
35 lines
1.2 KiB
Java
package org.apache.http;
|
|
|
|
import org.apache.http.annotation.Contract;
|
|
import org.apache.http.annotation.ThreadingBehavior;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Contract(threading = ThreadingBehavior.IMMUTABLE)
|
|
/* loaded from: classes11.dex */
|
|
public final class HttpVersion extends ProtocolVersion {
|
|
public static final String HTTP = "HTTP";
|
|
public static final HttpVersion HTTP_0_9 = new HttpVersion(0, 9);
|
|
public static final HttpVersion HTTP_1_0 = new HttpVersion(1, 0);
|
|
public static final HttpVersion HTTP_1_1 = new HttpVersion(1, 1);
|
|
private static final long serialVersionUID = -5856653513894415344L;
|
|
|
|
public HttpVersion(int i, int i2) {
|
|
super(HTTP, i, i2);
|
|
}
|
|
|
|
@Override // org.apache.http.ProtocolVersion
|
|
public ProtocolVersion forVersion(int i, int i2) {
|
|
if (i == this.major && i2 == this.minor) {
|
|
return this;
|
|
}
|
|
if (i == 1) {
|
|
if (i2 == 0) {
|
|
return HTTP_1_0;
|
|
}
|
|
if (i2 == 1) {
|
|
return HTTP_1_1;
|
|
}
|
|
}
|
|
return (i == 0 && i2 == 9) ? HTTP_0_9 : new HttpVersion(i, i2);
|
|
}
|
|
}
|