package o; import com.airbnb.deeplinkdispatch.UrlTreeKt; import o.C12988fNa; /* renamed from: o.fNh, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C12995fNh { private final String a; public final C12994fNg b; public final C12988fNa c; private final AbstractC12996fNi d; private final Object e; public /* synthetic */ C12995fNh(LWm lWm, byte b) { this(lWm); } private C12995fNh(LWm lWm) { this.b = lWm.d; this.a = lWm.e; this.c = new C12988fNa(lWm.b, (byte) 0); this.d = lWm.a; Object obj = lWm.c; this.e = this; } public final String toString() { StringBuilder sb = new StringBuilder("Request{method="); sb.append(this.a); sb.append(", url="); sb.append(this.b); sb.append(", tag="); Object obj = this.e; if (obj == this) { obj = null; } sb.append(obj); sb.append(UrlTreeKt.componentParamSuffixChar); return sb.toString(); } /* renamed from: o.fNh$LWm */ /* loaded from: classes5.dex */ public static class LWm { AbstractC12996fNi a; Object c; public C12994fNg d; String e = "GET"; C12988fNa.Sts b = new C12988fNa.Sts(); public final LWm a(String str, String str2) { C12988fNa.Sts sts = this.b; if (str.isEmpty()) { throw new IllegalArgumentException("name is empty"); } int length = str.length(); int i = 0; for (int i2 = 0; i2 < length; i2++) { char charAt = str.charAt(i2); if (charAt <= 31 || charAt >= 127) { throw new IllegalArgumentException(String.format("Unexpected char %#04x at %d in header name: %s", Integer.valueOf(charAt), Integer.valueOf(i2), str)); } } if (str2 == null) { throw new IllegalArgumentException("value == null"); } int length2 = str2.length(); for (int i3 = 0; i3 < length2; i3++) { char charAt2 = str2.charAt(i3); if (charAt2 <= 31 || charAt2 >= 127) { throw new IllegalArgumentException(String.format("Unexpected char %#04x at %d in header value: %s", Integer.valueOf(charAt2), Integer.valueOf(i3), str2)); } } while (i < sts.c.size()) { if (str.equalsIgnoreCase(sts.c.get(i))) { sts.c.remove(i); sts.c.remove(i); i -= 2; } i += 2; } sts.c.add(str); sts.c.add(str2.trim()); return this; } } }