Weather/smali_classes4/okhttp3/internal/http2/Http2Codec.smali
2021-05-10 10:13:34 +02:00

850 lines
21 KiB
Smali

.class public final Lokhttp3/internal/http2/Http2Codec;
.super Ljava/lang/Object;
.source "Http2Codec.java"
# interfaces
.implements Lokhttp3/internal/http/HttpCodec;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/http2/Http2Codec$StreamFinishingSource;
}
.end annotation
# static fields
.field private static final b:Lokio/ByteString;
.field private static final c:Lokio/ByteString;
.field private static final d:Lokio/ByteString;
.field private static final e:Lokio/ByteString;
.field private static final f:Lokio/ByteString;
.field private static final g:Lokio/ByteString;
.field private static final h:Lokio/ByteString;
.field private static final i:Lokio/ByteString;
.field private static final j:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokio/ByteString;",
">;"
}
.end annotation
.end field
.field private static final k:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokio/ByteString;",
">;"
}
.end annotation
.end field
# instance fields
.field final a:Lokhttp3/internal/connection/StreamAllocation;
.field private final l:Lokhttp3/OkHttpClient;
.field private final m:Lokhttp3/internal/http2/Http2Connection;
.field private n:Lokhttp3/internal/http2/Http2Stream;
# direct methods
.method static constructor <clinit>()V
.locals 12
const-string v0, "connection"
.line 52
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->b:Lokio/ByteString;
const-string v0, "host"
.line 53
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->c:Lokio/ByteString;
const-string v0, "keep-alive"
.line 54
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->d:Lokio/ByteString;
const-string v0, "proxy-connection"
.line 55
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->e:Lokio/ByteString;
const-string v0, "transfer-encoding"
.line 56
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->f:Lokio/ByteString;
const-string v0, "te"
.line 57
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->g:Lokio/ByteString;
const-string v0, "encoding"
.line 58
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->h:Lokio/ByteString;
const-string v0, "upgrade"
.line 59
invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->i:Lokio/ByteString;
const/16 v0, 0xc
.line 62
new-array v0, v0, [Lokio/ByteString;
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->b:Lokio/ByteString;
const/4 v2, 0x0
aput-object v1, v0, v2
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->c:Lokio/ByteString;
const/4 v3, 0x1
aput-object v1, v0, v3
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->d:Lokio/ByteString;
const/4 v4, 0x2
aput-object v1, v0, v4
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->e:Lokio/ByteString;
const/4 v5, 0x3
aput-object v1, v0, v5
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->g:Lokio/ByteString;
const/4 v6, 0x4
aput-object v1, v0, v6
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->f:Lokio/ByteString;
const/4 v7, 0x5
aput-object v1, v0, v7
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->h:Lokio/ByteString;
const/4 v8, 0x6
aput-object v1, v0, v8
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->i:Lokio/ByteString;
const/4 v9, 0x7
aput-object v1, v0, v9
sget-object v1, Lokhttp3/internal/http2/Header;->c:Lokio/ByteString;
const/16 v10, 0x8
aput-object v1, v0, v10
sget-object v1, Lokhttp3/internal/http2/Header;->d:Lokio/ByteString;
const/16 v11, 0x9
aput-object v1, v0, v11
sget-object v1, Lokhttp3/internal/http2/Header;->e:Lokio/ByteString;
const/16 v11, 0xa
aput-object v1, v0, v11
sget-object v1, Lokhttp3/internal/http2/Header;->f:Lokio/ByteString;
const/16 v11, 0xb
aput-object v1, v0, v11
invoke-static {v0}, Lokhttp3/internal/Util;->a([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->j:Ljava/util/List;
.line 75
new-array v0, v10, [Lokio/ByteString;
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->b:Lokio/ByteString;
aput-object v1, v0, v2
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->c:Lokio/ByteString;
aput-object v1, v0, v3
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->d:Lokio/ByteString;
aput-object v1, v0, v4
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->e:Lokio/ByteString;
aput-object v1, v0, v5
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->g:Lokio/ByteString;
aput-object v1, v0, v6
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->f:Lokio/ByteString;
aput-object v1, v0, v7
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->h:Lokio/ByteString;
aput-object v1, v0, v8
sget-object v1, Lokhttp3/internal/http2/Http2Codec;->i:Lokio/ByteString;
aput-object v1, v0, v9
invoke-static {v0}, Lokhttp3/internal/Util;->a([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
sput-object v0, Lokhttp3/internal/http2/Http2Codec;->k:Ljava/util/List;
return-void
.end method
.method public constructor <init>(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http2/Http2Connection;)V
.locals 0
.line 91
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 92
iput-object p1, p0, Lokhttp3/internal/http2/Http2Codec;->l:Lokhttp3/OkHttpClient;
.line 93
iput-object p2, p0, Lokhttp3/internal/http2/Http2Codec;->a:Lokhttp3/internal/connection/StreamAllocation;
.line 94
iput-object p3, p0, Lokhttp3/internal/http2/Http2Codec;->m:Lokhttp3/internal/http2/Http2Connection;
return-void
.end method
.method public static a(Ljava/util/List;)Lokhttp3/Response$Builder;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lokhttp3/internal/http2/Header;",
">;)",
"Lokhttp3/Response$Builder;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 152
new-instance v0, Lokhttp3/Headers$Builder;
invoke-direct {v0}, Lokhttp3/Headers$Builder;-><init>()V
.line 153
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x0
const/4 v3, 0x0
move-object v4, v0
move-object v0, v2
:goto_0
if-ge v3, v1, :cond_3
.line 154
invoke-interface {p0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lokhttp3/internal/http2/Header;
if-nez v5, :cond_0
if-eqz v0, :cond_2
.line 159
iget v5, v0, Lokhttp3/internal/http/StatusLine;->b:I
const/16 v6, 0x64
if-ne v5, v6, :cond_2
.line 161
new-instance v0, Lokhttp3/Headers$Builder;
invoke-direct {v0}, Lokhttp3/Headers$Builder;-><init>()V
move-object v4, v0
move-object v0, v2
goto :goto_1
.line 166
:cond_0
iget-object v6, v5, Lokhttp3/internal/http2/Header;->g:Lokio/ByteString;
.line 167
iget-object v5, v5, Lokhttp3/internal/http2/Header;->h:Lokio/ByteString;
invoke-virtual {v5}, Lokio/ByteString;->utf8()Ljava/lang/String;
move-result-object v5
.line 168
sget-object v7, Lokhttp3/internal/http2/Header;->b:Lokio/ByteString;
invoke-virtual {v6, v7}, Lokio/ByteString;->equals(Ljava/lang/Object;)Z
move-result v7
if-eqz v7, :cond_1
.line 169
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v6, "HTTP/1.1 "
invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lokhttp3/internal/http/StatusLine;->a(Ljava/lang/String;)Lokhttp3/internal/http/StatusLine;
move-result-object v0
goto :goto_1
.line 170
:cond_1
sget-object v7, Lokhttp3/internal/http2/Http2Codec;->k:Ljava/util/List;
invoke-interface {v7, v6}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v7
if-nez v7, :cond_2
.line 171
sget-object v7, Lokhttp3/internal/Internal;->a:Lokhttp3/internal/Internal;
invoke-virtual {v6}, Lokio/ByteString;->utf8()Ljava/lang/String;
move-result-object v6
invoke-virtual {v7, v4, v6, v5}, Lokhttp3/internal/Internal;->a(Lokhttp3/Headers$Builder;Ljava/lang/String;Ljava/lang/String;)V
:cond_2
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_3
if-eqz v0, :cond_4
.line 176
new-instance p0, Lokhttp3/Response$Builder;
invoke-direct {p0}, Lokhttp3/Response$Builder;-><init>()V
sget-object v1, Lokhttp3/Protocol;->HTTP_2:Lokhttp3/Protocol;
.line 177
invoke-virtual {p0, v1}, Lokhttp3/Response$Builder;->a(Lokhttp3/Protocol;)Lokhttp3/Response$Builder;
move-result-object p0
iget v1, v0, Lokhttp3/internal/http/StatusLine;->b:I
.line 178
invoke-virtual {p0, v1}, Lokhttp3/Response$Builder;->a(I)Lokhttp3/Response$Builder;
move-result-object p0
iget-object v0, v0, Lokhttp3/internal/http/StatusLine;->c:Ljava/lang/String;
.line 179
invoke-virtual {p0, v0}, Lokhttp3/Response$Builder;->a(Ljava/lang/String;)Lokhttp3/Response$Builder;
move-result-object p0
.line 180
invoke-virtual {v4}, Lokhttp3/Headers$Builder;->a()Lokhttp3/Headers;
move-result-object v0
invoke-virtual {p0, v0}, Lokhttp3/Response$Builder;->a(Lokhttp3/Headers;)Lokhttp3/Response$Builder;
move-result-object p0
return-object p0
.line 174
:cond_4
new-instance p0, Ljava/net/ProtocolException;
const-string v0, "Expected \':status\' header not present"
invoke-direct {p0, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static b(Lokhttp3/Request;)Ljava/util/List;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Request;",
")",
"Ljava/util/List<",
"Lokhttp3/internal/http2/Header;",
">;"
}
.end annotation
.line 129
invoke-virtual {p0}, Lokhttp3/Request;->c()Lokhttp3/Headers;
move-result-object v0
.line 130
new-instance v1, Ljava/util/ArrayList;
invoke-virtual {v0}, Lokhttp3/Headers;->a()I
move-result v2
add-int/lit8 v2, v2, 0x4
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
.line 131
new-instance v2, Lokhttp3/internal/http2/Header;
sget-object v3, Lokhttp3/internal/http2/Header;->c:Lokio/ByteString;
invoke-virtual {p0}, Lokhttp3/Request;->b()Ljava/lang/String;
move-result-object v4
invoke-direct {v2, v3, v4}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 132
new-instance v2, Lokhttp3/internal/http2/Header;
sget-object v3, Lokhttp3/internal/http2/Header;->d:Lokio/ByteString;
invoke-virtual {p0}, Lokhttp3/Request;->a()Lokhttp3/HttpUrl;
move-result-object v4
invoke-static {v4}, Lokhttp3/internal/http/RequestLine;->a(Lokhttp3/HttpUrl;)Ljava/lang/String;
move-result-object v4
invoke-direct {v2, v3, v4}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const-string v2, "Host"
.line 133
invoke-virtual {p0, v2}, Lokhttp3/Request;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_0
.line 135
new-instance v3, Lokhttp3/internal/http2/Header;
sget-object v4, Lokhttp3/internal/http2/Header;->f:Lokio/ByteString;
invoke-direct {v3, v4, v2}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 137
:cond_0
new-instance v2, Lokhttp3/internal/http2/Header;
sget-object v3, Lokhttp3/internal/http2/Header;->e:Lokio/ByteString;
invoke-virtual {p0}, Lokhttp3/Request;->a()Lokhttp3/HttpUrl;
move-result-object p0
invoke-virtual {p0}, Lokhttp3/HttpUrl;->c()Ljava/lang/String;
move-result-object p0
invoke-direct {v2, v3, p0}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const/4 p0, 0x0
.line 139
invoke-virtual {v0}, Lokhttp3/Headers;->a()I
move-result v2
:goto_0
if-ge p0, v2, :cond_2
.line 141
invoke-virtual {v0, p0}, Lokhttp3/Headers;->a(I)Ljava/lang/String;
move-result-object v3
sget-object v4, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-virtual {v3, v4}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v3
invoke-static {v3}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
move-result-object v3
.line 142
sget-object v4, Lokhttp3/internal/http2/Http2Codec;->j:Ljava/util/List;
invoke-interface {v4, v3}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_1
.line 143
new-instance v4, Lokhttp3/internal/http2/Header;
invoke-virtual {v0, p0}, Lokhttp3/Headers;->b(I)Ljava/lang/String;
move-result-object v5
invoke-direct {v4, v3, v5}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_1
add-int/lit8 p0, p0, 0x1
goto :goto_0
:cond_2
return-object v1
.end method
# virtual methods
.method public a(Z)Lokhttp3/Response$Builder;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 120
iget-object v0, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->d()Ljava/util/List;
move-result-object v0
.line 121
invoke-static {v0}, Lokhttp3/internal/http2/Http2Codec;->a(Ljava/util/List;)Lokhttp3/Response$Builder;
move-result-object v0
if-eqz p1, :cond_0
.line 122
sget-object p1, Lokhttp3/internal/Internal;->a:Lokhttp3/internal/Internal;
invoke-virtual {p1, v0}, Lokhttp3/internal/Internal;->a(Lokhttp3/Response$Builder;)I
move-result p1
const/16 v1, 0x64
if-ne p1, v1, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
return-object v0
.end method
.method public a(Lokhttp3/Response;)Lokhttp3/ResponseBody;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 184
new-instance v0, Lokhttp3/internal/http2/Http2Codec$StreamFinishingSource;
iget-object v1, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->g()Lokio/Source;
move-result-object v1
invoke-direct {v0, p0, v1}, Lokhttp3/internal/http2/Http2Codec$StreamFinishingSource;-><init>(Lokhttp3/internal/http2/Http2Codec;Lokio/Source;)V
.line 185
new-instance v1, Lokhttp3/internal/http/RealResponseBody;
invoke-virtual {p1}, Lokhttp3/Response;->g()Lokhttp3/Headers;
move-result-object p1
invoke-static {v0}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
move-result-object v0
invoke-direct {v1, p1, v0}, Lokhttp3/internal/http/RealResponseBody;-><init>(Lokhttp3/Headers;Lokio/BufferedSource;)V
return-object v1
.end method
.method public a(Lokhttp3/Request;J)Lokio/Sink;
.locals 0
.line 98
iget-object p1, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Stream;->h()Lokio/Sink;
move-result-object p1
return-object p1
.end method
.method public a()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 112
iget-object v0, p0, Lokhttp3/internal/http2/Http2Codec;->m:Lokhttp3/internal/http2/Http2Connection;
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Connection;->b()V
return-void
.end method
.method public a(Lokhttp3/Request;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 102
iget-object v0, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
if-eqz v0, :cond_0
return-void
.line 104
:cond_0
invoke-virtual {p1}, Lokhttp3/Request;->d()Lokhttp3/RequestBody;
move-result-object v0
if-eqz v0, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
.line 105
:goto_0
invoke-static {p1}, Lokhttp3/internal/http2/Http2Codec;->b(Lokhttp3/Request;)Ljava/util/List;
move-result-object p1
.line 106
iget-object v1, p0, Lokhttp3/internal/http2/Http2Codec;->m:Lokhttp3/internal/http2/Http2Connection;
invoke-virtual {v1, p1, v0}, Lokhttp3/internal/http2/Http2Connection;->a(Ljava/util/List;Z)Lokhttp3/internal/http2/Http2Stream;
move-result-object p1
iput-object p1, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
.line 107
iget-object p1, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Stream;->e()Lokio/Timeout;
move-result-object p1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Codec;->l:Lokhttp3/OkHttpClient;
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->b()I
move-result v0
int-to-long v0, v0
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {p1, v0, v1, v2}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
.line 108
iget-object p1, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Stream;->f()Lokio/Timeout;
move-result-object p1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Codec;->l:Lokhttp3/OkHttpClient;
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->c()I
move-result v0
int-to-long v0, v0
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {p1, v0, v1, v2}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
return-void
.end method
.method public b()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 116
iget-object v0, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->h()Lokio/Sink;
move-result-object v0
invoke-interface {v0}, Lokio/Sink;->close()V
return-void
.end method
.method public c()V
.locals 2
.line 189
iget-object v0, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/internal/http2/Http2Codec;->n:Lokhttp3/internal/http2/Http2Stream;
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
invoke-virtual {v0, v1}, Lokhttp3/internal/http2/Http2Stream;->b(Lokhttp3/internal/http2/ErrorCode;)V
:cond_0
return-void
.end method