221 lines
7.5 KiB
Java
221 lines
7.5 KiB
Java
package okhttp3.internal.http2;
|
|
|
|
import o.C14953gcr;
|
|
import o.C14957gcv;
|
|
import o.C15155gij;
|
|
import o.gdP;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class Header {
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final C15155gij PSEUDO_PREFIX;
|
|
public static final C15155gij RESPONSE_STATUS;
|
|
public static final String RESPONSE_STATUS_UTF8 = ":status";
|
|
public static final C15155gij TARGET_AUTHORITY;
|
|
public static final String TARGET_AUTHORITY_UTF8 = ":authority";
|
|
public static final C15155gij TARGET_METHOD;
|
|
public static final String TARGET_METHOD_UTF8 = ":method";
|
|
public static final C15155gij TARGET_PATH;
|
|
public static final String TARGET_PATH_UTF8 = ":path";
|
|
public static final C15155gij TARGET_SCHEME;
|
|
public static final String TARGET_SCHEME_UTF8 = ":scheme";
|
|
public final int hpackSize;
|
|
public final C15155gij name;
|
|
public final C15155gij value;
|
|
|
|
public Header(C15155gij c15155gij, C15155gij c15155gij2) {
|
|
C14957gcv.e(c15155gij, "");
|
|
C14957gcv.e(c15155gij2, "");
|
|
this.name = c15155gij;
|
|
this.value = c15155gij2;
|
|
this.hpackSize = c15155gij.a() + 32 + c15155gij2.a();
|
|
}
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public Header(java.lang.String r4, java.lang.String r5) {
|
|
/*
|
|
r3 = this;
|
|
java.lang.String r0 = ""
|
|
o.C14957gcv.e(r4, r0)
|
|
o.C14957gcv.e(r5, r0)
|
|
o.gij$LWm r1 = o.C15155gij.c
|
|
o.C14957gcv.e(r4, r0)
|
|
o.gij r1 = new o.gij
|
|
o.C14957gcv.e(r4, r0)
|
|
java.nio.charset.Charset r2 = o.gdP.a
|
|
byte[] r2 = r4.getBytes(r2)
|
|
o.C14957gcv.c(r2, r0)
|
|
r1.<init>(r2)
|
|
r1.d = r4
|
|
o.gij$LWm r4 = o.C15155gij.c
|
|
o.C14957gcv.e(r5, r0)
|
|
o.gij r4 = new o.gij
|
|
o.C14957gcv.e(r5, r0)
|
|
java.nio.charset.Charset r2 = o.gdP.a
|
|
byte[] r2 = r5.getBytes(r2)
|
|
o.C14957gcv.c(r2, r0)
|
|
r4.<init>(r2)
|
|
r4.d = r5
|
|
r3.<init>(r1, r4)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: okhttp3.internal.http2.Header.<init>(java.lang.String, java.lang.String):void");
|
|
}
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public Header(o.C15155gij r4, java.lang.String r5) {
|
|
/*
|
|
r3 = this;
|
|
java.lang.String r0 = ""
|
|
o.C14957gcv.e(r4, r0)
|
|
o.C14957gcv.e(r5, r0)
|
|
o.gij$LWm r1 = o.C15155gij.c
|
|
o.C14957gcv.e(r5, r0)
|
|
o.gij r1 = new o.gij
|
|
o.C14957gcv.e(r5, r0)
|
|
java.nio.charset.Charset r2 = o.gdP.a
|
|
byte[] r2 = r5.getBytes(r2)
|
|
o.C14957gcv.c(r2, r0)
|
|
r1.<init>(r2)
|
|
r1.d = r5
|
|
r3.<init>(r4, r1)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: okhttp3.internal.http2.Header.<init>(o.gij, java.lang.String):void");
|
|
}
|
|
|
|
public final String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
C15155gij c15155gij = this.name;
|
|
String str = c15155gij.d;
|
|
if (str == null) {
|
|
byte[] b = c15155gij.b();
|
|
C14957gcv.e(b, "");
|
|
String str2 = new String(b, gdP.a);
|
|
c15155gij.d = str2;
|
|
str = str2;
|
|
}
|
|
sb.append(str);
|
|
sb.append(": ");
|
|
C15155gij c15155gij2 = this.value;
|
|
String str3 = c15155gij2.d;
|
|
if (str3 == null) {
|
|
byte[] b2 = c15155gij2.b();
|
|
C14957gcv.e(b2, "");
|
|
String str4 = new String(b2, gdP.a);
|
|
c15155gij2.d = str4;
|
|
str3 = str4;
|
|
}
|
|
sb.append(str3);
|
|
return sb.toString();
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(C14953gcr c14953gcr) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
static {
|
|
C15155gij.LWm lWm = C15155gij.c;
|
|
C14957gcv.e(":", "");
|
|
C14957gcv.e(":", "");
|
|
byte[] bytes = ":".getBytes(gdP.a);
|
|
C14957gcv.c(bytes, "");
|
|
C15155gij c15155gij = new C15155gij(bytes);
|
|
c15155gij.d = ":";
|
|
PSEUDO_PREFIX = c15155gij;
|
|
C15155gij.LWm lWm2 = C15155gij.c;
|
|
C14957gcv.e(RESPONSE_STATUS_UTF8, "");
|
|
C14957gcv.e(RESPONSE_STATUS_UTF8, "");
|
|
byte[] bytes2 = RESPONSE_STATUS_UTF8.getBytes(gdP.a);
|
|
C14957gcv.c(bytes2, "");
|
|
C15155gij c15155gij2 = new C15155gij(bytes2);
|
|
c15155gij2.d = RESPONSE_STATUS_UTF8;
|
|
RESPONSE_STATUS = c15155gij2;
|
|
C15155gij.LWm lWm3 = C15155gij.c;
|
|
C14957gcv.e(TARGET_METHOD_UTF8, "");
|
|
C14957gcv.e(TARGET_METHOD_UTF8, "");
|
|
byte[] bytes3 = TARGET_METHOD_UTF8.getBytes(gdP.a);
|
|
C14957gcv.c(bytes3, "");
|
|
C15155gij c15155gij3 = new C15155gij(bytes3);
|
|
c15155gij3.d = TARGET_METHOD_UTF8;
|
|
TARGET_METHOD = c15155gij3;
|
|
C15155gij.LWm lWm4 = C15155gij.c;
|
|
C14957gcv.e(TARGET_PATH_UTF8, "");
|
|
C14957gcv.e(TARGET_PATH_UTF8, "");
|
|
byte[] bytes4 = TARGET_PATH_UTF8.getBytes(gdP.a);
|
|
C14957gcv.c(bytes4, "");
|
|
C15155gij c15155gij4 = new C15155gij(bytes4);
|
|
c15155gij4.d = TARGET_PATH_UTF8;
|
|
TARGET_PATH = c15155gij4;
|
|
C15155gij.LWm lWm5 = C15155gij.c;
|
|
C14957gcv.e(TARGET_SCHEME_UTF8, "");
|
|
C14957gcv.e(TARGET_SCHEME_UTF8, "");
|
|
byte[] bytes5 = TARGET_SCHEME_UTF8.getBytes(gdP.a);
|
|
C14957gcv.c(bytes5, "");
|
|
C15155gij c15155gij5 = new C15155gij(bytes5);
|
|
c15155gij5.d = TARGET_SCHEME_UTF8;
|
|
TARGET_SCHEME = c15155gij5;
|
|
C15155gij.LWm lWm6 = C15155gij.c;
|
|
C14957gcv.e(TARGET_AUTHORITY_UTF8, "");
|
|
C14957gcv.e(TARGET_AUTHORITY_UTF8, "");
|
|
byte[] bytes6 = TARGET_AUTHORITY_UTF8.getBytes(gdP.a);
|
|
C14957gcv.c(bytes6, "");
|
|
C15155gij c15155gij6 = new C15155gij(bytes6);
|
|
c15155gij6.d = TARGET_AUTHORITY_UTF8;
|
|
TARGET_AUTHORITY = c15155gij6;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return (this.name.hashCode() * 31) + this.value.hashCode();
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Header)) {
|
|
return false;
|
|
}
|
|
Header header = (Header) obj;
|
|
return C14957gcv.b(this.name, header.name) && C14957gcv.b(this.value, header.value);
|
|
}
|
|
|
|
public final Header copy(C15155gij c15155gij, C15155gij c15155gij2) {
|
|
C14957gcv.e(c15155gij, "");
|
|
C14957gcv.e(c15155gij2, "");
|
|
return new Header(c15155gij, c15155gij2);
|
|
}
|
|
|
|
public final C15155gij component2() {
|
|
return this.value;
|
|
}
|
|
|
|
public final C15155gij component1() {
|
|
return this.name;
|
|
}
|
|
|
|
public static /* synthetic */ Header copy$default(Header header, C15155gij c15155gij, C15155gij c15155gij2, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
c15155gij = header.name;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
c15155gij2 = header.value;
|
|
}
|
|
return header.copy(c15155gij, c15155gij2);
|
|
}
|
|
}
|