apkfuckery/com.discord/smali/okhttp3/internal/framed/Hpack.smali
2019-02-04 21:05:16 +01:00

975 lines
23 KiB
Smali

.class final Lokhttp3/internal/framed/Hpack;
.super Ljava/lang/Object;
.source "Hpack.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/framed/Hpack$Writer;,
Lokhttp3/internal/framed/Hpack$Reader;
}
.end annotation
# static fields
.field private static final NAME_TO_FIRST_INDEX:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map",
"<",
"Lokio/ByteString;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field private static final PREFIX_4_BITS:I = 0xf
.field private static final PREFIX_5_BITS:I = 0x1f
.field private static final PREFIX_6_BITS:I = 0x3f
.field private static final PREFIX_7_BITS:I = 0x7f
.field private static final STATIC_HEADER_TABLE:[Lokhttp3/internal/framed/Header;
# direct methods
.method static constructor <clinit>()V
.locals 5
.prologue
const/16 v0, 0x3d
new-array v0, v0, [Lokhttp3/internal/framed/Header;
const/4 v1, 0x0
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->TARGET_AUTHORITY:Lokio/ByteString;
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x1
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->TARGET_METHOD:Lokio/ByteString;
const-string v4, "GET"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x2
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->TARGET_METHOD:Lokio/ByteString;
const-string v4, "POST"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x3
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->TARGET_PATH:Lokio/ByteString;
const-string v4, "/"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x4
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->TARGET_PATH:Lokio/ByteString;
const-string v4, "/index.html"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x5
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->TARGET_SCHEME:Lokio/ByteString;
const-string v4, "http"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x6
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->TARGET_SCHEME:Lokio/ByteString;
const-string v4, "https"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x7
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->RESPONSE_STATUS:Lokio/ByteString;
const-string v4, "200"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x8
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->RESPONSE_STATUS:Lokio/ByteString;
const-string v4, "204"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x9
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->RESPONSE_STATUS:Lokio/ByteString;
const-string v4, "206"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xa
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->RESPONSE_STATUS:Lokio/ByteString;
const-string v4, "304"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xb
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->RESPONSE_STATUS:Lokio/ByteString;
const-string v4, "400"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xc
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->RESPONSE_STATUS:Lokio/ByteString;
const-string v4, "404"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xd
new-instance v2, Lokhttp3/internal/framed/Header;
sget-object v3, Lokhttp3/internal/framed/Header;->RESPONSE_STATUS:Lokio/ByteString;
const-string v4, "500"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xe
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "accept-charset"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xf
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "accept-encoding"
const-string v4, "gzip, deflate"
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x10
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "accept-language"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x11
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "accept-ranges"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x12
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "accept"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x13
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "access-control-allow-origin"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x14
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "age"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x15
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "allow"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x16
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "authorization"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x17
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "cache-control"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x18
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "content-disposition"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x19
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "content-encoding"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x1a
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "content-language"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x1b
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "content-length"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x1c
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "content-location"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x1d
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "content-range"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x1e
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "content-type"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x1f
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "cookie"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x20
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "date"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x21
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "etag"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x22
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "expect"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x23
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "expires"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x24
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "from"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x25
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "host"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x26
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "if-match"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x27
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "if-modified-since"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x28
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "if-none-match"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x29
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "if-range"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x2a
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "if-unmodified-since"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x2b
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "last-modified"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x2c
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "link"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x2d
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "location"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x2e
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "max-forwards"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x2f
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "proxy-authenticate"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x30
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "proxy-authorization"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x31
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "range"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x32
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "referer"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x33
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "refresh"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x34
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "retry-after"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x35
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "server"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x36
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "set-cookie"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x37
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "strict-transport-security"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x38
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "transfer-encoding"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x39
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "user-agent"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x3a
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "vary"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x3b
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "via"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x3c
new-instance v2, Lokhttp3/internal/framed/Header;
const-string v3, "www-authenticate"
const-string v4, ""
invoke-direct {v2, v3, v4}, Lokhttp3/internal/framed/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
sput-object v0, Lokhttp3/internal/framed/Hpack;->STATIC_HEADER_TABLE:[Lokhttp3/internal/framed/Header;
invoke-static {}, Lokhttp3/internal/framed/Hpack;->nameToFirstIndex()Ljava/util/Map;
move-result-object v0
sput-object v0, Lokhttp3/internal/framed/Hpack;->NAME_TO_FIRST_INDEX:Ljava/util/Map;
return-void
.end method
.method private constructor <init>()V
.locals 0
.prologue
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic access$000()[Lokhttp3/internal/framed/Header;
.locals 1
.prologue
sget-object v0, Lokhttp3/internal/framed/Hpack;->STATIC_HEADER_TABLE:[Lokhttp3/internal/framed/Header;
return-object v0
.end method
.method static synthetic access$100(Lokio/ByteString;)Lokio/ByteString;
.locals 1
.param p0, "x0" # Lokio/ByteString;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
invoke-static {p0}, Lokhttp3/internal/framed/Hpack;->checkLowercase(Lokio/ByteString;)Lokio/ByteString;
move-result-object v0
return-object v0
.end method
.method static synthetic access$200()Ljava/util/Map;
.locals 1
.prologue
sget-object v0, Lokhttp3/internal/framed/Hpack;->NAME_TO_FIRST_INDEX:Ljava/util/Map;
return-object v0
.end method
.method private static checkLowercase(Lokio/ByteString;)Lokio/ByteString;
.locals 6
.param p0, "name" # Lokio/ByteString;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.prologue
const/4 v1, 0x0
.local v1, "i":I
invoke-virtual {p0}, Lokio/ByteString;->size()I
move-result v2
.local v2, "length":I
:goto_0
if-ge v1, v2, :cond_1
invoke-virtual {p0, v1}, Lokio/ByteString;->getByte(I)B
move-result v0
.local v0, "c":B
const/16 v3, 0x41
if-lt v0, v3, :cond_0
const/16 v3, 0x5a
if-gt v0, v3, :cond_0
new-instance v3, Ljava/io/IOException;
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "PROTOCOL_ERROR response malformed: mixed case name: "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {p0}, Lokio/ByteString;->utf8()Ljava/lang/String;
move-result-object v5
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-direct {v3, v4}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v3
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
.end local v0 # "c":B
:cond_1
return-object p0
.end method
.method private static nameToFirstIndex()Ljava/util/Map;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map",
"<",
"Lokio/ByteString;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.prologue
new-instance v1, Ljava/util/LinkedHashMap;
sget-object v2, Lokhttp3/internal/framed/Hpack;->STATIC_HEADER_TABLE:[Lokhttp3/internal/framed/Header;
array-length v2, v2
invoke-direct {v1, v2}, Ljava/util/LinkedHashMap;-><init>(I)V
.local v1, "result":Ljava/util/Map;, "Ljava/util/Map<Lokio/ByteString;Ljava/lang/Integer;>;"
const/4 v0, 0x0
.local v0, "i":I
:goto_0
sget-object v2, Lokhttp3/internal/framed/Hpack;->STATIC_HEADER_TABLE:[Lokhttp3/internal/framed/Header;
array-length v2, v2
if-ge v0, v2, :cond_1
sget-object v2, Lokhttp3/internal/framed/Hpack;->STATIC_HEADER_TABLE:[Lokhttp3/internal/framed/Header;
aget-object v2, v2, v0
iget-object v2, v2, Lokhttp3/internal/framed/Header;->name:Lokio/ByteString;
invoke-interface {v1, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_0
sget-object v2, Lokhttp3/internal/framed/Hpack;->STATIC_HEADER_TABLE:[Lokhttp3/internal/framed/Header;
aget-object v2, v2, v0
iget-object v2, v2, Lokhttp3/internal/framed/Header;->name:Lokio/ByteString;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-interface {v1, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
invoke-static {v1}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v2
return-object v2
.end method