package o;

import java.io.IOException;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.tF, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2510tF {
    public static final JE[] a;
    public static final Map b;

    static {
        JE je = new JE(JE.i, "");
        C0135Ff c0135Ff = JE.f;
        JE je2 = new JE(c0135Ff, "GET");
        JE je3 = new JE(c0135Ff, "POST");
        C0135Ff c0135Ff2 = JE.g;
        JE je4 = new JE(c0135Ff2, "/");
        JE je5 = new JE(c0135Ff2, "/index.html");
        C0135Ff c0135Ff3 = JE.h;
        JE je6 = new JE(c0135Ff3, "http");
        JE je7 = new JE(c0135Ff3, "https");
        C0135Ff c0135Ff4 = JE.e;
        JE[] jeArr = {je, je2, je3, je4, je5, je6, je7, new JE(c0135Ff4, "200"), new JE(c0135Ff4, "204"), new JE(c0135Ff4, "206"), new JE(c0135Ff4, "304"), new JE(c0135Ff4, "400"), new JE(c0135Ff4, "404"), new JE(c0135Ff4, "500"), new JE("accept-charset", ""), new JE("accept-encoding", "gzip, deflate"), new JE("accept-language", ""), new JE("accept-ranges", ""), new JE("accept", ""), new JE("access-control-allow-origin", ""), new JE("age", ""), new JE("allow", ""), new JE("authorization", ""), new JE("cache-control", ""), new JE("content-disposition", ""), new JE("content-encoding", ""), new JE("content-language", ""), new JE("content-length", ""), new JE("content-location", ""), new JE("content-range", ""), new JE("content-type", ""), new JE("cookie", ""), new JE("date", ""), new JE("etag", ""), new JE("expect", ""), new JE("expires", ""), new JE("from", ""), new JE("host", ""), new JE("if-match", ""), new JE("if-modified-since", ""), new JE("if-none-match", ""), new JE("if-range", ""), new JE("if-unmodified-since", ""), new JE("last-modified", ""), new JE("link", ""), new JE("location", ""), new JE("max-forwards", ""), new JE("proxy-authenticate", ""), new JE("proxy-authorization", ""), new JE("range", ""), new JE("referer", ""), new JE("refresh", ""), new JE("retry-after", ""), new JE("server", ""), new JE("set-cookie", ""), new JE("strict-transport-security", ""), new JE("transfer-encoding", ""), new JE("user-agent", ""), new JE("vary", ""), new JE("via", ""), new JE("www-authenticate", "")};
        a = jeArr;
        LinkedHashMap linkedHashMap = new LinkedHashMap(61);
        for (int i = 0; i < 61; i++) {
            if (!linkedHashMap.containsKey(jeArr[i].a)) {
                linkedHashMap.put(jeArr[i].a, Integer.valueOf(i));
            }
        }
        b = Collections.unmodifiableMap(linkedHashMap);
    }

    public static void a(C0135Ff c0135Ff) throws IOException {
        int iB = c0135Ff.b();
        for (int i = 0; i < iB; i++) {
            byte bG = c0135Ff.g(i);
            if (65 <= bG && bG < 91) {
                throw new IOException("PROTOCOL_ERROR response malformed: mixed case name: ".concat(c0135Ff.n()));
            }
        }
    }
}
