Exchange.smali
.class public final Lokhttp3/internal/connection/Exchange;
.super Ljava/lang/Object;
.source "Exchange.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/connection/Exchange$RequestBodySink;,
Lokhttp3/internal/connection/Exchange$ResponseBodySource;,
Lokhttp3/internal/connection/Exchange$Companion;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000~\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0010\u000b\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0006\u0018\u0000 ?2\u00020\u0001:\u0003?@AB-\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\u0008\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\u000b\u00a2\u0006\u0002\u0010\u000cJ7\u0010\u0017\u001a\u0002H\u0018\"\n\u0008\u0000\u0010\u0018*\u0004\u0018\u00010\u00192\u0006\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u00122\u0006\u0010\u001d\u001a\u00020\u00122\u0006\u0010\u001e\u001a\u0002H\u0018\u00a2\u0006\u0002\u0010\u001fJ\u0006\u0010 \u001a\u00020!J\u0008\u0010\"\u001a\u0004\u0018\u00010#J\u0016\u0010$\u001a\u00020%2\u0006\u0010&\u001a\u00020\'2\u0006\u0010(\u001a\u00020\u0012J\u0006\u0010)\u001a\u00020!J\u0006\u0010*\u001a\u00020!J\u0006\u0010+\u001a\u00020!J\u0006\u0010,\u001a\u00020-J\u0006\u0010.\u001a\u00020!J\u0006\u0010/\u001a\u00020!J\u000e\u00100\u001a\u0002012\u0006\u00102\u001a\u000203J\u0010\u00104\u001a\u0004\u0018\u0001052\u0006\u00106\u001a\u00020\u0012J\u000e\u00107\u001a\u00020!2\u0006\u00102\u001a\u000203J\u0006\u00108\u001a\u00020!J\u0006\u00109\u001a\u00020!J\u0010\u0010:\u001a\u00020!2\u0006\u0010\u001e\u001a\u00020\u0019H\u0002J\u0006\u0010;\u001a\u00020<J\u0006\u0010=\u001a\u00020!J\u000e\u0010>\u001a\u00020!2\u0006\u0010&\u001a\u00020\'R\u0014\u0010\u0004\u001a\u00020\u0005X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\r\u0010\u000eR\u000e\u0010\n\u001a\u00020\u000bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\u00020\u0007X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000f\u0010\u0010R\u000e\u0010\u0008\u001a\u00020\tX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001e\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0011\u001a\u00020\u0012@BX\u0086\u000e\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0013\u0010\u0014R\u0014\u0010\u0002\u001a\u00020\u0003X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0015\u0010\u0016\u00a8\u0006B"
}
d2 = {
"Lokhttp3/internal/connection/Exchange;",
"",
"transmitter",
"Lokhttp3/internal/connection/Transmitter;",
"call",
"Lokhttp3/Call;",
"eventListener",
"Lokhttp3/EventListener;",
"finder",
"Lokhttp3/internal/connection/ExchangeFinder;",
"codec",
"Lokhttp3/internal/http/ExchangeCodec;",
"(Lokhttp3/internal/connection/Transmitter;Lokhttp3/Call;Lokhttp3/EventListener;Lokhttp3/internal/connection/ExchangeFinder;Lokhttp3/internal/http/ExchangeCodec;)V",
"getCall$okhttp",
"()Lokhttp3/Call;",
"getEventListener$okhttp",
"()Lokhttp3/EventListener;",
"<set-?>",
"",
"isDuplex",
"()Z",
"getTransmitter$okhttp",
"()Lokhttp3/internal/connection/Transmitter;",
"bodyComplete",
"E",
"Ljava/io/IOException;",
"bytesRead",
"",
"responseDone",
"requestDone",
"e",
"(JZZLjava/io/IOException;)Ljava/io/IOException;",
"cancel",
"",
"connection",
"Lokhttp3/internal/connection/RealConnection;",
"createRequestBody",
"Lokio/Sink;",
"request",
"Lokhttp3/Request;",
"duplex",
"detachWithViolence",
"finishRequest",
"flushRequest",
"newWebSocketStreams",
"Lokhttp3/internal/ws/RealWebSocket$Streams;",
"noNewExchangesOnConnection",
"noRequestBody",
"openResponseBody",
"Lokhttp3/ResponseBody;",
"response",
"Lokhttp3/Response;",
"readResponseHeaders",
"Lokhttp3/Response$Builder;",
"expectContinue",
"responseHeadersEnd",
"responseHeadersStart",
"timeoutEarlyExit",
"trackFailure",
"trailers",
"Lokhttp3/Headers;",
"webSocketUpgradeFailed",
"writeRequestHeaders",
"Companion",
"RequestBodySink",
"ResponseBodySource",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x1,
0x10
}
.end annotation
# static fields
.field public static final Companion:Lokhttp3/internal/connection/Exchange$Companion;
# instance fields
.field private final call:Lokhttp3/Call;
.field private final codec:Lokhttp3/internal/http/ExchangeCodec;
.field private final eventListener:Lokhttp3/EventListener;
.field private final finder:Lokhttp3/internal/connection/ExchangeFinder;
.field private isDuplex:Z
.field private final transmitter:Lokhttp3/internal/connection/Transmitter;
# direct methods
.method static constructor <clinit>()V
.registers 2
new-instance v0, Lokhttp3/internal/connection/Exchange$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lokhttp3/internal/connection/Exchange$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lokhttp3/internal/connection/Exchange;->Companion:Lokhttp3/internal/connection/Exchange$Companion;
return-void
.end method
.method public constructor <init>(Lokhttp3/internal/connection/Transmitter;Lokhttp3/Call;Lokhttp3/EventListener;Lokhttp3/internal/connection/ExchangeFinder;Lokhttp3/internal/http/ExchangeCodec;)V
.registers 7
const-string/jumbo v0, "transmitter"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "call"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "eventListener"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "finder"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "codec"
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 41
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokhttp3/internal/connection/Exchange;->transmitter:Lokhttp3/internal/connection/Transmitter;
iput-object p2, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
iput-object p3, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iput-object p4, p0, Lokhttp3/internal/connection/Exchange;->finder:Lokhttp3/internal/connection/ExchangeFinder;
iput-object p5, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
return-void
.end method
.method private final trackFailure(Ljava/io/IOException;)V
.registers 3
.line 169
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->finder:Lokhttp3/internal/connection/ExchangeFinder;
invoke-virtual {v0}, Lokhttp3/internal/connection/ExchangeFinder;->trackFailure()V
.line 170
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->connection()Lokhttp3/internal/connection/RealConnection;
move-result-object v0
if-nez v0, :cond_10
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_10
invoke-virtual {v0, p1}, Lokhttp3/internal/connection/RealConnection;->trackFailure$okhttp(Ljava/io/IOException;)V
return-void
.end method
# virtual methods
.method public final bodyComplete(JZZLjava/io/IOException;)Ljava/io/IOException;
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/io/IOException;",
">(JZZTE;)TE;"
}
.end annotation
if-eqz p5, :cond_5
.line 180
invoke-direct {p0, p5}, Lokhttp3/internal/connection/Exchange;->trackFailure(Ljava/io/IOException;)V
:cond_5
if-eqz p4, :cond_18
if-eqz p5, :cond_11
.line 184
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1, p5}, Lokhttp3/EventListener;->requestFailed(Lokhttp3/Call;Ljava/io/IOException;)V
goto :goto_18
.line 186
:cond_11
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1, p1, p2}, Lokhttp3/EventListener;->requestBodyEnd(Lokhttp3/Call;J)V
:cond_18
:goto_18
if-eqz p3, :cond_2b
if-eqz p5, :cond_24
.line 191
iget-object p1, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object p2, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {p1, p2, p5}, Lokhttp3/EventListener;->responseFailed(Lokhttp3/Call;Ljava/io/IOException;)V
goto :goto_2b
.line 193
:cond_24
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1, p1, p2}, Lokhttp3/EventListener;->responseBodyEnd(Lokhttp3/Call;J)V
.line 196
:cond_2b
:goto_2b
iget-object p1, p0, Lokhttp3/internal/connection/Exchange;->transmitter:Lokhttp3/internal/connection/Transmitter;
invoke-virtual {p1, p0, p4, p3, p5}, Lokhttp3/internal/connection/Transmitter;->exchangeMessageDone$okhttp(Lokhttp3/internal/connection/Exchange;ZZLjava/io/IOException;)Ljava/io/IOException;
move-result-object p1
return-object p1
.end method
.method public final cancel()V
.registers 2
.line 156
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->cancel()V
return-void
.end method
.method public final connection()Lokhttp3/internal/connection/RealConnection;
.registers 2
.line 52
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->connection()Lokhttp3/internal/connection/RealConnection;
move-result-object v0
return-object v0
.end method
.method public final createRequestBody(Lokhttp3/Request;Z)Lokio/Sink;
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "request"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 69
iput-boolean p2, p0, Lokhttp3/internal/connection/Exchange;->isDuplex:Z
.line 70
invoke-virtual {p1}, Lokhttp3/Request;->body()Lokhttp3/RequestBody;
move-result-object p2
if-nez p2, :cond_10
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_10
invoke-virtual {p2}, Lokhttp3/RequestBody;->contentLength()J
move-result-wide v0
.line 71
iget-object p2, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v2, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {p2, v2}, Lokhttp3/EventListener;->requestBodyStart(Lokhttp3/Call;)V
.line 72
iget-object p2, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {p2, p1, v0, v1}, Lokhttp3/internal/http/ExchangeCodec;->createRequestBody(Lokhttp3/Request;J)Lokio/Sink;
move-result-object p1
.line 73
new-instance p2, Lokhttp3/internal/connection/Exchange$RequestBodySink;
invoke-direct {p2, p0, p1, v0, v1}, Lokhttp3/internal/connection/Exchange$RequestBodySink;-><init>(Lokhttp3/internal/connection/Exchange;Lokio/Sink;J)V
check-cast p2, Lokio/Sink;
return-object p2
.end method
.method public final detachWithViolence()V
.registers 4
.line 164
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->cancel()V
.line 165
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->transmitter:Lokhttp3/internal/connection/Transmitter;
const/4 v1, 0x1
const/4 v2, 0x0
invoke-virtual {v0, p0, v1, v1, v2}, Lokhttp3/internal/connection/Transmitter;->exchangeMessageDone$okhttp(Lokhttp3/internal/connection/Exchange;ZZLjava/io/IOException;)Ljava/io/IOException;
return-void
.end method
.method public final finishRequest()V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 90
:try_start_0
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->finishRequest()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_5} :catch_6
return-void
:catch_6
move-exception v0
.line 92
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v2, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v1, v2, v0}, Lokhttp3/EventListener;->requestFailed(Lokhttp3/Call;Ljava/io/IOException;)V
.line 93
invoke-direct {p0, v0}, Lokhttp3/internal/connection/Exchange;->trackFailure(Ljava/io/IOException;)V
.line 94
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public final flushRequest()V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 79
:try_start_0
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->flushRequest()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_5} :catch_6
return-void
:catch_6
move-exception v0
.line 81
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v2, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v1, v2, v0}, Lokhttp3/EventListener;->requestFailed(Lokhttp3/Call;Ljava/io/IOException;)V
.line 82
invoke-direct {p0, v0}, Lokhttp3/internal/connection/Exchange;->trackFailure(Ljava/io/IOException;)V
.line 83
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public final getCall$okhttp()Lokhttp3/Call;
.registers 2
.line 43
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
return-object v0
.end method
.method public final getEventListener$okhttp()Lokhttp3/EventListener;
.registers 2
.line 44
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
return-object v0
.end method
.method public final getTransmitter$okhttp()Lokhttp3/internal/connection/Transmitter;
.registers 2
.line 42
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->transmitter:Lokhttp3/internal/connection/Transmitter;
return-object v0
.end method
.method public final isDuplex()Z
.registers 2
.line 49
iget-boolean v0, p0, Lokhttp3/internal/connection/Exchange;->isDuplex:Z
return v0
.end method
.method public final newWebSocketStreams()Lokhttp3/internal/ws/RealWebSocket$Streams;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/net/SocketException;
}
.end annotation
.line 143
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->transmitter:Lokhttp3/internal/connection/Transmitter;
invoke-virtual {v0}, Lokhttp3/internal/connection/Transmitter;->timeoutEarlyExit()V
.line 144
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->connection()Lokhttp3/internal/connection/RealConnection;
move-result-object v0
if-nez v0, :cond_10
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_10
invoke-virtual {v0, p0}, Lokhttp3/internal/connection/RealConnection;->newWebSocketStreams$okhttp(Lokhttp3/internal/connection/Exchange;)Lokhttp3/internal/ws/RealWebSocket$Streams;
move-result-object v0
return-object v0
.end method
.method public final noNewExchangesOnConnection()V
.registers 2
.line 152
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->connection()Lokhttp3/internal/connection/RealConnection;
move-result-object v0
if-nez v0, :cond_b
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V
:cond_b
invoke-virtual {v0}, Lokhttp3/internal/connection/RealConnection;->noNewExchanges()V
return-void
.end method
.method public final noRequestBody()V
.registers 5
.line 200
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->transmitter:Lokhttp3/internal/connection/Transmitter;
const/4 v1, 0x1
const/4 v2, 0x0
const/4 v3, 0x0
invoke-virtual {v0, p0, v1, v2, v3}, Lokhttp3/internal/connection/Transmitter;->exchangeMessageDone$okhttp(Lokhttp3/internal/connection/Exchange;ZZLjava/io/IOException;)Ljava/io/IOException;
return-void
.end method
.method public final openResponseBody(Lokhttp3/Response;)Lokhttp3/ResponseBody;
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "response"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_5
const-string v0, "Content-Type"
const/4 v1, 0x2
const/4 v2, 0x0
.line 122
invoke-static {p1, v0, v2, v1, v2}, Lokhttp3/Response;->header$default(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 123
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v1, p1}, Lokhttp3/internal/http/ExchangeCodec;->reportedContentLength(Lokhttp3/Response;)J
move-result-wide v1
.line 124
iget-object v3, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v3, p1}, Lokhttp3/internal/http/ExchangeCodec;->openResponseBodySource(Lokhttp3/Response;)Lokio/Source;
move-result-object p1
.line 125
new-instance v3, Lokhttp3/internal/connection/Exchange$ResponseBodySource;
invoke-direct {v3, p0, p1, v1, v2}, Lokhttp3/internal/connection/Exchange$ResponseBodySource;-><init>(Lokhttp3/internal/connection/Exchange;Lokio/Source;J)V
.line 126
new-instance p1, Lokhttp3/internal/http/RealResponseBody;
check-cast v3, Lokio/Source;
invoke-static {v3}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
move-result-object v3
invoke-direct {p1, v0, v1, v2, v3}, Lokhttp3/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLokio/BufferedSource;)V
check-cast p1, Lokhttp3/ResponseBody;
:try_end_2b
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_2b} :catch_2c
return-object p1
:catch_2c
move-exception p1
.line 128
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1, p1}, Lokhttp3/EventListener;->responseFailed(Lokhttp3/Call;Ljava/io/IOException;)V
.line 129
invoke-direct {p0, p1}, Lokhttp3/internal/connection/Exchange;->trackFailure(Ljava/io/IOException;)V
.line 130
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public final readResponseHeaders(Z)Lokhttp3/Response$Builder;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 105
:try_start_0
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0, p1}, Lokhttp3/internal/http/ExchangeCodec;->readResponseHeaders(Z)Lokhttp3/Response$Builder;
move-result-object p1
if-eqz p1, :cond_b
.line 106
invoke-virtual {p1, p0}, Lokhttp3/Response$Builder;->initExchange$okhttp(Lokhttp3/internal/connection/Exchange;)V
:try_end_b
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_b} :catch_c
:cond_b
return-object p1
:catch_c
move-exception p1
.line 109
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1, p1}, Lokhttp3/EventListener;->responseFailed(Lokhttp3/Call;Ljava/io/IOException;)V
.line 110
invoke-direct {p0, p1}, Lokhttp3/internal/connection/Exchange;->trackFailure(Ljava/io/IOException;)V
.line 111
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method
.method public final responseHeadersEnd(Lokhttp3/Response;)V
.registers 4
const-string v0, "response"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 116
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1, p1}, Lokhttp3/EventListener;->responseHeadersEnd(Lokhttp3/Call;Lokhttp3/Response;)V
return-void
.end method
.method public final responseHeadersStart()V
.registers 3
.line 99
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1}, Lokhttp3/EventListener;->responseHeadersStart(Lokhttp3/Call;)V
return-void
.end method
.method public final timeoutEarlyExit()V
.registers 2
.line 138
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->transmitter:Lokhttp3/internal/connection/Transmitter;
invoke-virtual {v0}, Lokhttp3/internal/connection/Transmitter;->timeoutEarlyExit()V
return-void
.end method
.method public final trailers()Lokhttp3/Headers;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 135
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0}, Lokhttp3/internal/http/ExchangeCodec;->trailers()Lokhttp3/Headers;
move-result-object v0
return-object v0
.end method
.method public final webSocketUpgradeFailed()V
.registers 7
const-wide/16 v1, -0x1
const/4 v3, 0x1
const/4 v4, 0x1
const/4 v5, 0x0
move-object v0, p0
.line 148
invoke-virtual/range {v0 .. v5}, Lokhttp3/internal/connection/Exchange;->bodyComplete(JZZLjava/io/IOException;)Ljava/io/IOException;
return-void
.end method
.method public final writeRequestHeaders(Lokhttp3/Request;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "request"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 57
:try_start_5
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1}, Lokhttp3/EventListener;->requestHeadersStart(Lokhttp3/Call;)V
.line 58
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->codec:Lokhttp3/internal/http/ExchangeCodec;
invoke-interface {v0, p1}, Lokhttp3/internal/http/ExchangeCodec;->writeRequestHeaders(Lokhttp3/Request;)V
.line 59
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1, p1}, Lokhttp3/EventListener;->requestHeadersEnd(Lokhttp3/Call;Lokhttp3/Request;)V
:try_end_18
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_18} :catch_19
return-void
:catch_19
move-exception p1
.line 61
iget-object v0, p0, Lokhttp3/internal/connection/Exchange;->eventListener:Lokhttp3/EventListener;
iget-object v1, p0, Lokhttp3/internal/connection/Exchange;->call:Lokhttp3/Call;
invoke-virtual {v0, v1, p1}, Lokhttp3/EventListener;->requestFailed(Lokhttp3/Call;Ljava/io/IOException;)V
.line 62
invoke-direct {p0, p1}, Lokhttp3/internal/connection/Exchange;->trackFailure(Ljava/io/IOException;)V
.line 63
check-cast p1, Ljava/lang/Throwable;
throw p1
.end method