Request.smali
.class public final Lokhttp3/Request;
.super Ljava/lang/Object;
.source "Request.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/Request$Builder;
}
.end annotation
# instance fields
.field final body:Lokhttp3/RequestBody;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private volatile cacheControl:Lokhttp3/CacheControl;
.field final headers:Lokhttp3/Headers;
.field final method:Ljava/lang/String;
.field final tag:Ljava/lang/Object;
.field final url:Lokhttp3/HttpUrl;
# direct methods
.method constructor <init>(Lokhttp3/Request$Builder;)V
.registers 3
.line 37
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 38
iget-object v0, p1, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl;
iput-object v0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
.line 39
iget-object v0, p1, Lokhttp3/Request$Builder;->method:Ljava/lang/String;
iput-object v0, p0, Lokhttp3/Request;->method:Ljava/lang/String;
.line 40
iget-object v0, p1, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
invoke-virtual {v0}, Lokhttp3/Headers$Builder;->build()Lokhttp3/Headers;
move-result-object v0
iput-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
.line 41
iget-object v0, p1, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody;
iput-object v0, p0, Lokhttp3/Request;->body:Lokhttp3/RequestBody;
.line 42
iget-object v0, p1, Lokhttp3/Request$Builder;->tag:Ljava/lang/Object;
if-eqz v0, :cond_1e
iget-object p1, p1, Lokhttp3/Request$Builder;->tag:Ljava/lang/Object;
goto :goto_1f
:cond_1e
move-object p1, p0
:goto_1f
iput-object p1, p0, Lokhttp3/Request;->tag:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public body()Lokhttp3/RequestBody;
.registers 2
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 66
iget-object v0, p0, Lokhttp3/Request;->body:Lokhttp3/RequestBody;
return-object v0
.end method
.method public cacheControl()Lokhttp3/CacheControl;
.registers 2
.line 82
iget-object v0, p0, Lokhttp3/Request;->cacheControl:Lokhttp3/CacheControl;
if-eqz v0, :cond_5
goto :goto_d
.line 83
:cond_5
iget-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
invoke-static {v0}, Lokhttp3/CacheControl;->parse(Lokhttp3/Headers;)Lokhttp3/CacheControl;
move-result-object v0
iput-object v0, p0, Lokhttp3/Request;->cacheControl:Lokhttp3/CacheControl;
:goto_d
return-object v0
.end method
.method public header(Ljava/lang/String;)Ljava/lang/String;
.registers 3
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 58
iget-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
invoke-virtual {v0, p1}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public headers(Ljava/lang/String;)Ljava/util/List;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 62
iget-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
invoke-virtual {v0, p1}, Lokhttp3/Headers;->values(Ljava/lang/String;)Ljava/util/List;
move-result-object p1
return-object p1
.end method
.method public headers()Lokhttp3/Headers;
.registers 2
.line 54
iget-object v0, p0, Lokhttp3/Request;->headers:Lokhttp3/Headers;
return-object v0
.end method
.method public isHttps()Z
.registers 2
.line 87
iget-object v0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
invoke-virtual {v0}, Lokhttp3/HttpUrl;->isHttps()Z
move-result v0
return v0
.end method
.method public method()Ljava/lang/String;
.registers 2
.line 50
iget-object v0, p0, Lokhttp3/Request;->method:Ljava/lang/String;
return-object v0
.end method
.method public newBuilder()Lokhttp3/Request$Builder;
.registers 2
.line 74
new-instance v0, Lokhttp3/Request$Builder;
invoke-direct {v0, p0}, Lokhttp3/Request$Builder;-><init>(Lokhttp3/Request;)V
return-object v0
.end method
.method public tag()Ljava/lang/Object;
.registers 2
.line 70
iget-object v0, p0, Lokhttp3/Request;->tag:Ljava/lang/Object;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.registers 3
.line 91
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Request{method="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/Request;->method:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ", url="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", tag="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/Request;->tag:Ljava/lang/Object;
if-eq v1, p0, :cond_23
goto :goto_24
:cond_23
const/4 v1, 0x0
.line 96
:goto_24
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public url()Lokhttp3/HttpUrl;
.registers 2
.line 46
iget-object v0, p0, Lokhttp3/Request;->url:Lokhttp3/HttpUrl;
return-object v0
.end method