apkfuckery/com.discord/smali_classes2/okhttp3/a/a.smali

1121 lines
27 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lokhttp3/a/a;
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "HttpLoggingInterceptor.kt"
2019-07-24 11:27:29 +00:00
# interfaces
.implements Lokhttp3/Interceptor;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-11-28 00:30:53 +00:00
Lokhttp3/a/a$a;,
Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
}
.end annotation
# instance fields
2019-12-04 22:43:03 +00:00
.field private volatile cxl:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
2019-12-04 22:43:03 +00:00
.field public volatile cxm:Lokhttp3/a/a$a;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
.field private final cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# direct methods
.method private synthetic constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-04 22:43:03 +00:00
sget-object v0, Lokhttp3/a/a$b;->cxt:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
invoke-direct {p0, v0}, Lokhttp3/a/a;-><init>(Lokhttp3/a/a$b;)V
return-void
.end method
.method public constructor <init>(Lokhttp3/a/a$b;)V
.locals 1
2019-11-28 00:30:53 +00:00
const-string v0, "logger"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-04 22:43:03 +00:00
iput-object p1, p0, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {}, Lkotlin/a/ak;->emptySet()Ljava/util/Set;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iput-object p1, p0, Lokhttp3/a/a;->cxl:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
sget-object p1, Lokhttp3/a/a$a;->cxo:Lokhttp3/a/a$a;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iput-object p1, p0, Lokhttp3/a/a;->cxm:Lokhttp3/a/a$a;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-11-28 00:30:53 +00:00
.method private final a(Lokhttp3/Headers;I)V
2019-07-24 11:27:29 +00:00
.locals 3
2019-12-04 22:43:03 +00:00
iget-object v0, p0, Lokhttp3/a/a;->cxl:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {p1, p2}, Lokhttp3/Headers;->fP(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "\u2588\u2588"
goto :goto_0
:cond_0
2019-12-04 22:43:03 +00:00
invoke-virtual {p1, p2}, Lokhttp3/Headers;->fQ(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object v0
:goto_0
2019-12-04 22:43:03 +00:00
iget-object v1, p0, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
2019-12-04 22:43:03 +00:00
invoke-virtual {p1, p2}, Lokhttp3/Headers;->fP(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object p1
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, ": "
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-interface {v1, p1}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
return-void
.end method
2019-11-28 00:30:53 +00:00
.method private static f(Lokhttp3/Headers;)Z
.locals 3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "Content-Encoding"
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {p0, v0}, Lokhttp3/Headers;->eW(Ljava/lang/String;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez p0, :cond_0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return v0
2019-07-24 11:27:29 +00:00
:cond_0
2019-11-28 00:30:53 +00:00
const/4 v1, 0x1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v2, "identity"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0, v2, v1}, Lkotlin/text/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez v2, :cond_1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v2, "gzip"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0, v2, v1}, Lkotlin/text/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result p0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez p0, :cond_1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return v1
2019-07-24 11:27:29 +00:00
:cond_1
return v0
.end method
# virtual methods
.method public final intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
2019-11-28 00:30:53 +00:00
.locals 21
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v1, p0
move-object/from16 v0, p1
2019-11-28 00:30:53 +00:00
const-string v2, "chain"
invoke-static {v0, v2}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-04 22:43:03 +00:00
iget-object v2, v1, Lokhttp3/a/a;->cxm:Lokhttp3/a/a$a;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->PI()Lokhttp3/z;
2019-07-24 11:27:29 +00:00
move-result-object v3
2019-12-04 22:43:03 +00:00
sget-object v4, Lokhttp3/a/a$a;->cxo:Lokhttp3/a/a$a;
2019-07-24 11:27:29 +00:00
if-ne v2, v4, :cond_0
2019-11-28 00:30:53 +00:00
invoke-interface {v0, v3}, Lokhttp3/Interceptor$Chain;->d(Lokhttp3/z;)Lokhttp3/Response;
2019-07-24 11:27:29 +00:00
move-result-object v0
return-object v0
:cond_0
2019-12-04 22:43:03 +00:00
sget-object v4, Lokhttp3/a/a$a;->cxr:Lokhttp3/a/a$a;
2019-07-24 11:27:29 +00:00
if-ne v2, v4, :cond_1
const/4 v4, 0x1
goto :goto_0
:cond_1
const/4 v4, 0x0
:goto_0
if-nez v4, :cond_3
2019-12-04 22:43:03 +00:00
sget-object v7, Lokhttp3/a/a$a;->cxq:Lokhttp3/a/a$a;
2019-07-24 11:27:29 +00:00
if-ne v2, v7, :cond_2
goto :goto_1
:cond_2
const/4 v2, 0x0
goto :goto_2
:cond_3
:goto_1
const/4 v2, 0x1
:goto_2
2019-12-04 22:43:03 +00:00
iget-object v7, v3, Lokhttp3/z;->coM:Lokhttp3/RequestBody;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-interface/range {p1 .. p1}, Lokhttp3/Interceptor$Chain;->QC()Lokhttp3/j;
2019-07-24 11:27:29 +00:00
move-result-object v8
new-instance v9, Ljava/lang/StringBuilder;
const-string v10, "--> "
invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-12-04 22:43:03 +00:00
iget-object v10, v3, Lokhttp3/z;->cpG:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v10, 0x20
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-12-04 22:43:03 +00:00
iget-object v11, v3, Lokhttp3/z;->cjD:Lokhttp3/v;
2019-07-24 11:27:29 +00:00
invoke-virtual {v9, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v11, " "
const-string v12, ""
2019-11-28 00:30:53 +00:00
if-eqz v8, :cond_4
2019-07-24 11:27:29 +00:00
new-instance v13, Ljava/lang/StringBuilder;
invoke-direct {v13, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-12-04 22:43:03 +00:00
invoke-interface {v8}, Lokhttp3/j;->PM()Lokhttp3/x;
2019-07-24 11:27:29 +00:00
move-result-object v8
invoke-virtual {v13, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
2019-11-28 00:30:53 +00:00
goto :goto_3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_4
2019-07-24 11:27:29 +00:00
move-object v8, v12
2019-11-28 00:30:53 +00:00
:goto_3
2019-07-24 11:27:29 +00:00
invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
const-string v9, "-byte body)"
const-string v13, " ("
2019-11-28 00:30:53 +00:00
if-nez v2, :cond_5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz v7, :cond_5
2019-07-24 11:27:29 +00:00
new-instance v14, Ljava/lang/StringBuilder;
invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v14, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v14, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentLength()J
2019-11-28 00:30:53 +00:00
move-result-wide v5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v14, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
invoke-virtual {v14, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
2019-11-28 00:30:53 +00:00
:cond_5
2019-12-04 22:43:03 +00:00
iget-object v5, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v5, v8}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v5, "-byte body omitted)"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v6, "UTF_8"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-wide/16 v16, -0x1
2019-07-24 11:27:29 +00:00
if-eqz v2, :cond_10
2019-12-04 22:43:03 +00:00
iget-object v8, v3, Lokhttp3/z;->coL:Lokhttp3/Headers;
2019-11-28 00:30:53 +00:00
if-eqz v7, :cond_7
2019-07-24 11:27:29 +00:00
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
move-result-object v14
2019-11-28 00:30:53 +00:00
if-eqz v14, :cond_6
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v15, "Content-Type"
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {v8, v15}, Lokhttp3/Headers;->eW(Ljava/lang/String;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v15
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez v15, :cond_6
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v15, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v14}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v14
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v10, "Content-Type: "
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10, v14}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v10
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v15, v10}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_6
2019-07-24 11:27:29 +00:00
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentLength()J
move-result-wide v14
2019-11-28 00:30:53 +00:00
cmp-long v10, v14, v16
if-eqz v10, :cond_7
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v10, "Content-Length"
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {v8, v10}, Lokhttp3/Headers;->eW(Ljava/lang/String;)Ljava/lang/String;
2019-11-28 00:30:53 +00:00
move-result-object v10
if-nez v10, :cond_7
2019-12-04 22:43:03 +00:00
iget-object v10, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
new-instance v14, Ljava/lang/StringBuilder;
const-string v15, "Content-Length: "
invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
move-object v15, v11
move-object/from16 v18, v12
2019-07-24 11:27:29 +00:00
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentLength()J
2019-11-28 00:30:53 +00:00
move-result-wide v11
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v14, v11, v12}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
move-result-object v11
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v10, v11}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto :goto_4
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_7
move-object v15, v11
move-object/from16 v18, v12
:goto_4
2019-12-04 22:43:03 +00:00
iget-object v10, v8, Lokhttp3/Headers;->cnZ:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
array-length v10, v10
div-int/lit8 v10, v10, 0x2
const/4 v11, 0x0
2019-11-28 00:30:53 +00:00
:goto_5
if-ge v11, v10, :cond_8
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v1, v8, v11}, Lokhttp3/a/a;->a(Lokhttp3/Headers;I)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
add-int/lit8 v11, v11, 0x1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto :goto_5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_8
const-string v8, "--> END "
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz v4, :cond_f
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez v7, :cond_9
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto/16 :goto_7
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_9
2019-12-04 22:43:03 +00:00
iget-object v10, v3, Lokhttp3/z;->coL:Lokhttp3/Headers;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v10}, Lokhttp3/a/a;->f(Lokhttp3/Headers;)Z
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v10
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz v10, :cond_a
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v7, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v10, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v10, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v8, v3, Lokhttp3/z;->cpG:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v8, " (encoded body omitted)"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v8
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v7, v8}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:goto_6
move-object/from16 v14, v18
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto/16 :goto_8
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_a
invoke-virtual {v7}, Lokhttp3/RequestBody;->isDuplex()Z
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v10
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz v10, :cond_b
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v7, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v10, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v10, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v8, v3, Lokhttp3/z;->cpG:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v8, " (duplex request body omitted)"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
invoke-interface {v7, v8}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto :goto_6
:cond_b
new-instance v10, Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v10}, Lokio/f;-><init>()V
move-object v11, v10
check-cast v11, Lokio/BufferedSink;
invoke-virtual {v7, v11}, Lokhttp3/RequestBody;->writeTo(Lokio/BufferedSink;)V
2019-07-24 11:27:29 +00:00
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
move-result-object v11
2019-11-28 00:30:53 +00:00
if-eqz v11, :cond_c
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
sget-object v12, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {v11, v12}, Lokhttp3/MediaType;->d(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v11
if-nez v11, :cond_d
:cond_c
sget-object v11, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {v11, v6}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
:cond_d
2019-12-04 22:43:03 +00:00
iget-object v12, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-object/from16 v14, v18
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v12, v14}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v10}, Lokhttp3/a/c;->a(Lokio/f;)Z
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v12
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz v12, :cond_e
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v12, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {v10, v11}, Lokio/f;->e(Ljava/nio/charset/Charset;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v10
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v12, v10}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v10, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-11-28 00:30:53 +00:00
new-instance v11, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v11, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v8, v3, Lokhttp3/z;->cpG:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentLength()J
2019-11-28 00:30:53 +00:00
move-result-wide v7
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v10, v7}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
goto :goto_8
:cond_e
2019-12-04 22:43:03 +00:00
iget-object v10, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v11, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v11, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v8, v3, Lokhttp3/z;->cpG:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v8, " (binary "
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentLength()J
2019-11-28 00:30:53 +00:00
move-result-wide v7
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v10, v7}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
goto :goto_8
:cond_f
:goto_7
2019-11-28 00:30:53 +00:00
move-object/from16 v14, v18
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v7, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v10, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v10, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v8, v3, Lokhttp3/z;->cpG:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v8
invoke-interface {v7, v8}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
goto :goto_8
2019-07-24 11:27:29 +00:00
:cond_10
2019-11-28 00:30:53 +00:00
move-object v15, v11
move-object v14, v12
2019-07-24 11:27:29 +00:00
:goto_8
invoke-static {}, Ljava/lang/System;->nanoTime()J
2019-11-28 00:30:53 +00:00
move-result-wide v7
2019-07-24 11:27:29 +00:00
:try_start_0
2019-11-28 00:30:53 +00:00
invoke-interface {v0, v3}, Lokhttp3/Interceptor$Chain;->d(Lokhttp3/z;)Lokhttp3/Response;
2019-07-24 11:27:29 +00:00
move-result-object v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
sget-object v3, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v10
2019-11-28 00:30:53 +00:00
sub-long/2addr v10, v7
2019-07-24 11:27:29 +00:00
invoke-virtual {v3, v10, v11}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
2019-11-28 00:30:53 +00:00
move-result-wide v7
2019-12-04 22:43:03 +00:00
iget-object v3, v0, Lokhttp3/Response;->cpQ:Lokhttp3/aa;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez v3, :cond_11
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
:cond_11
invoke-virtual {v3}, Lokhttp3/aa;->contentLength()J
2019-07-24 11:27:29 +00:00
move-result-wide v10
2019-11-28 00:30:53 +00:00
cmp-long v12, v10, v16
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz v12, :cond_12
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v12, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v12, v10, v11}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-object/from16 v16, v15
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v15, "-byte"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v12, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v12
2019-07-24 11:27:29 +00:00
goto :goto_9
2019-11-28 00:30:53 +00:00
:cond_12
move-object/from16 v16, v15
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v12, "unknown-length"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:goto_9
2019-12-04 22:43:03 +00:00
iget-object v15, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
move-object/from16 v17, v9
2019-11-28 00:30:53 +00:00
new-instance v9, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-wide/from16 v18, v10
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v10, "<-- "
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget v10, v0, Lokhttp3/Response;->code:I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-object v10, v0, Lokhttp3/Response;->message:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
check-cast v10, Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v10}, Ljava/lang/CharSequence;->length()I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v10
if-nez v10, :cond_13
const/4 v10, 0x1
2019-07-24 11:27:29 +00:00
goto :goto_a
2019-11-28 00:30:53 +00:00
:cond_13
const/4 v10, 0x0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:goto_a
if-eqz v10, :cond_14
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-object/from16 v20, v5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-object v5, v14
goto :goto_b
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_14
2019-07-24 11:27:29 +00:00
iget-object v10, v0, Lokhttp3/Response;->message:Ljava/lang/String;
2019-11-28 00:30:53 +00:00
new-instance v11, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-object/from16 v20, v5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-object/from16 v5, v16
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v11, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v11, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
:goto_b
invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/16 v5, 0x20
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v5, v0, Lokhttp3/Response;->cpP:Lokhttp3/z;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v5, v5, Lokhttp3/z;->cjD:Lokhttp3/v;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v9, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v9, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
const-string v5, "ms"
2019-11-28 00:30:53 +00:00
invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez v2, :cond_15
2019-07-24 11:27:29 +00:00
new-instance v5, Ljava/lang/StringBuilder;
2019-11-28 00:30:53 +00:00
const-string v7, ", "
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v5, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v5, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v7, " body"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
move-result-object v12
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto :goto_c
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_15
move-object v12, v14
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:goto_c
invoke-virtual {v9, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
const/16 v5, 0x29
2019-11-28 00:30:53 +00:00
invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object v5
2019-11-28 00:30:53 +00:00
invoke-interface {v15, v5}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz v2, :cond_20
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v2, v0, Lokhttp3/Response;->coL:Lokhttp3/Headers;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v5, v2, Lokhttp3/Headers;->cnZ:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
array-length v5, v5
div-int/lit8 v5, v5, 0x2
2019-11-28 00:30:53 +00:00
const/4 v7, 0x0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:goto_d
if-ge v7, v5, :cond_16
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v1, v2, v7}, Lokhttp3/a/a;->a(Lokhttp3/Headers;I)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
add-int/lit8 v7, v7, 0x1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto :goto_d
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_16
if-eqz v4, :cond_1f
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokhttp3/internal/c/e;->l(Lokhttp3/Response;)Z
2019-07-24 11:27:29 +00:00
move-result v4
2019-11-28 00:30:53 +00:00
if-nez v4, :cond_17
2019-07-24 11:27:29 +00:00
goto/16 :goto_f
2019-11-28 00:30:53 +00:00
:cond_17
2019-12-04 22:43:03 +00:00
iget-object v4, v0, Lokhttp3/Response;->coL:Lokhttp3/Headers;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v4}, Lokhttp3/a/a;->f(Lokhttp3/Headers;)Z
2019-07-24 11:27:29 +00:00
move-result v4
2019-11-28 00:30:53 +00:00
if-eqz v4, :cond_18
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v2, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
const-string v3, "<-- END HTTP (encoded body omitted)"
invoke-interface {v2, v3}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
goto/16 :goto_10
2019-11-28 00:30:53 +00:00
:cond_18
2019-12-04 22:43:03 +00:00
invoke-virtual {v3}, Lokhttp3/aa;->PE()Lokio/g;
2019-07-24 11:27:29 +00:00
move-result-object v4
2019-11-28 00:30:53 +00:00
const-wide v7, 0x7fffffffffffffffL
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v4, v7, v8}, Lokio/g;->request(J)Z
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-interface {v4}, Lokio/g;->SK()Lokio/f;
2019-07-24 11:27:29 +00:00
move-result-object v4
const-string v5, "Content-Encoding"
2019-12-04 22:43:03 +00:00
invoke-virtual {v2, v5}, Lokhttp3/Headers;->eW(Ljava/lang/String;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object v2
const-string v5, "gzip"
2019-11-28 00:30:53 +00:00
const/4 v7, 0x1
invoke-static {v5, v2, v7}, Lkotlin/text/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2019-07-24 11:27:29 +00:00
move-result v2
const/4 v5, 0x0
2019-11-28 00:30:53 +00:00
if-eqz v2, :cond_19
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-wide v7, v4, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
2019-07-24 11:27:29 +00:00
move-result-object v2
2019-11-28 00:30:53 +00:00
new-instance v7, Lokio/k;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {v4}, Lokio/f;->SW()Lokio/f;
2019-07-24 11:27:29 +00:00
move-result-object v4
2019-11-28 00:30:53 +00:00
check-cast v4, Lokio/x;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v7, v4}, Lokio/k;-><init>(Lokio/x;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
check-cast v7, Ljava/io/Closeable;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:try_start_1
move-object v4, v7
check-cast v4, Lokio/k;
new-instance v8, Lokio/f;
invoke-direct {v8}, Lokio/f;-><init>()V
check-cast v4, Lokio/x;
invoke-virtual {v8, v4}, Lokio/f;->b(Lokio/x;)J
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-static {v7, v5}, Lkotlin/d/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-object v4, v8
2019-07-24 11:27:29 +00:00
goto :goto_e
:catchall_0
move-exception v0
2019-11-28 00:30:53 +00:00
move-object v2, v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:try_start_2
throw v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
2019-07-24 11:27:29 +00:00
:catchall_1
move-exception v0
2019-11-28 00:30:53 +00:00
move-object v3, v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v7, v2}, Lkotlin/d/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
throw v3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_19
2019-07-24 11:27:29 +00:00
move-object v2, v5
:goto_e
2019-11-28 00:30:53 +00:00
invoke-virtual {v3}, Lokhttp3/aa;->contentType()Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
move-result-object v3
2019-11-28 00:30:53 +00:00
if-eqz v3, :cond_1a
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
sget-object v5, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {v3, v5}, Lokhttp3/MediaType;->d(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez v3, :cond_1b
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_1a
sget-object v3, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v3, v6}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_1b
invoke-static {v4}, Lokhttp3/a/c;->a(Lokio/f;)Z
move-result v5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez v5, :cond_1c
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v2, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-11-28 00:30:53 +00:00
invoke-interface {v2, v14}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-12-04 22:43:03 +00:00
iget-object v2, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
new-instance v3, Ljava/lang/StringBuilder;
const-string v5, "<-- END HTTP (binary "
invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
iget-wide v4, v4, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
2019-11-28 00:30:53 +00:00
move-object/from16 v4, v20
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
return-object v0
2019-11-28 00:30:53 +00:00
:cond_1c
const-wide/16 v5, 0x0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
cmp-long v7, v18, v5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz v7, :cond_1d
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v5, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v5, v14}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v5, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
invoke-virtual {v4}, Lokio/f;->SW()Lokio/f;
2019-07-24 11:27:29 +00:00
move-result-object v6
2019-12-04 22:43:03 +00:00
invoke-virtual {v6, v3}, Lokio/f;->e(Ljava/nio/charset/Charset;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v5, v3}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_1d
2019-07-24 11:27:29 +00:00
const-string v3, "<-- END HTTP ("
2019-11-28 00:30:53 +00:00
if-eqz v2, :cond_1e
2019-07-24 11:27:29 +00:00
2019-12-04 22:43:03 +00:00
iget-object v5, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
iget-wide v3, v4, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
invoke-virtual {v6, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v3, "-byte, "
invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, "-gzipped-byte body)"
invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-interface {v5, v2}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
goto :goto_10
2019-11-28 00:30:53 +00:00
:cond_1e
2019-12-04 22:43:03 +00:00
iget-object v2, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
iget-wide v3, v4, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
invoke-virtual {v5, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-object/from16 v3, v17
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
goto :goto_10
2019-11-28 00:30:53 +00:00
:cond_1f
2019-07-24 11:27:29 +00:00
:goto_f
2019-12-04 22:43:03 +00:00
iget-object v2, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
const-string v3, "<-- END HTTP"
invoke-interface {v2, v3}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
:cond_20
2019-07-24 11:27:29 +00:00
:goto_10
return-object v0
:catch_0
move-exception v0
move-object v2, v0
2019-12-04 22:43:03 +00:00
iget-object v0, v1, Lokhttp3/a/a;->cxn:Lokhttp3/a/a$b;
2019-07-24 11:27:29 +00:00
invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
const-string v4, "<-- HTTP FAILED: "
invoke-virtual {v4, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v3}, Lokhttp3/a/a$b;->log(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
move-object v0, v2
check-cast v0, Ljava/lang/Throwable;
throw v0
2019-07-24 11:27:29 +00:00
.end method