mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
1036 lines
29 KiB
Smali
1036 lines
29 KiB
Smali
.class public Lokhttp3/Request$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "Request.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/Request;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nRequest.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Request.kt\nokhttp3/Request$Builder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,298:1\n1#2:299\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000V\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u000e\n\u0002\u0008\u0005\n\u0002\u0010%\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0000\u0008\u0016\u0018\u00002\u00020\u0001B\u0007\u0008\u0016\u00a2\u0006\u0002\u0010\u0002B\u000f\u0008\u0010\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u00a2\u0006\u0002\u0010\u0005J\u0018\u0010%\u001a\u00020\u00002\u0006\u0010&\u001a\u00020\u00132\u0006\u0010\'\u001a\u00020\u0013H\u0016J\u0008\u0010(\u001a\u00020\u0004H\u0016J\u0010\u0010)\u001a\u00020\u00002\u0006\u0010)\u001a\u00020*H\u0016J\u0014\u0010+\u001a\u00020\u00002\n\u0008\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u0007H\u0017J\u0008\u0010,\u001a\u00020\u0000H\u0016J\u0008\u0010-\u001a\u00020\u0000H\u0016J\u0018\u0010.\u001a\u00020\u00002\u0006\u0010&\u001a\u00020\u00132\u0006\u0010\'\u001a\u00020\u0013H\u0016J\u0010\u0010\u000c\u001a\u00020\u00002\u0006\u0010\u000c\u001a\u00020/H\u0016J\u001a\u0010\u0012\u001a\u00020\u00002\u0006\u0010\u0012\u001a\u00020\u00132\u0008\u0010\u0006\u001a\u0004\u0018\u00010\u0007H\u0016J\u0010\u00100\u001a\u00020\u00002\u0006\u0010\u0006\u001a\u00020\u0007H\u0016J\u0010\u00101\u001a\u00020\u00002\u0006\u0010\u0006\u001a\u00020\u0007H\u0016J\u0010\u00102\u001a\u00020\u00002\u0006\u0010\u0006\u001a\u00020\u0007H\u0016J\u0010\u00103\u001a\u00020\u00002\u0006\u0010&\u001a\u00020\u0013H\u0016J-\u00104\u001a\u00020\u0000\"\u0004\u0008\u0000\u001052\u000e\u00106\u001a\n\u0012\u0006\u0008\u0000\u0012\u0002H50\u001a2\u0008\u00104\u001a\u0004\u0018\u0001H5H\u0016\u00a2\u0006\u0002\u00107J\u0012\u00104\u001a\u00020\u00002\u0008\u00104\u001a\u0004\u0018\u00010\u0001H\u0016J\u0010\u0010\u001f\u001a\u00020\u00002\u0006\u0010\u001f\u001a\u000208H\u0016J\u0010\u0010\u001f\u001a\u00020\u00002\u0006\u0010\u001f\u001a\u00020\u0013H\u0016J\u0010\u0010\u001f\u001a\u00020\u00002\u0006\u0010\u001f\u001a\u00020 H\u0016R\u001c\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0008\u0010\t\"\u0004\u0008\n\u0010\u000bR\u001a\u0010\u000c\u001a\u00020\rX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u000e\u0010\u000f\"\u0004\u0008\u0010\u0010\u0011R\u001a\u0010\u0012\u001a\u00020\u0013X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0014\u0010\u0015\"\u0004\u0008\u0016\u0010\u0017R*\u0010\u0018\u001a\u0012\u0012\u0008\u0012\u0006\u0012\u0002\u0008\u00030\u001a\u0012\u0004\u0012\u00020\u00010\u0019X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001b\u0010\u001c\"\u0004\u0008\u001d\u0010\u001eR\u001c\u0010\u001f\u001a\u0004\u0018\u00010 X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008!\u0010\"\"\u0004\u0008#\u0010$\u00a8\u00069"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/Request$Builder;",
|
|
"",
|
|
"()V",
|
|
"request",
|
|
"Lokhttp3/Request;",
|
|
"(Lokhttp3/Request;)V",
|
|
"body",
|
|
"Lokhttp3/RequestBody;",
|
|
"getBody$okhttp",
|
|
"()Lokhttp3/RequestBody;",
|
|
"setBody$okhttp",
|
|
"(Lokhttp3/RequestBody;)V",
|
|
"headers",
|
|
"Lokhttp3/Headers$Builder;",
|
|
"getHeaders$okhttp",
|
|
"()Lokhttp3/Headers$Builder;",
|
|
"setHeaders$okhttp",
|
|
"(Lokhttp3/Headers$Builder;)V",
|
|
"method",
|
|
"",
|
|
"getMethod$okhttp",
|
|
"()Ljava/lang/String;",
|
|
"setMethod$okhttp",
|
|
"(Ljava/lang/String;)V",
|
|
"tags",
|
|
"",
|
|
"Ljava/lang/Class;",
|
|
"getTags$okhttp",
|
|
"()Ljava/util/Map;",
|
|
"setTags$okhttp",
|
|
"(Ljava/util/Map;)V",
|
|
"url",
|
|
"Lokhttp3/HttpUrl;",
|
|
"getUrl$okhttp",
|
|
"()Lokhttp3/HttpUrl;",
|
|
"setUrl$okhttp",
|
|
"(Lokhttp3/HttpUrl;)V",
|
|
"addHeader",
|
|
"name",
|
|
"value",
|
|
"build",
|
|
"cacheControl",
|
|
"Lokhttp3/CacheControl;",
|
|
"delete",
|
|
"get",
|
|
"head",
|
|
"header",
|
|
"Lokhttp3/Headers;",
|
|
"patch",
|
|
"post",
|
|
"put",
|
|
"removeHeader",
|
|
"tag",
|
|
"T",
|
|
"type",
|
|
"(Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;",
|
|
"Ljava/net/URL;",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private body:Lokhttp3/RequestBody;
|
|
|
|
.field private headers:Lokhttp3/Headers$Builder;
|
|
|
|
.field private method:Ljava/lang/String;
|
|
|
|
.field private tags:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Class<",
|
|
"*>;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private url:Lokhttp3/HttpUrl;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 146
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 143
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
const-string v0, "GET"
|
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String;
|
|
|
|
.line 147
|
|
new-instance v0, Lokhttp3/Headers$Builder;
|
|
|
|
invoke-direct {v0}, Lokhttp3/Headers$Builder;-><init>()V
|
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lokhttp3/Request;)V
|
|
.locals 1
|
|
|
|
const-string v0, "request"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 151
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 143
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
.line 151
|
|
invoke-virtual {p1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl;
|
|
|
|
.line 152
|
|
invoke-virtual {p1}, Lokhttp3/Request;->method()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String;
|
|
|
|
.line 153
|
|
invoke-virtual {p1}, Lokhttp3/Request;->body()Lokhttp3/RequestBody;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody;
|
|
|
|
.line 154
|
|
invoke-virtual {p1}, Lokhttp3/Request;->getTags$okhttp()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 155
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
goto :goto_0
|
|
|
|
.line 157
|
|
:cond_0
|
|
invoke-virtual {p1}, Lokhttp3/Request;->getTags$okhttp()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lkotlin/collections/MapsKt;->toMutableMap(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
.line 159
|
|
invoke-virtual {p1}, Lokhttp3/Request;->headers()Lokhttp3/Headers;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lokhttp3/Headers;->newBuilder()Lokhttp3/Headers$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic delete$default(Lokhttp3/Request$Builder;Lokhttp3/RequestBody;ILjava/lang/Object;)Lokhttp3/Request$Builder;
|
|
.locals 0
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
and-int/lit8 p2, p2, 0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 243
|
|
sget-object p1, Lokhttp3/internal/Util;->EMPTY_REQUEST:Lokhttp3/RequestBody;
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lokhttp3/Request$Builder;->delete(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 0
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: delete"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addHeader(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "name"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "value"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 209
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/Request$Builder;
|
|
|
|
iget-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
.line 210
|
|
invoke-virtual {v0, p1, p2}, Lokhttp3/Headers$Builder;->add(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public build()Lokhttp3/Request;
|
|
.locals 6
|
|
|
|
iget-object v1, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v2, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
.line 291
|
|
invoke-virtual {v0}, Lokhttp3/Headers$Builder;->build()Lokhttp3/Headers;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, p0, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody;
|
|
|
|
iget-object p0, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
.line 293
|
|
invoke-static {p0}, Lokhttp3/internal/Util;->toImmutableMap(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object v5
|
|
|
|
.line 288
|
|
new-instance p0, Lokhttp3/Request;
|
|
|
|
move-object v0, p0
|
|
|
|
invoke-direct/range {v0 .. v5}, Lokhttp3/Request;-><init>(Lokhttp3/HttpUrl;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V
|
|
|
|
return-object p0
|
|
|
|
.line 289
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "url == null"
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public cacheControl(Lokhttp3/CacheControl;)Lokhttp3/Request$Builder;
|
|
.locals 2
|
|
|
|
const-string v0, "cacheControl"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 229
|
|
invoke-virtual {p1}, Lokhttp3/CacheControl;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 231
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "Cache-Control"
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-virtual {p0, v1}, Lokhttp3/Request$Builder;->removeHeader(Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 232
|
|
:cond_0
|
|
invoke-virtual {p0, v1, p1}, Lokhttp3/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final delete()Lokhttp3/Request$Builder;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {p0, v0, v1, v0}, Lokhttp3/Request$Builder;->delete$default(Lokhttp3/Request$Builder;Lokhttp3/RequestBody;ILjava/lang/Object;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public delete(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "DELETE"
|
|
|
|
.line 243
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public get()Lokhttp3/Request$Builder;
|
|
.locals 2
|
|
|
|
const-string v0, "GET"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 236
|
|
invoke-virtual {p0, v0, v1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getBody$okhttp()Lokhttp3/RequestBody;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getHeaders$okhttp()Lokhttp3/Headers$Builder;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getMethod$okhttp()Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getTags$okhttp()Ljava/util/Map;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Class<",
|
|
"*>;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getUrl$okhttp()Lokhttp3/HttpUrl;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public head()Lokhttp3/Request$Builder;
|
|
.locals 2
|
|
|
|
const-string v0, "HEAD"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 238
|
|
invoke-virtual {p0, v0, v1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public header(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "name"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "value"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 198
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/Request$Builder;
|
|
|
|
iget-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
.line 199
|
|
invoke-virtual {v0, p1, p2}, Lokhttp3/Headers$Builder;->set(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public headers(Lokhttp3/Headers;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "headers"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 219
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/Request$Builder;
|
|
|
|
.line 220
|
|
invoke-virtual {p1}, Lokhttp3/Headers;->newBuilder()Lokhttp3/Headers$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
.locals 3
|
|
|
|
const-string v0, "method"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 249
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/Request$Builder;
|
|
|
|
.line 250
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_4
|
|
|
|
const-string v0, "method "
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
.line 254
|
|
invoke-static {p1}, Lokhttp3/internal/http/HttpMethod;->requiresRequestBody(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
xor-int/2addr v1, v2
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
.line 255
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " must have a request body."
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 254
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
.line 258
|
|
:cond_2
|
|
invoke-static {p1}, Lokhttp3/internal/http/HttpMethod;->permitsRequestBody(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
:goto_1
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody;
|
|
|
|
return-object p0
|
|
|
|
.line 259
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " must not have a request body."
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 258
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
.line 250
|
|
:cond_4
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "method.isEmpty() == true"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public patch(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "body"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "PATCH"
|
|
|
|
.line 247
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public post(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "body"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "POST"
|
|
|
|
.line 240
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public put(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "body"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "PUT"
|
|
|
|
.line 245
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public removeHeader(Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "name"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 214
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/Request$Builder;
|
|
|
|
iget-object v0, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
.line 215
|
|
invoke-virtual {v0, p1}, Lokhttp3/Headers$Builder;->removeAll(Ljava/lang/String;)Lokhttp3/Headers$Builder;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final setBody$okhttp(Lokhttp3/RequestBody;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->body:Lokhttp3/RequestBody;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setHeaders$okhttp(Lokhttp3/Headers$Builder;)V
|
|
.locals 1
|
|
|
|
const-string v0, "<set-?>"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->headers:Lokhttp3/Headers$Builder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setMethod$okhttp(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const-string v0, "<set-?>"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->method:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTags$okhttp(Ljava/util/Map;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Class<",
|
|
"*>;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "<set-?>"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setUrl$okhttp(Lokhttp3/HttpUrl;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public tag(Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Class<",
|
|
"-TT;>;TT;)",
|
|
"Lokhttp3/Request$Builder;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "type"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 276
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/Request$Builder;
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
iget-object p2, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
.line 278
|
|
invoke-interface {p2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
.line 280
|
|
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 281
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
iput-object v0, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lokhttp3/Request$Builder;->tags:Ljava/util/Map;
|
|
|
|
.line 283
|
|
invoke-virtual {p1, p2}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public tag(Ljava/lang/Object;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
.line 267
|
|
const-class v0, Ljava/lang/Object;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lokhttp3/Request$Builder;->tag(Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public url(Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
.locals 3
|
|
|
|
const-string v0, "url"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "ws:"
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 175
|
|
invoke-static {p1, v0, v1}, Lkotlin/text/StringsKt;->startsWith(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
const-string v2, "(this as java.lang.String).substring(startIndex)"
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 176
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "http:"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x3
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "wss:"
|
|
|
|
.line 178
|
|
invoke-static {p1, v0, v1}, Lkotlin/text/StringsKt;->startsWith(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 179
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "https:"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x4
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 184
|
|
:cond_1
|
|
:goto_0
|
|
sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion;
|
|
|
|
invoke-virtual {v0, p1}, Lokhttp3/HttpUrl$Companion;->get(Ljava/lang/String;)Lokhttp3/HttpUrl;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lokhttp3/Request$Builder;->url(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public url(Ljava/net/URL;)Lokhttp3/Request$Builder;
|
|
.locals 2
|
|
|
|
const-string v0, "url"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 192
|
|
sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion;
|
|
|
|
invoke-virtual {p1}, Ljava/net/URL;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "url.toString()"
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p1}, Lokhttp3/HttpUrl$Companion;->get(Ljava/lang/String;)Lokhttp3/HttpUrl;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lokhttp3/Request$Builder;->url(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public url(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;
|
|
.locals 1
|
|
|
|
const-string v0, "url"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 162
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/Request$Builder;
|
|
|
|
iput-object p1, p0, Lokhttp3/Request$Builder;->url:Lokhttp3/HttpUrl;
|
|
|
|
return-object p0
|
|
.end method
|