81 lines
2.1 KiB
Smali
81 lines
2.1 KiB
Smali
.class public final Lokhttp3/internal/connection/ConnectInterceptor;
|
|
.super Ljava/lang/Object;
|
|
.source "ConnectInterceptor.java"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/Interceptor;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lokhttp3/OkHttpClient;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokhttp3/OkHttpClient;)V
|
|
.locals 0
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 32
|
|
iput-object p1, p0, Lokhttp3/internal/connection/ConnectInterceptor;->a:Lokhttp3/OkHttpClient;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 36
|
|
check-cast p1, Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
.line 37
|
|
invoke-virtual {p1}, Lokhttp3/internal/http/RealInterceptorChain;->a()Lokhttp3/Request;
|
|
|
|
move-result-object v0
|
|
|
|
.line 38
|
|
invoke-virtual {p1}, Lokhttp3/internal/http/RealInterceptorChain;->c()Lokhttp3/internal/connection/StreamAllocation;
|
|
|
|
move-result-object v1
|
|
|
|
.line 41
|
|
invoke-virtual {v0}, Lokhttp3/Request;->b()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "GET"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
xor-int/lit8 v2, v2, 0x1
|
|
|
|
.line 42
|
|
iget-object v3, p0, Lokhttp3/internal/connection/ConnectInterceptor;->a:Lokhttp3/OkHttpClient;
|
|
|
|
invoke-virtual {v1, v3, v2}, Lokhttp3/internal/connection/StreamAllocation;->a(Lokhttp3/OkHttpClient;Z)Lokhttp3/internal/http/HttpCodec;
|
|
|
|
move-result-object v2
|
|
|
|
.line 43
|
|
invoke-virtual {v1}, Lokhttp3/internal/connection/StreamAllocation;->b()Lokhttp3/internal/connection/RealConnection;
|
|
|
|
move-result-object v3
|
|
|
|
.line 45
|
|
invoke-virtual {p1, v0, v1, v2, v3}, Lokhttp3/internal/http/RealInterceptorChain;->a(Lokhttp3/Request;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http/HttpCodec;Lokhttp3/Connection;)Lokhttp3/Response;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|