@doordeck/doordeck-headless-sdk 0.189.0 → 0.193.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +58 -58
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +10137 -10173
- package/kotlin/kotlin-kotlin-stdlib.js +364 -366
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +1941 -1941
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +47 -47
- package/kotlin/kotlinx-io-kotlinx-io-core.js +476 -476
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1902 -1902
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1454 -1454
- package/kotlin/ktor-ktor-client-auth.js +258 -258
- package/kotlin/ktor-ktor-client-content-negotiation.js +158 -158
- package/kotlin/ktor-ktor-client-core.js +1995 -1995
- package/kotlin/ktor-ktor-client-logging.js +649 -649
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +370 -370
- package/kotlin/ktor-ktor-http.js +782 -782
- package/kotlin/ktor-ktor-io.js +651 -651
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +153 -153
- package/kotlin/ktor-ktor-serialization.js +72 -72
- package/kotlin/ktor-ktor-utils.js +741 -741
- package/kotlin/ktor-ktor-websockets.js +52 -52
- package/package.json +3 -4
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +0 -329
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_io_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
5
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
6
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
7
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
8
|
-
var trim = kotlin_kotlin.$_$.
|
|
9
|
-
var toString = kotlin_kotlin.$_$.
|
|
10
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
13
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
5
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.tf;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.jb;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.ye;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.yb;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.vb;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ab;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.ma;
|
|
14
14
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
15
15
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
17
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
18
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ya;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.b;
|
|
20
|
-
var Enum = kotlin_kotlin.$_$.
|
|
20
|
+
var Enum = kotlin_kotlin.$_$.kf;
|
|
21
21
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
22
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
23
|
-
var println = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
22
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.za;
|
|
23
|
+
var println = kotlin_kotlin.$_$.l9;
|
|
24
|
+
var initMetadataForObject = kotlin_kotlin.$_$.eb;
|
|
25
25
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
26
26
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
27
27
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
28
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
28
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.lc;
|
|
29
29
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.s;
|
|
30
30
|
var NoContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
31
31
|
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.q;
|
|
32
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
32
|
+
var fromInt = kotlin_kotlin.$_$.s9;
|
|
33
33
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
34
34
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
35
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
35
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.db;
|
|
36
36
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
37
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
37
|
+
var isSuspendFunction = kotlin_kotlin.$_$.pb;
|
|
38
38
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
39
39
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
40
40
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
43
43
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
44
44
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
45
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
45
|
+
var isInterface = kotlin_kotlin.$_$.nb;
|
|
46
46
|
var writeFully = kotlin_io_ktor_ktor_io.$_$.l;
|
|
47
47
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.b;
|
|
48
48
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
49
49
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
50
50
|
var readText = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
51
|
-
var Collection = kotlin_kotlin.$_$.
|
|
52
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
51
|
+
var Collection = kotlin_kotlin.$_$.b5;
|
|
52
|
+
var toString_0 = kotlin_kotlin.$_$.wg;
|
|
53
53
|
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
54
54
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
55
55
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
@@ -59,20 +59,20 @@
|
|
|
59
59
|
var Url = kotlin_io_ktor_ktor_http.$_$.f1;
|
|
60
60
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
61
61
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
62
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
63
|
-
var equals = kotlin_kotlin.$_$.
|
|
62
|
+
var joinToString = kotlin_kotlin.$_$.d7;
|
|
63
|
+
var equals = kotlin_kotlin.$_$.qa;
|
|
64
64
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
65
65
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
66
|
-
var Triple = kotlin_kotlin.$_$.
|
|
66
|
+
var Triple = kotlin_kotlin.$_$.vf;
|
|
67
67
|
var readAvailable = kotlin_io_ktor_ktor_io.$_$.d;
|
|
68
68
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
69
69
|
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
70
70
|
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
71
71
|
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
72
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
72
|
+
var charCodeAt = kotlin_kotlin.$_$.ka;
|
|
73
73
|
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
74
|
-
var add = kotlin_kotlin.$_$.
|
|
75
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
74
|
+
var add = kotlin_kotlin.$_$.n9;
|
|
75
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.sg;
|
|
76
76
|
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
77
77
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
78
78
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
@@ -83,34 +83,34 @@
|
|
|
83
83
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.l1;
|
|
84
84
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.a1;
|
|
85
85
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
86
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
86
|
+
var toLongOrNull = kotlin_kotlin.$_$.oe;
|
|
87
87
|
var contentLength = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
88
88
|
var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
89
|
-
var subtract = kotlin_kotlin.$_$.
|
|
89
|
+
var subtract = kotlin_kotlin.$_$.ba;
|
|
90
90
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
91
91
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
92
92
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
93
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
94
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
95
|
-
var createKType = kotlin_kotlin.$_$.
|
|
93
|
+
var getKClass = kotlin_kotlin.$_$.mc;
|
|
94
|
+
var arrayOf = kotlin_kotlin.$_$.hg;
|
|
95
|
+
var createKType = kotlin_kotlin.$_$.kc;
|
|
96
96
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
97
97
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
98
|
-
var Unit = kotlin_kotlin.$_$.
|
|
98
|
+
var Unit = kotlin_kotlin.$_$.eg;
|
|
99
99
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
100
|
-
var toList = kotlin_kotlin.$_$.
|
|
101
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
102
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
103
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
104
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
105
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
100
|
+
var toList = kotlin_kotlin.$_$.e8;
|
|
101
|
+
var sortedWith = kotlin_kotlin.$_$.z7;
|
|
102
|
+
var FunctionAdapter = kotlin_kotlin.$_$.da;
|
|
103
|
+
var Comparator = kotlin_kotlin.$_$.hf;
|
|
104
|
+
var hashCode = kotlin_kotlin.$_$.xa;
|
|
105
|
+
var compareValues = kotlin_kotlin.$_$.p8;
|
|
106
106
|
var writer = kotlin_io_ktor_ktor_io.$_$.t1;
|
|
107
107
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
108
108
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
109
|
-
var get = kotlin_kotlin.$_$.
|
|
110
|
-
var fold = kotlin_kotlin.$_$.
|
|
111
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
112
|
-
var plus = kotlin_kotlin.$_$.
|
|
113
|
-
var Element = kotlin_kotlin.$_$.
|
|
109
|
+
var get = kotlin_kotlin.$_$.d9;
|
|
110
|
+
var fold = kotlin_kotlin.$_$.c9;
|
|
111
|
+
var minusKey = kotlin_kotlin.$_$.e9;
|
|
112
|
+
var plus = kotlin_kotlin.$_$.g9;
|
|
113
|
+
var Element = kotlin_kotlin.$_$.f9;
|
|
114
114
|
//endregion
|
|
115
115
|
//region block: pre-declaration
|
|
116
116
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
@@ -159,8 +159,8 @@
|
|
|
159
159
|
//endregion
|
|
160
160
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
161
161
|
CoroutineImpl.call(this, resultContinuation);
|
|
162
|
-
this.
|
|
163
|
-
this.
|
|
162
|
+
this.d4u_1 = _this__u8e3s4;
|
|
163
|
+
this.e4u_1 = message;
|
|
164
164
|
}
|
|
165
165
|
protoOf($logResponseExceptionCOROUTINE$).i9 = function () {
|
|
166
166
|
var suspendResult = this.c9_1;
|
|
@@ -171,15 +171,15 @@
|
|
|
171
171
|
case 0:
|
|
172
172
|
this.b9_1 = 2;
|
|
173
173
|
this.a9_1 = 1;
|
|
174
|
-
suspendResult = this.
|
|
174
|
+
suspendResult = this.d4u_1.i4u_1.ss(this);
|
|
175
175
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
176
176
|
return suspendResult;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
continue $sm;
|
|
180
180
|
case 1:
|
|
181
|
-
var this_0 = this.
|
|
182
|
-
this.
|
|
181
|
+
var this_0 = this.e4u_1;
|
|
182
|
+
this.d4u_1.f4u_1.m4u(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
183
183
|
return Unit_instance;
|
|
184
184
|
case 2:
|
|
185
185
|
throw this.d9_1;
|
|
@@ -197,8 +197,8 @@
|
|
|
197
197
|
};
|
|
198
198
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
199
199
|
CoroutineImpl.call(this, resultContinuation);
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
200
|
+
this.v4u_1 = _this__u8e3s4;
|
|
201
|
+
this.w4u_1 = message;
|
|
202
202
|
}
|
|
203
203
|
protoOf($logResponseBodyCOROUTINE$).i9 = function () {
|
|
204
204
|
var suspendResult = this.c9_1;
|
|
@@ -209,14 +209,14 @@
|
|
|
209
209
|
case 0:
|
|
210
210
|
this.b9_1 = 2;
|
|
211
211
|
this.a9_1 = 1;
|
|
212
|
-
suspendResult = this.
|
|
212
|
+
suspendResult = this.v4u_1.j4u_1.ss(this);
|
|
213
213
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
214
|
return suspendResult;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
continue $sm;
|
|
218
218
|
case 1:
|
|
219
|
-
this.
|
|
219
|
+
this.v4u_1.h4u_1.q(this.w4u_1);
|
|
220
220
|
return Unit_instance;
|
|
221
221
|
case 2:
|
|
222
222
|
throw this.d9_1;
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
};
|
|
235
235
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
236
236
|
CoroutineImpl.call(this, resultContinuation);
|
|
237
|
-
this.
|
|
237
|
+
this.f4v_1 = _this__u8e3s4;
|
|
238
238
|
}
|
|
239
239
|
protoOf($closeResponseLogCOROUTINE$).i9 = function () {
|
|
240
240
|
var suspendResult = this.c9_1;
|
|
@@ -244,19 +244,19 @@
|
|
|
244
244
|
switch (tmp) {
|
|
245
245
|
case 0:
|
|
246
246
|
this.b9_1 = 2;
|
|
247
|
-
if (!this.
|
|
247
|
+
if (!this.f4v_1.l4u_1.atomicfu$compareAndSet(false, true))
|
|
248
248
|
return Unit_instance;
|
|
249
249
|
this.a9_1 = 1;
|
|
250
|
-
suspendResult = this.
|
|
250
|
+
suspendResult = this.f4v_1.i4u_1.ss(this);
|
|
251
251
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
252
252
|
return suspendResult;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
continue $sm;
|
|
256
256
|
case 1:
|
|
257
|
-
var message = toString(trim(this.
|
|
257
|
+
var message = toString(trim(this.f4v_1.h4u_1));
|
|
258
258
|
if (charSequenceLength(message) > 0) {
|
|
259
|
-
this.
|
|
259
|
+
this.f4v_1.f4u_1.m4u(message);
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
return Unit_instance;
|
|
@@ -275,57 +275,57 @@
|
|
|
275
275
|
while (true);
|
|
276
276
|
};
|
|
277
277
|
function HttpClientCallLogger(logger) {
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
}
|
|
286
|
-
protoOf(HttpClientCallLogger).
|
|
287
|
-
var tmp0 = this.
|
|
278
|
+
this.f4u_1 = logger;
|
|
279
|
+
this.g4u_1 = StringBuilder_init_$Create$();
|
|
280
|
+
this.h4u_1 = StringBuilder_init_$Create$();
|
|
281
|
+
this.i4u_1 = Job();
|
|
282
|
+
this.j4u_1 = Job();
|
|
283
|
+
this.k4u_1 = atomic$boolean$1(false);
|
|
284
|
+
this.l4u_1 = atomic$boolean$1(false);
|
|
285
|
+
}
|
|
286
|
+
protoOf(HttpClientCallLogger).g4v = function (message) {
|
|
287
|
+
var tmp0 = this.g4u_1;
|
|
288
288
|
// Inline function 'kotlin.text.trim' call
|
|
289
289
|
// Inline function 'kotlin.text.appendLine' call
|
|
290
290
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
291
291
|
// Inline function 'kotlin.text.appendLine' call
|
|
292
292
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
293
293
|
};
|
|
294
|
-
protoOf(HttpClientCallLogger).
|
|
295
|
-
var tmp0 = this.
|
|
294
|
+
protoOf(HttpClientCallLogger).h4v = function (message) {
|
|
295
|
+
var tmp0 = this.h4u_1;
|
|
296
296
|
// Inline function 'kotlin.text.trim' call
|
|
297
297
|
// Inline function 'kotlin.text.appendLine' call
|
|
298
298
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
299
299
|
// Inline function 'kotlin.text.appendLine' call
|
|
300
300
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
301
|
-
this.
|
|
301
|
+
this.j4u_1.wz();
|
|
302
302
|
};
|
|
303
|
-
protoOf(HttpClientCallLogger).
|
|
303
|
+
protoOf(HttpClientCallLogger).i4v = function (message, $completion) {
|
|
304
304
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
305
305
|
tmp.c9_1 = Unit_instance;
|
|
306
306
|
tmp.d9_1 = null;
|
|
307
307
|
return tmp.i9();
|
|
308
308
|
};
|
|
309
|
-
protoOf(HttpClientCallLogger).
|
|
309
|
+
protoOf(HttpClientCallLogger).j4v = function (message, $completion) {
|
|
310
310
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
311
311
|
tmp.c9_1 = Unit_instance;
|
|
312
312
|
tmp.d9_1 = null;
|
|
313
313
|
return tmp.i9();
|
|
314
314
|
};
|
|
315
|
-
protoOf(HttpClientCallLogger).
|
|
316
|
-
if (!this.
|
|
315
|
+
protoOf(HttpClientCallLogger).k4v = function () {
|
|
316
|
+
if (!this.k4u_1.atomicfu$compareAndSet(false, true))
|
|
317
317
|
return Unit_instance;
|
|
318
318
|
try {
|
|
319
|
-
var message = toString(trim(this.
|
|
319
|
+
var message = toString(trim(this.g4u_1));
|
|
320
320
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
321
321
|
if (charSequenceLength(message) > 0) {
|
|
322
|
-
this.
|
|
322
|
+
this.f4u_1.m4u(message);
|
|
323
323
|
}
|
|
324
324
|
}finally {
|
|
325
|
-
this.
|
|
325
|
+
this.i4u_1.wz();
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
|
-
protoOf(HttpClientCallLogger).
|
|
328
|
+
protoOf(HttpClientCallLogger).l4v = function ($completion) {
|
|
329
329
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
330
330
|
tmp.c9_1 = Unit_instance;
|
|
331
331
|
tmp.d9_1 = null;
|
|
@@ -349,9 +349,9 @@
|
|
|
349
349
|
}
|
|
350
350
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
351
351
|
Enum.call(this, name, ordinal);
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
352
|
+
this.o4v_1 = info;
|
|
353
|
+
this.p4v_1 = headers;
|
|
354
|
+
this.q4v_1 = body;
|
|
355
355
|
}
|
|
356
356
|
function LogLevel_ALL_getInstance() {
|
|
357
357
|
LogLevel_initEntries();
|
|
@@ -375,27 +375,27 @@
|
|
|
375
375
|
}
|
|
376
376
|
function LoggedContent(originalContent, channel) {
|
|
377
377
|
ReadChannelContent.call(this);
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
378
|
+
this.s4v_1 = originalContent;
|
|
379
|
+
this.t4v_1 = channel;
|
|
380
|
+
this.u4v_1 = this.s4v_1.f32();
|
|
381
|
+
this.v4v_1 = this.s4v_1.h32();
|
|
382
|
+
this.w4v_1 = this.s4v_1.g32();
|
|
383
|
+
this.x4v_1 = this.s4v_1.j2w();
|
|
384
384
|
}
|
|
385
|
-
protoOf(LoggedContent).
|
|
386
|
-
return this.
|
|
385
|
+
protoOf(LoggedContent).f32 = function () {
|
|
386
|
+
return this.u4v_1;
|
|
387
387
|
};
|
|
388
|
-
protoOf(LoggedContent).
|
|
389
|
-
return this.
|
|
388
|
+
protoOf(LoggedContent).h32 = function () {
|
|
389
|
+
return this.v4v_1;
|
|
390
390
|
};
|
|
391
|
-
protoOf(LoggedContent).
|
|
392
|
-
return this.
|
|
391
|
+
protoOf(LoggedContent).g32 = function () {
|
|
392
|
+
return this.w4v_1;
|
|
393
393
|
};
|
|
394
|
-
protoOf(LoggedContent).
|
|
395
|
-
return this.
|
|
394
|
+
protoOf(LoggedContent).j2w = function () {
|
|
395
|
+
return this.x4v_1;
|
|
396
396
|
};
|
|
397
|
-
protoOf(LoggedContent).
|
|
398
|
-
return this.
|
|
397
|
+
protoOf(LoggedContent).l32 = function () {
|
|
398
|
+
return this.t4v_1;
|
|
399
399
|
};
|
|
400
400
|
function Companion() {
|
|
401
401
|
}
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
}
|
|
409
409
|
function SimpleLogger() {
|
|
410
410
|
}
|
|
411
|
-
protoOf(SimpleLogger).
|
|
411
|
+
protoOf(SimpleLogger).m4u = function (message) {
|
|
412
412
|
println('HttpClient: ' + message);
|
|
413
413
|
};
|
|
414
414
|
var SimpleLogger_instance;
|
|
@@ -433,19 +433,19 @@
|
|
|
433
433
|
function LoggingConfig() {
|
|
434
434
|
var tmp = this;
|
|
435
435
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
436
|
-
tmp.
|
|
436
|
+
tmp.y4v_1 = ArrayList_init_$Create$();
|
|
437
437
|
var tmp_0 = this;
|
|
438
438
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
439
|
-
tmp_0.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
439
|
+
tmp_0.z4v_1 = ArrayList_init_$Create$();
|
|
440
|
+
this.a4w_1 = null;
|
|
441
|
+
this.b4w_1 = LoggingFormat_Default_getInstance();
|
|
442
|
+
this.c4w_1 = LogLevel_HEADERS_getInstance();
|
|
443
443
|
}
|
|
444
|
-
protoOf(LoggingConfig).
|
|
445
|
-
this.
|
|
444
|
+
protoOf(LoggingConfig).d4w = function (value) {
|
|
445
|
+
this.a4w_1 = value;
|
|
446
446
|
};
|
|
447
|
-
protoOf(LoggingConfig).
|
|
448
|
-
var tmp0_elvis_lhs = this.
|
|
447
|
+
protoOf(LoggingConfig).e4w = function () {
|
|
448
|
+
var tmp0_elvis_lhs = this.a4w_1;
|
|
449
449
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
450
450
|
};
|
|
451
451
|
var LoggingFormat_Default_instance;
|
|
@@ -467,17 +467,17 @@
|
|
|
467
467
|
// Inline function 'kotlin.apply' call
|
|
468
468
|
var this_0 = StringBuilder_init_$Create$();
|
|
469
469
|
// Inline function 'kotlin.text.isEmpty' call
|
|
470
|
-
var this_1 = _this__u8e3s4.
|
|
470
|
+
var this_1 = _this__u8e3s4.k31();
|
|
471
471
|
if (charSequenceLength(this_1) === 0) {
|
|
472
472
|
this_0.q('/');
|
|
473
473
|
} else {
|
|
474
|
-
this_0.q(_this__u8e3s4.
|
|
474
|
+
this_0.q(_this__u8e3s4.k31());
|
|
475
475
|
}
|
|
476
476
|
// Inline function 'kotlin.text.isEmpty' call
|
|
477
|
-
var this_2 = _this__u8e3s4.
|
|
477
|
+
var this_2 = _this__u8e3s4.n31();
|
|
478
478
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
479
479
|
this_0.q('?');
|
|
480
|
-
this_0.q(_this__u8e3s4.
|
|
480
|
+
this_0.q(_this__u8e3s4.n31());
|
|
481
481
|
}
|
|
482
482
|
return this_0.toString();
|
|
483
483
|
}
|
|
@@ -489,10 +489,10 @@
|
|
|
489
489
|
}
|
|
490
490
|
var tmp;
|
|
491
491
|
if (content instanceof ByteArrayContent) {
|
|
492
|
-
tmp = fromInt(content.
|
|
492
|
+
tmp = fromInt(content.i32().length);
|
|
493
493
|
} else {
|
|
494
494
|
if (content instanceof ContentWrapper) {
|
|
495
|
-
tmp = computeRequestBodySize(content.
|
|
495
|
+
tmp = computeRequestBodySize(content.r32());
|
|
496
496
|
} else {
|
|
497
497
|
if (content instanceof NoContent) {
|
|
498
498
|
tmp = 0n;
|
|
@@ -509,27 +509,27 @@
|
|
|
509
509
|
return tmp;
|
|
510
510
|
}
|
|
511
511
|
function Context(context) {
|
|
512
|
-
this.
|
|
512
|
+
this.f4w_1 = context;
|
|
513
513
|
}
|
|
514
|
-
protoOf(Context).
|
|
515
|
-
return this.
|
|
514
|
+
protoOf(Context).g4w = function (content, $completion) {
|
|
515
|
+
return this.f4w_1.j2n(content, $completion);
|
|
516
516
|
};
|
|
517
|
-
protoOf(Context).
|
|
518
|
-
return this.
|
|
517
|
+
protoOf(Context).h4w = function ($completion) {
|
|
518
|
+
return this.f4w_1.k2n($completion);
|
|
519
519
|
};
|
|
520
520
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
521
|
-
this.
|
|
521
|
+
this.q4w_1 = $handler;
|
|
522
522
|
CoroutineImpl.call(this, resultContinuation);
|
|
523
523
|
}
|
|
524
|
-
protoOf(SendHook$install$slambda).
|
|
525
|
-
var tmp = this.
|
|
524
|
+
protoOf(SendHook$install$slambda).y3c = function ($this$intercept, it, $completion) {
|
|
525
|
+
var tmp = this.z3c($this$intercept, it, $completion);
|
|
526
526
|
tmp.c9_1 = Unit_instance;
|
|
527
527
|
tmp.d9_1 = null;
|
|
528
528
|
return tmp.i9();
|
|
529
529
|
};
|
|
530
530
|
protoOf(SendHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
531
531
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
532
|
-
return this.
|
|
532
|
+
return this.y3c(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
533
533
|
};
|
|
534
534
|
protoOf(SendHook$install$slambda).i9 = function () {
|
|
535
535
|
var suspendResult = this.c9_1;
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
case 0:
|
|
541
541
|
this.b9_1 = 2;
|
|
542
542
|
this.a9_1 = 1;
|
|
543
|
-
suspendResult = this.
|
|
543
|
+
suspendResult = this.q4w_1(new Context(this.r4w_1), this.r4w_1.f2o_1, this);
|
|
544
544
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
545
545
|
return suspendResult;
|
|
546
546
|
}
|
|
@@ -562,52 +562,52 @@
|
|
|
562
562
|
}
|
|
563
563
|
while (true);
|
|
564
564
|
};
|
|
565
|
-
protoOf(SendHook$install$slambda).
|
|
566
|
-
var i = new SendHook$install$slambda(this.
|
|
567
|
-
i.
|
|
568
|
-
i.
|
|
565
|
+
protoOf(SendHook$install$slambda).z3c = function ($this$intercept, it, completion) {
|
|
566
|
+
var i = new SendHook$install$slambda(this.q4w_1, completion);
|
|
567
|
+
i.r4w_1 = $this$intercept;
|
|
568
|
+
i.s4w_1 = it;
|
|
569
569
|
return i;
|
|
570
570
|
};
|
|
571
571
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
572
572
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
573
573
|
var l = function ($this$intercept, it, $completion) {
|
|
574
|
-
return i.
|
|
574
|
+
return i.y3c($this$intercept, it, $completion);
|
|
575
575
|
};
|
|
576
576
|
l.$arity = 2;
|
|
577
577
|
return l;
|
|
578
578
|
}
|
|
579
579
|
function SendHook() {
|
|
580
580
|
}
|
|
581
|
-
protoOf(SendHook).
|
|
582
|
-
var tmp = Phases_getInstance().
|
|
583
|
-
client.
|
|
581
|
+
protoOf(SendHook).t4w = function (client, handler) {
|
|
582
|
+
var tmp = Phases_getInstance().p3e_1;
|
|
583
|
+
client.h3c_1.j2o(tmp, SendHook$install$slambda_0(handler, null));
|
|
584
584
|
};
|
|
585
|
-
protoOf(SendHook).
|
|
586
|
-
return this.
|
|
585
|
+
protoOf(SendHook).o3l = function (client, handler) {
|
|
586
|
+
return this.t4w(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
587
587
|
};
|
|
588
588
|
var SendHook_instance;
|
|
589
589
|
function SendHook_getInstance() {
|
|
590
590
|
return SendHook_instance;
|
|
591
591
|
}
|
|
592
592
|
function Context_0(context) {
|
|
593
|
-
this.
|
|
593
|
+
this.u4w_1 = context;
|
|
594
594
|
}
|
|
595
|
-
protoOf(Context_0).
|
|
596
|
-
return this.
|
|
595
|
+
protoOf(Context_0).n4a = function (response, $completion) {
|
|
596
|
+
return this.u4w_1.j2n(response, $completion);
|
|
597
597
|
};
|
|
598
598
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
599
|
-
this.
|
|
599
|
+
this.d4x_1 = $handler;
|
|
600
600
|
CoroutineImpl.call(this, resultContinuation);
|
|
601
601
|
}
|
|
602
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
603
|
-
var tmp = this.
|
|
602
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).a3m = function ($this$intercept, it, $completion) {
|
|
603
|
+
var tmp = this.b3m($this$intercept, it, $completion);
|
|
604
604
|
tmp.c9_1 = Unit_instance;
|
|
605
605
|
tmp.d9_1 = null;
|
|
606
606
|
return tmp.i9();
|
|
607
607
|
};
|
|
608
608
|
protoOf(ResponseAfterEncodingHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
609
609
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
610
|
-
return this.
|
|
610
|
+
return this.a3m(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
611
611
|
};
|
|
612
612
|
protoOf(ResponseAfterEncodingHook$install$slambda).i9 = function () {
|
|
613
613
|
var suspendResult = this.c9_1;
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
case 0:
|
|
619
619
|
this.b9_1 = 2;
|
|
620
620
|
this.a9_1 = 1;
|
|
621
|
-
suspendResult = this.
|
|
621
|
+
suspendResult = this.d4x_1(new Context_0(this.e4x_1), this.e4x_1.i2n(), this);
|
|
622
622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
623
623
|
return suspendResult;
|
|
624
624
|
}
|
|
@@ -640,53 +640,53 @@
|
|
|
640
640
|
}
|
|
641
641
|
while (true);
|
|
642
642
|
};
|
|
643
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
644
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
645
|
-
i.
|
|
646
|
-
i.
|
|
643
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).b3m = function ($this$intercept, it, completion) {
|
|
644
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.d4x_1, completion);
|
|
645
|
+
i.e4x_1 = $this$intercept;
|
|
646
|
+
i.f4x_1 = it;
|
|
647
647
|
return i;
|
|
648
648
|
};
|
|
649
649
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
650
650
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
651
651
|
var l = function ($this$intercept, it, $completion) {
|
|
652
|
-
return i.
|
|
652
|
+
return i.a3m($this$intercept, it, $completion);
|
|
653
653
|
};
|
|
654
654
|
l.$arity = 2;
|
|
655
655
|
return l;
|
|
656
656
|
}
|
|
657
657
|
function ResponseAfterEncodingHook() {
|
|
658
658
|
}
|
|
659
|
-
protoOf(ResponseAfterEncodingHook).
|
|
659
|
+
protoOf(ResponseAfterEncodingHook).g4x = function (client, handler) {
|
|
660
660
|
var afterState = new PipelinePhase('AfterState');
|
|
661
|
-
client.
|
|
662
|
-
client.
|
|
661
|
+
client.i3c_1.g2o(Phases_getInstance_0().e3m_1, afterState);
|
|
662
|
+
client.i3c_1.j2o(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
663
663
|
};
|
|
664
|
-
protoOf(ResponseAfterEncodingHook).
|
|
665
|
-
return this.
|
|
664
|
+
protoOf(ResponseAfterEncodingHook).o3l = function (client, handler) {
|
|
665
|
+
return this.g4x(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
666
666
|
};
|
|
667
667
|
var ResponseAfterEncodingHook_instance;
|
|
668
668
|
function ResponseAfterEncodingHook_getInstance() {
|
|
669
669
|
return ResponseAfterEncodingHook_instance;
|
|
670
670
|
}
|
|
671
671
|
function Context_1(context) {
|
|
672
|
-
this.
|
|
672
|
+
this.h4x_1 = context;
|
|
673
673
|
}
|
|
674
|
-
protoOf(Context_1).
|
|
675
|
-
return this.
|
|
674
|
+
protoOf(Context_1).i4x = function ($completion) {
|
|
675
|
+
return this.h4x_1.k2n($completion);
|
|
676
676
|
};
|
|
677
677
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
678
|
-
this.
|
|
678
|
+
this.r4x_1 = $handler;
|
|
679
679
|
CoroutineImpl.call(this, resultContinuation);
|
|
680
680
|
}
|
|
681
|
-
protoOf(ResponseHook$install$slambda).
|
|
682
|
-
var tmp = this.
|
|
681
|
+
protoOf(ResponseHook$install$slambda).a3m = function ($this$intercept, it, $completion) {
|
|
682
|
+
var tmp = this.b3m($this$intercept, it, $completion);
|
|
683
683
|
tmp.c9_1 = Unit_instance;
|
|
684
684
|
tmp.d9_1 = null;
|
|
685
685
|
return tmp.i9();
|
|
686
686
|
};
|
|
687
687
|
protoOf(ResponseHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
688
688
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
689
|
-
return this.
|
|
689
|
+
return this.a3m(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
690
690
|
};
|
|
691
691
|
protoOf(ResponseHook$install$slambda).i9 = function () {
|
|
692
692
|
var suspendResult = this.c9_1;
|
|
@@ -697,7 +697,7 @@
|
|
|
697
697
|
case 0:
|
|
698
698
|
this.b9_1 = 2;
|
|
699
699
|
this.a9_1 = 1;
|
|
700
|
-
suspendResult = this.
|
|
700
|
+
suspendResult = this.r4x_1(new Context_1(this.s4x_1), this.s4x_1.i2n(), this);
|
|
701
701
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
702
702
|
return suspendResult;
|
|
703
703
|
}
|
|
@@ -719,52 +719,52 @@
|
|
|
719
719
|
}
|
|
720
720
|
while (true);
|
|
721
721
|
};
|
|
722
|
-
protoOf(ResponseHook$install$slambda).
|
|
723
|
-
var i = new ResponseHook$install$slambda(this.
|
|
724
|
-
i.
|
|
725
|
-
i.
|
|
722
|
+
protoOf(ResponseHook$install$slambda).b3m = function ($this$intercept, it, completion) {
|
|
723
|
+
var i = new ResponseHook$install$slambda(this.r4x_1, completion);
|
|
724
|
+
i.s4x_1 = $this$intercept;
|
|
725
|
+
i.t4x_1 = it;
|
|
726
726
|
return i;
|
|
727
727
|
};
|
|
728
728
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
729
729
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
730
730
|
var l = function ($this$intercept, it, $completion) {
|
|
731
|
-
return i.
|
|
731
|
+
return i.a3m($this$intercept, it, $completion);
|
|
732
732
|
};
|
|
733
733
|
l.$arity = 2;
|
|
734
734
|
return l;
|
|
735
735
|
}
|
|
736
736
|
function ResponseHook() {
|
|
737
737
|
}
|
|
738
|
-
protoOf(ResponseHook).
|
|
739
|
-
var tmp = Phases_getInstance_0().
|
|
740
|
-
client.
|
|
738
|
+
protoOf(ResponseHook).u4x = function (client, handler) {
|
|
739
|
+
var tmp = Phases_getInstance_0().e3m_1;
|
|
740
|
+
client.i3c_1.j2o(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
741
741
|
};
|
|
742
|
-
protoOf(ResponseHook).
|
|
743
|
-
return this.
|
|
742
|
+
protoOf(ResponseHook).o3l = function (client, handler) {
|
|
743
|
+
return this.u4x(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
744
744
|
};
|
|
745
745
|
var ResponseHook_instance;
|
|
746
746
|
function ResponseHook_getInstance() {
|
|
747
747
|
return ResponseHook_instance;
|
|
748
748
|
}
|
|
749
749
|
function Context_2(context) {
|
|
750
|
-
this.
|
|
750
|
+
this.v4x_1 = context;
|
|
751
751
|
}
|
|
752
|
-
protoOf(Context_2).
|
|
753
|
-
return this.
|
|
752
|
+
protoOf(Context_2).w4x = function ($completion) {
|
|
753
|
+
return this.v4x_1.k2n($completion);
|
|
754
754
|
};
|
|
755
755
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
756
|
-
this.
|
|
756
|
+
this.f4y_1 = $handler;
|
|
757
757
|
CoroutineImpl.call(this, resultContinuation);
|
|
758
758
|
}
|
|
759
|
-
protoOf(ReceiveHook$install$slambda).
|
|
760
|
-
var tmp = this.
|
|
759
|
+
protoOf(ReceiveHook$install$slambda).t3d = function ($this$intercept, it, $completion) {
|
|
760
|
+
var tmp = this.u3d($this$intercept, it, $completion);
|
|
761
761
|
tmp.c9_1 = Unit_instance;
|
|
762
762
|
tmp.d9_1 = null;
|
|
763
763
|
return tmp.i9();
|
|
764
764
|
};
|
|
765
765
|
protoOf(ReceiveHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
766
766
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
767
|
-
return this.
|
|
767
|
+
return this.t3d(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
768
768
|
};
|
|
769
769
|
protoOf(ReceiveHook$install$slambda).i9 = function () {
|
|
770
770
|
var suspendResult = this.c9_1;
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
case 0:
|
|
776
776
|
this.b9_1 = 2;
|
|
777
777
|
this.a9_1 = 1;
|
|
778
|
-
suspendResult = this.
|
|
778
|
+
suspendResult = this.f4y_1(new Context_2(this.g4y_1), this.g4y_1.f2o_1, this);
|
|
779
779
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
780
780
|
return suspendResult;
|
|
781
781
|
}
|
|
@@ -797,28 +797,28 @@
|
|
|
797
797
|
}
|
|
798
798
|
while (true);
|
|
799
799
|
};
|
|
800
|
-
protoOf(ReceiveHook$install$slambda).
|
|
801
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
802
|
-
i.
|
|
803
|
-
i.
|
|
800
|
+
protoOf(ReceiveHook$install$slambda).u3d = function ($this$intercept, it, completion) {
|
|
801
|
+
var i = new ReceiveHook$install$slambda(this.f4y_1, completion);
|
|
802
|
+
i.g4y_1 = $this$intercept;
|
|
803
|
+
i.h4y_1 = it;
|
|
804
804
|
return i;
|
|
805
805
|
};
|
|
806
806
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
807
807
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
808
808
|
var l = function ($this$intercept, it, $completion) {
|
|
809
|
-
return i.
|
|
809
|
+
return i.t3d($this$intercept, it, $completion);
|
|
810
810
|
};
|
|
811
811
|
l.$arity = 2;
|
|
812
812
|
return l;
|
|
813
813
|
}
|
|
814
814
|
function ReceiveHook() {
|
|
815
815
|
}
|
|
816
|
-
protoOf(ReceiveHook).
|
|
817
|
-
var tmp = Phases_getInstance_1().
|
|
818
|
-
client.
|
|
816
|
+
protoOf(ReceiveHook).i4y = function (client, handler) {
|
|
817
|
+
var tmp = Phases_getInstance_1().d3f_1;
|
|
818
|
+
client.g3c_1.j2o(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
819
819
|
};
|
|
820
|
-
protoOf(ReceiveHook).
|
|
821
|
-
return this.
|
|
820
|
+
protoOf(ReceiveHook).o3l = function (client, handler) {
|
|
821
|
+
return this.i4y(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
822
822
|
};
|
|
823
823
|
var ReceiveHook_instance;
|
|
824
824
|
function ReceiveHook_getInstance() {
|
|
@@ -833,43 +833,43 @@
|
|
|
833
833
|
}
|
|
834
834
|
function Logging$lambda($this$createClientPlugin) {
|
|
835
835
|
_init_properties_Logging_kt__66pui5();
|
|
836
|
-
var logger = $this$createClientPlugin.
|
|
837
|
-
var level = $this$createClientPlugin.
|
|
838
|
-
var filters = $this$createClientPlugin.
|
|
839
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
840
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
836
|
+
var logger = $this$createClientPlugin.i3m_1.e4w();
|
|
837
|
+
var level = $this$createClientPlugin.i3m_1.c4w_1;
|
|
838
|
+
var filters = $this$createClientPlugin.i3m_1.y4v_1;
|
|
839
|
+
var sanitizedHeaders = $this$createClientPlugin.i3m_1.z4v_1;
|
|
840
|
+
var okHttpFormat = $this$createClientPlugin.i3m_1.b4w_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
841
841
|
var tmp = SendHook_instance;
|
|
842
|
-
$this$createClientPlugin.
|
|
842
|
+
$this$createClientPlugin.l3m(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
843
843
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
844
|
-
$this$createClientPlugin.
|
|
844
|
+
$this$createClientPlugin.l3m(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
845
845
|
var tmp_1 = ResponseHook_instance;
|
|
846
|
-
$this$createClientPlugin.
|
|
846
|
+
$this$createClientPlugin.l3m(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
847
847
|
var tmp_2 = ReceiveHook_instance;
|
|
848
|
-
$this$createClientPlugin.
|
|
848
|
+
$this$createClientPlugin.l3m(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
849
849
|
if (okHttpFormat)
|
|
850
850
|
return Unit_instance;
|
|
851
|
-
if (!level.
|
|
851
|
+
if (!level.q4v_1)
|
|
852
852
|
return Unit_instance;
|
|
853
853
|
var tmp_3 = get_ResponseObserver();
|
|
854
|
-
var responseObserver = tmp_3.
|
|
855
|
-
get_ResponseObserver().
|
|
854
|
+
var responseObserver = tmp_3.k3f(Logging$lambda$lambda(level));
|
|
855
|
+
get_ResponseObserver().l3f(responseObserver, $this$createClientPlugin.h3m_1);
|
|
856
856
|
return Unit_instance;
|
|
857
857
|
}
|
|
858
858
|
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
859
|
+
this.r4y_1 = $channel;
|
|
860
|
+
this.s4y_1 = $firstChunk;
|
|
861
|
+
this.t4y_1 = $firstReadSize;
|
|
862
|
+
this.u4y_1 = $body;
|
|
863
863
|
CoroutineImpl.call(this, resultContinuation);
|
|
864
864
|
}
|
|
865
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
866
|
-
var tmp = this.
|
|
865
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).x4y = function ($this$async, $completion) {
|
|
866
|
+
var tmp = this.e1u($this$async, $completion);
|
|
867
867
|
tmp.c9_1 = Unit_instance;
|
|
868
868
|
tmp.d9_1 = null;
|
|
869
869
|
return tmp.i9();
|
|
870
870
|
};
|
|
871
871
|
protoOf(Logging$lambda$detectIfBinary$slambda).u9 = function (p1, $completion) {
|
|
872
|
-
return this.
|
|
872
|
+
return this.x4y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
873
873
|
};
|
|
874
874
|
protoOf(Logging$lambda$detectIfBinary$slambda).i9 = function () {
|
|
875
875
|
var suspendResult = this.c9_1;
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
case 0:
|
|
881
881
|
this.b9_1 = 4;
|
|
882
882
|
this.a9_1 = 1;
|
|
883
|
-
suspendResult = writeFully(this.
|
|
883
|
+
suspendResult = writeFully(this.r4y_1, this.s4y_1, 0, this.t4y_1, this);
|
|
884
884
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
885
885
|
return suspendResult;
|
|
886
886
|
}
|
|
@@ -888,23 +888,23 @@
|
|
|
888
888
|
continue $sm;
|
|
889
889
|
case 1:
|
|
890
890
|
this.a9_1 = 2;
|
|
891
|
-
suspendResult = copyTo(this.
|
|
891
|
+
suspendResult = copyTo(this.u4y_1, this.r4y_1, this);
|
|
892
892
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
893
893
|
return suspendResult;
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
continue $sm;
|
|
897
897
|
case 2:
|
|
898
|
-
this.
|
|
898
|
+
this.w4y_1 = suspendResult;
|
|
899
899
|
this.a9_1 = 3;
|
|
900
|
-
suspendResult = this.
|
|
900
|
+
suspendResult = this.r4y_1.e1l(this);
|
|
901
901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
902
902
|
return suspendResult;
|
|
903
903
|
}
|
|
904
904
|
|
|
905
905
|
continue $sm;
|
|
906
906
|
case 3:
|
|
907
|
-
return this.
|
|
907
|
+
return this.w4y_1;
|
|
908
908
|
case 4:
|
|
909
909
|
throw this.d9_1;
|
|
910
910
|
}
|
|
@@ -919,15 +919,15 @@
|
|
|
919
919
|
}
|
|
920
920
|
while (true);
|
|
921
921
|
};
|
|
922
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
923
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.
|
|
924
|
-
i.
|
|
922
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).e1u = function ($this$async, completion) {
|
|
923
|
+
var i = new Logging$lambda$detectIfBinary$slambda(this.r4y_1, this.s4y_1, this.t4y_1, this.u4y_1, completion);
|
|
924
|
+
i.v4y_1 = $this$async;
|
|
925
925
|
return i;
|
|
926
926
|
};
|
|
927
927
|
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
928
928
|
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
929
929
|
var l = function ($this$async, $completion) {
|
|
930
|
-
return i.
|
|
930
|
+
return i.x4y($this$async, $completion);
|
|
931
931
|
};
|
|
932
932
|
l.$arity = 1;
|
|
933
933
|
return l;
|
|
@@ -937,18 +937,18 @@
|
|
|
937
937
|
return it;
|
|
938
938
|
}
|
|
939
939
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
940
|
+
this.g4z_1 = $content;
|
|
941
|
+
this.h4z_1 = $channel;
|
|
942
942
|
CoroutineImpl.call(this, resultContinuation);
|
|
943
943
|
}
|
|
944
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
945
|
-
var tmp = this.
|
|
944
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).d1u = function ($this$launch, $completion) {
|
|
945
|
+
var tmp = this.e1u($this$launch, $completion);
|
|
946
946
|
tmp.c9_1 = Unit_instance;
|
|
947
947
|
tmp.d9_1 = null;
|
|
948
948
|
return tmp.i9();
|
|
949
949
|
};
|
|
950
950
|
protoOf(Logging$lambda$logOutgoingContent$slambda).u9 = function (p1, $completion) {
|
|
951
|
-
return this.
|
|
951
|
+
return this.d1u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
952
952
|
};
|
|
953
953
|
protoOf(Logging$lambda$logOutgoingContent$slambda).i9 = function () {
|
|
954
954
|
var suspendResult = this.c9_1;
|
|
@@ -959,14 +959,14 @@
|
|
|
959
959
|
case 0:
|
|
960
960
|
this.b9_1 = 2;
|
|
961
961
|
this.a9_1 = 1;
|
|
962
|
-
suspendResult = this.
|
|
962
|
+
suspendResult = this.g4z_1.n32(this.h4z_1, this);
|
|
963
963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
964
964
|
return suspendResult;
|
|
965
965
|
}
|
|
966
966
|
|
|
967
967
|
continue $sm;
|
|
968
968
|
case 1:
|
|
969
|
-
this.
|
|
969
|
+
this.h4z_1.l4();
|
|
970
970
|
return Unit_instance;
|
|
971
971
|
case 2:
|
|
972
972
|
throw this.d9_1;
|
|
@@ -982,22 +982,22 @@
|
|
|
982
982
|
}
|
|
983
983
|
while (true);
|
|
984
984
|
};
|
|
985
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
986
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
987
|
-
i.
|
|
985
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).e1u = function ($this$launch, completion) {
|
|
986
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.g4z_1, this.h4z_1, completion);
|
|
987
|
+
i.i4z_1 = $this$launch;
|
|
988
988
|
return i;
|
|
989
989
|
};
|
|
990
990
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
991
991
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
992
992
|
var l = function ($this$launch, $completion) {
|
|
993
|
-
return i.
|
|
993
|
+
return i.d1u($this$launch, $completion);
|
|
994
994
|
};
|
|
995
995
|
l.$arity = 1;
|
|
996
996
|
return l;
|
|
997
997
|
}
|
|
998
998
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
999
999
|
_init_properties_Logging_kt__66pui5();
|
|
1000
|
-
return GZipEncoder_getInstance().
|
|
1000
|
+
return GZipEncoder_getInstance().g2k(channel);
|
|
1001
1001
|
}
|
|
1002
1002
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1003
1003
|
return function ($this$replaceResponse) {
|
|
@@ -1005,20 +1005,20 @@
|
|
|
1005
1005
|
};
|
|
1006
1006
|
}
|
|
1007
1007
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1008
|
+
this.r4z_1 = $channel;
|
|
1009
|
+
this.s4z_1 = $charset;
|
|
1010
|
+
this.t4z_1 = $requestLog;
|
|
1011
|
+
this.u4z_1 = $logger;
|
|
1012
1012
|
CoroutineImpl.call(this, resultContinuation);
|
|
1013
1013
|
}
|
|
1014
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1015
|
-
var tmp = this.
|
|
1014
|
+
protoOf(Logging$lambda$logRequestBody$slambda).d1u = function ($this$launch, $completion) {
|
|
1015
|
+
var tmp = this.e1u($this$launch, $completion);
|
|
1016
1016
|
tmp.c9_1 = Unit_instance;
|
|
1017
1017
|
tmp.d9_1 = null;
|
|
1018
1018
|
return tmp.i9();
|
|
1019
1019
|
};
|
|
1020
1020
|
protoOf(Logging$lambda$logRequestBody$slambda).u9 = function (p1, $completion) {
|
|
1021
|
-
return this.
|
|
1021
|
+
return this.d1u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1022
1022
|
};
|
|
1023
1023
|
protoOf(Logging$lambda$logRequestBody$slambda).i9 = function () {
|
|
1024
1024
|
var suspendResult = this.c9_1;
|
|
@@ -1032,8 +1032,8 @@
|
|
|
1032
1032
|
continue $sm;
|
|
1033
1033
|
case 1:
|
|
1034
1034
|
this.b9_1 = 6;
|
|
1035
|
-
var tmp0 = this.
|
|
1036
|
-
this.
|
|
1035
|
+
var tmp0 = this.r4z_1;
|
|
1036
|
+
this.y4z_1 = this.s4z_1;
|
|
1037
1037
|
this.b9_1 = 3;
|
|
1038
1038
|
this.a9_1 = 2;
|
|
1039
1039
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1044,7 +1044,7 @@
|
|
|
1044
1044
|
continue $sm;
|
|
1045
1045
|
case 2:
|
|
1046
1046
|
var ARGUMENT = suspendResult;
|
|
1047
|
-
this.
|
|
1047
|
+
this.x4z_1 = readText(ARGUMENT, this.y4z_1);
|
|
1048
1048
|
this.b9_1 = 6;
|
|
1049
1049
|
this.a9_1 = 4;
|
|
1050
1050
|
continue $sm;
|
|
@@ -1054,7 +1054,7 @@
|
|
|
1054
1054
|
if (tmp_0 instanceof Error) {
|
|
1055
1055
|
var cause = this.d9_1;
|
|
1056
1056
|
var tmp_1 = this;
|
|
1057
|
-
tmp_1.
|
|
1057
|
+
tmp_1.x4z_1 = null;
|
|
1058
1058
|
this.a9_1 = 4;
|
|
1059
1059
|
continue $sm;
|
|
1060
1060
|
} else {
|
|
@@ -1063,27 +1063,27 @@
|
|
|
1063
1063
|
|
|
1064
1064
|
case 4:
|
|
1065
1065
|
this.b9_1 = 6;
|
|
1066
|
-
var tmp0_elvis_lhs = this.
|
|
1066
|
+
var tmp0_elvis_lhs = this.x4z_1;
|
|
1067
1067
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1068
|
-
var tmp0_0 = this.
|
|
1068
|
+
var tmp0_0 = this.t4z_1;
|
|
1069
1069
|
var value = 'BODY START';
|
|
1070
1070
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1071
|
+
this.t4z_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1072
|
+
this.w4z_1 = this.t4z_1.q('BODY END');
|
|
1073
1073
|
this.b9_1 = 7;
|
|
1074
1074
|
this.a9_1 = 5;
|
|
1075
1075
|
continue $sm;
|
|
1076
1076
|
case 5:
|
|
1077
|
-
this.
|
|
1077
|
+
this.w4z_1;
|
|
1078
1078
|
this.b9_1 = 7;
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1079
|
+
this.u4z_1.g4v(this.t4z_1.toString());
|
|
1080
|
+
this.u4z_1.k4v();
|
|
1081
1081
|
return Unit_instance;
|
|
1082
1082
|
case 6:
|
|
1083
1083
|
this.b9_1 = 7;
|
|
1084
1084
|
var t = this.d9_1;
|
|
1085
|
-
this.
|
|
1086
|
-
this.
|
|
1085
|
+
this.u4z_1.g4v(this.t4z_1.toString());
|
|
1086
|
+
this.u4z_1.k4v();
|
|
1087
1087
|
throw t;
|
|
1088
1088
|
case 7:
|
|
1089
1089
|
throw this.d9_1;
|
|
@@ -1099,15 +1099,15 @@
|
|
|
1099
1099
|
}
|
|
1100
1100
|
while (true);
|
|
1101
1101
|
};
|
|
1102
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1103
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1104
|
-
i.
|
|
1102
|
+
protoOf(Logging$lambda$logRequestBody$slambda).e1u = function ($this$launch, completion) {
|
|
1103
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.r4z_1, this.s4z_1, this.t4z_1, this.u4z_1, completion);
|
|
1104
|
+
i.v4z_1 = $this$launch;
|
|
1105
1105
|
return i;
|
|
1106
1106
|
};
|
|
1107
1107
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1108
1108
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1109
1109
|
var l = function ($this$launch, $completion) {
|
|
1110
|
-
return i.
|
|
1110
|
+
return i.d1u($this$launch, $completion);
|
|
1111
1111
|
};
|
|
1112
1112
|
l.$arity = 1;
|
|
1113
1113
|
return l;
|
|
@@ -1202,47 +1202,47 @@
|
|
|
1202
1202
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1203
1203
|
var requestLog = StringBuilder_init_$Create$();
|
|
1204
1204
|
// Inline function 'kotlin.text.appendLine' call
|
|
1205
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1205
|
+
var value = 'BODY Content-Type: ' + toString_0(content.f32());
|
|
1206
1206
|
// Inline function 'kotlin.text.appendLine' call
|
|
1207
1207
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1208
|
-
var tmp0_safe_receiver = content.
|
|
1208
|
+
var tmp0_safe_receiver = content.f32();
|
|
1209
1209
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1210
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
1210
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().y1u_1 : tmp1_elvis_lhs;
|
|
1211
1211
|
var channel = new ByteChannel();
|
|
1212
1212
|
var tmp = GlobalScope_instance;
|
|
1213
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1213
|
+
var tmp_0 = Dispatchers_getInstance().v13_1.ch(MDCContext());
|
|
1214
1214
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1215
1215
|
return observe(content, channel, $completion);
|
|
1216
1216
|
}
|
|
1217
1217
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1218
|
-
if (level.
|
|
1219
|
-
logger.
|
|
1218
|
+
if (level.o4v_1) {
|
|
1219
|
+
logger.m4u('REQUEST ' + Url(context.f3e_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1223
|
-
var tmp = request.
|
|
1223
|
+
var tmp = request.i3e_1;
|
|
1224
1224
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1225
1225
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1226
|
-
request.
|
|
1226
|
+
request.k3e_1.w2g(get_ClientCallLogger(), callLogger);
|
|
1227
1227
|
// Inline function 'kotlin.text.buildString' call
|
|
1228
1228
|
// Inline function 'kotlin.apply' call
|
|
1229
1229
|
var this_0 = StringBuilder_init_$Create$();
|
|
1230
|
-
if (level.
|
|
1230
|
+
if (level.o4v_1) {
|
|
1231
1231
|
// Inline function 'kotlin.text.appendLine' call
|
|
1232
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1232
|
+
var value = 'REQUEST: ' + Url(request.f3e_1).toString();
|
|
1233
1233
|
// Inline function 'kotlin.text.appendLine' call
|
|
1234
1234
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1235
1235
|
// Inline function 'kotlin.text.appendLine' call
|
|
1236
|
-
var value_0 = 'METHOD: ' + request.
|
|
1236
|
+
var value_0 = 'METHOD: ' + request.g3e_1.toString();
|
|
1237
1237
|
// Inline function 'kotlin.text.appendLine' call
|
|
1238
1238
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1239
1239
|
}
|
|
1240
|
-
if (level.
|
|
1240
|
+
if (level.p4v_1) {
|
|
1241
1241
|
// Inline function 'kotlin.text.appendLine' call
|
|
1242
1242
|
var value_1 = 'COMMON HEADERS';
|
|
1243
1243
|
// Inline function 'kotlin.text.appendLine' call
|
|
1244
1244
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1245
|
-
logHeaders(this_0, request.
|
|
1245
|
+
logHeaders(this_0, request.h3e_1.u2k(), sanitizedHeaders);
|
|
1246
1246
|
// Inline function 'kotlin.text.appendLine' call
|
|
1247
1247
|
var value_2 = 'CONTENT HEADERS';
|
|
1248
1248
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1254
1254
|
while (_iterator__ex2g4s.u()) {
|
|
1255
1255
|
var element = _iterator__ex2g4s.v();
|
|
1256
|
-
if (element.
|
|
1256
|
+
if (element.t53_1(HttpHeaders_getInstance().u2s_1)) {
|
|
1257
1257
|
tmp$ret$9 = element;
|
|
1258
1258
|
break $l$block;
|
|
1259
1259
|
}
|
|
@@ -1261,14 +1261,14 @@
|
|
|
1261
1261
|
tmp$ret$9 = null;
|
|
1262
1262
|
}
|
|
1263
1263
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
1264
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1264
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s53_1;
|
|
1265
1265
|
var tmp$ret$11;
|
|
1266
1266
|
$l$block_0: {
|
|
1267
1267
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1268
1268
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1269
1269
|
while (_iterator__ex2g4s_0.u()) {
|
|
1270
1270
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1271
|
-
if (element_0.
|
|
1271
|
+
if (element_0.t53_1(HttpHeaders_getInstance().x2s_1)) {
|
|
1272
1272
|
tmp$ret$11 = element_0;
|
|
1273
1273
|
break $l$block_0;
|
|
1274
1274
|
}
|
|
@@ -1276,66 +1276,66 @@
|
|
|
1276
1276
|
tmp$ret$11 = null;
|
|
1277
1277
|
}
|
|
1278
1278
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1279
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1280
|
-
var tmp2_safe_receiver = content.
|
|
1279
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s53_1;
|
|
1280
|
+
var tmp2_safe_receiver = content.h32();
|
|
1281
1281
|
if (tmp2_safe_receiver == null)
|
|
1282
1282
|
null;
|
|
1283
1283
|
else {
|
|
1284
1284
|
// Inline function 'kotlin.let' call
|
|
1285
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
1285
|
+
var tmp_0 = HttpHeaders_getInstance().u2s_1;
|
|
1286
1286
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1287
1287
|
}
|
|
1288
|
-
var tmp3_safe_receiver = content.
|
|
1288
|
+
var tmp3_safe_receiver = content.f32();
|
|
1289
1289
|
if (tmp3_safe_receiver == null)
|
|
1290
1290
|
null;
|
|
1291
1291
|
else {
|
|
1292
1292
|
// Inline function 'kotlin.let' call
|
|
1293
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
1293
|
+
var tmp_1 = HttpHeaders_getInstance().x2s_1;
|
|
1294
1294
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1295
1295
|
}
|
|
1296
|
-
logHeaders(this_0, content.
|
|
1296
|
+
logHeaders(this_0, content.j2w().u2k(), sanitizedHeaders);
|
|
1297
1297
|
}
|
|
1298
1298
|
var message = this_0.toString();
|
|
1299
1299
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1300
1300
|
if (charSequenceLength(message) > 0) {
|
|
1301
|
-
callLogger.
|
|
1301
|
+
callLogger.g4v(message);
|
|
1302
1302
|
}
|
|
1303
1303
|
var tmp_2;
|
|
1304
1304
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1305
1305
|
if (charSequenceLength(message) === 0) {
|
|
1306
1306
|
tmp_2 = true;
|
|
1307
1307
|
} else {
|
|
1308
|
-
tmp_2 = !level.
|
|
1308
|
+
tmp_2 = !level.q4v_1;
|
|
1309
1309
|
}
|
|
1310
1310
|
if (tmp_2) {
|
|
1311
|
-
callLogger.
|
|
1311
|
+
callLogger.k4v();
|
|
1312
1312
|
return null;
|
|
1313
1313
|
}
|
|
1314
1314
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1315
1315
|
}
|
|
1316
1316
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1317
|
-
if (!level.
|
|
1317
|
+
if (!level.o4v_1)
|
|
1318
1318
|
return Unit_instance;
|
|
1319
|
-
log.q('RESPONSE ' + request.
|
|
1319
|
+
log.q('RESPONSE ' + request.w3f().toString() + ' failed with exception: ' + cause.toString());
|
|
1320
1320
|
}
|
|
1321
1321
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1322
|
+
this.c54_1 = $okHttpFormat;
|
|
1323
|
+
this.d54_1 = $logger;
|
|
1324
|
+
this.e54_1 = $filters;
|
|
1325
|
+
this.f54_1 = $sanitizedHeaders;
|
|
1326
|
+
this.g54_1 = $level;
|
|
1327
|
+
this.h54_1 = $this_createClientPlugin;
|
|
1328
1328
|
CoroutineImpl.call(this, resultContinuation);
|
|
1329
1329
|
}
|
|
1330
|
-
protoOf(Logging$lambda$slambda).
|
|
1331
|
-
var tmp = this.
|
|
1330
|
+
protoOf(Logging$lambda$slambda).q54 = function ($this$on, request, $completion) {
|
|
1331
|
+
var tmp = this.r54($this$on, request, $completion);
|
|
1332
1332
|
tmp.c9_1 = Unit_instance;
|
|
1333
1333
|
tmp.d9_1 = null;
|
|
1334
1334
|
return tmp.i9();
|
|
1335
1335
|
};
|
|
1336
1336
|
protoOf(Logging$lambda$slambda).v9 = function (p1, p2, $completion) {
|
|
1337
1337
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1338
|
-
return this.
|
|
1338
|
+
return this.q54(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1339
1339
|
};
|
|
1340
1340
|
protoOf(Logging$lambda$slambda).i9 = function () {
|
|
1341
1341
|
var suspendResult = this.c9_1;
|
|
@@ -1345,16 +1345,16 @@
|
|
|
1345
1345
|
switch (tmp) {
|
|
1346
1346
|
case 0:
|
|
1347
1347
|
this.b9_1 = 16;
|
|
1348
|
-
if (!invoke$shouldBeLogged(this.
|
|
1349
|
-
this.
|
|
1348
|
+
if (!invoke$shouldBeLogged(this.e54_1, this.j54_1)) {
|
|
1349
|
+
this.j54_1.k3e_1.w2g(get_DisableLogging(), Unit_instance);
|
|
1350
1350
|
return Unit_instance;
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
if (this.
|
|
1353
|
+
if (this.c54_1) {
|
|
1354
1354
|
var tmp_0 = this;
|
|
1355
|
-
tmp_0.
|
|
1355
|
+
tmp_0.m54_1 = ArrayList_init_$Create$();
|
|
1356
1356
|
this.a9_1 = 10;
|
|
1357
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1357
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.f54_1, this.g54_1, this.h54_1, this.j54_1, this.m54_1, this);
|
|
1358
1358
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1359
1359
|
return suspendResult;
|
|
1360
1360
|
}
|
|
@@ -1367,14 +1367,14 @@
|
|
|
1367
1367
|
case 1:
|
|
1368
1368
|
this.b9_1 = 3;
|
|
1369
1369
|
this.a9_1 = 2;
|
|
1370
|
-
suspendResult = invoke$logRequest(this.
|
|
1370
|
+
suspendResult = invoke$logRequest(this.d54_1, this.g54_1, this.f54_1, this.j54_1, this);
|
|
1371
1371
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1372
1372
|
return suspendResult;
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
1375
|
continue $sm;
|
|
1376
1376
|
case 2:
|
|
1377
|
-
this.
|
|
1377
|
+
this.p54_1 = suspendResult;
|
|
1378
1378
|
this.b9_1 = 16;
|
|
1379
1379
|
this.a9_1 = 4;
|
|
1380
1380
|
continue $sm;
|
|
@@ -1384,7 +1384,7 @@
|
|
|
1384
1384
|
if (tmp_1 instanceof Error) {
|
|
1385
1385
|
var _unused_var__etf5q3 = this.d9_1;
|
|
1386
1386
|
var tmp_2 = this;
|
|
1387
|
-
tmp_2.
|
|
1387
|
+
tmp_2.p54_1 = null;
|
|
1388
1388
|
this.a9_1 = 4;
|
|
1389
1389
|
continue $sm;
|
|
1390
1390
|
} else {
|
|
@@ -1393,23 +1393,23 @@
|
|
|
1393
1393
|
|
|
1394
1394
|
case 4:
|
|
1395
1395
|
this.b9_1 = 16;
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1396
|
+
this.o54_1 = this.p54_1;
|
|
1397
|
+
this.n54_1 = Unit_instance;
|
|
1398
1398
|
this.a9_1 = 5;
|
|
1399
1399
|
continue $sm;
|
|
1400
1400
|
case 5:
|
|
1401
1401
|
this.b9_1 = 8;
|
|
1402
1402
|
this.b9_1 = 7;
|
|
1403
1403
|
this.a9_1 = 6;
|
|
1404
|
-
var tmp0_elvis_lhs = this.
|
|
1405
|
-
suspendResult = this.
|
|
1404
|
+
var tmp0_elvis_lhs = this.o54_1;
|
|
1405
|
+
suspendResult = this.i54_1.g4w(tmp0_elvis_lhs == null ? this.j54_1.i3e_1 : tmp0_elvis_lhs, this);
|
|
1406
1406
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1407
1407
|
return suspendResult;
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
1410
|
continue $sm;
|
|
1411
1411
|
case 6:
|
|
1412
|
-
this.
|
|
1412
|
+
this.n54_1 = suspendResult;
|
|
1413
1413
|
this.b9_1 = 16;
|
|
1414
1414
|
this.a9_1 = 9;
|
|
1415
1415
|
continue $sm;
|
|
@@ -1419,7 +1419,7 @@
|
|
|
1419
1419
|
if (tmp_3 instanceof Error) {
|
|
1420
1420
|
var cause = this.d9_1;
|
|
1421
1421
|
var tmp_4 = this;
|
|
1422
|
-
invoke$logRequestException(this.
|
|
1422
|
+
invoke$logRequestException(this.g54_1, this.d54_1, this.j54_1, cause);
|
|
1423
1423
|
throw cause;
|
|
1424
1424
|
} else {
|
|
1425
1425
|
throw this.d9_1;
|
|
@@ -1430,26 +1430,26 @@
|
|
|
1430
1430
|
var t = this.d9_1;
|
|
1431
1431
|
throw t;
|
|
1432
1432
|
case 9:
|
|
1433
|
-
this.
|
|
1433
|
+
this.n54_1;
|
|
1434
1434
|
this.b9_1 = 16;
|
|
1435
1435
|
return Unit_instance;
|
|
1436
1436
|
case 10:
|
|
1437
1437
|
var content = suspendResult;
|
|
1438
|
-
if (this.
|
|
1439
|
-
this.
|
|
1438
|
+
if (this.m54_1.l1() > 0) {
|
|
1439
|
+
this.d54_1.m4u(joinToString(this.m54_1, '\n'));
|
|
1440
1440
|
}
|
|
1441
1441
|
|
|
1442
1442
|
this.b9_1 = 14;
|
|
1443
1443
|
if (!(content == null)) {
|
|
1444
1444
|
this.a9_1 = 12;
|
|
1445
|
-
suspendResult = this.
|
|
1445
|
+
suspendResult = this.i54_1.g4w(content, this);
|
|
1446
1446
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1447
1447
|
return suspendResult;
|
|
1448
1448
|
}
|
|
1449
1449
|
continue $sm;
|
|
1450
1450
|
} else {
|
|
1451
1451
|
this.a9_1 = 11;
|
|
1452
|
-
suspendResult = this.
|
|
1452
|
+
suspendResult = this.i54_1.h4w(this);
|
|
1453
1453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1454
|
return suspendResult;
|
|
1455
1455
|
}
|
|
@@ -1457,15 +1457,15 @@
|
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
1459
|
case 11:
|
|
1460
|
-
this.
|
|
1460
|
+
this.l54_1 = suspendResult;
|
|
1461
1461
|
this.a9_1 = 13;
|
|
1462
1462
|
continue $sm;
|
|
1463
1463
|
case 12:
|
|
1464
|
-
this.
|
|
1464
|
+
this.l54_1 = suspendResult;
|
|
1465
1465
|
this.a9_1 = 13;
|
|
1466
1466
|
continue $sm;
|
|
1467
1467
|
case 13:
|
|
1468
|
-
this.
|
|
1468
|
+
this.k54_1 = this.l54_1;
|
|
1469
1469
|
this.b9_1 = 16;
|
|
1470
1470
|
this.a9_1 = 15;
|
|
1471
1471
|
continue $sm;
|
|
@@ -1475,7 +1475,7 @@
|
|
|
1475
1475
|
if (tmp_5 instanceof Error) {
|
|
1476
1476
|
var cause_0 = this.d9_1;
|
|
1477
1477
|
var tmp_6 = this;
|
|
1478
|
-
this.
|
|
1478
|
+
this.d54_1.m4u('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1479
1479
|
throw cause_0;
|
|
1480
1480
|
} else {
|
|
1481
1481
|
throw this.d9_1;
|
|
@@ -1498,37 +1498,37 @@
|
|
|
1498
1498
|
}
|
|
1499
1499
|
while (true);
|
|
1500
1500
|
};
|
|
1501
|
-
protoOf(Logging$lambda$slambda).
|
|
1502
|
-
var i = new Logging$lambda$slambda(this.
|
|
1503
|
-
i.
|
|
1504
|
-
i.
|
|
1501
|
+
protoOf(Logging$lambda$slambda).r54 = function ($this$on, request, completion) {
|
|
1502
|
+
var i = new Logging$lambda$slambda(this.c54_1, this.d54_1, this.e54_1, this.f54_1, this.g54_1, this.h54_1, completion);
|
|
1503
|
+
i.i54_1 = $this$on;
|
|
1504
|
+
i.j54_1 = request;
|
|
1505
1505
|
return i;
|
|
1506
1506
|
};
|
|
1507
1507
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1508
1508
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1509
1509
|
var l = function ($this$on, request, $completion) {
|
|
1510
|
-
return i.
|
|
1510
|
+
return i.q54($this$on, request, $completion);
|
|
1511
1511
|
};
|
|
1512
1512
|
l.$arity = 2;
|
|
1513
1513
|
return l;
|
|
1514
1514
|
}
|
|
1515
1515
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1516
|
-
this.
|
|
1517
|
-
this.
|
|
1518
|
-
this.
|
|
1519
|
-
this.
|
|
1520
|
-
this.
|
|
1516
|
+
this.a55_1 = $okHttpFormat;
|
|
1517
|
+
this.b55_1 = $logger;
|
|
1518
|
+
this.c55_1 = $sanitizedHeaders;
|
|
1519
|
+
this.d55_1 = $level;
|
|
1520
|
+
this.e55_1 = $this_createClientPlugin;
|
|
1521
1521
|
CoroutineImpl.call(this, resultContinuation);
|
|
1522
1522
|
}
|
|
1523
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1524
|
-
var tmp = this.
|
|
1523
|
+
protoOf(Logging$lambda$slambda_1).i55 = function ($this$on, response, $completion) {
|
|
1524
|
+
var tmp = this.j55($this$on, response, $completion);
|
|
1525
1525
|
tmp.c9_1 = Unit_instance;
|
|
1526
1526
|
tmp.d9_1 = null;
|
|
1527
1527
|
return tmp.i9();
|
|
1528
1528
|
};
|
|
1529
1529
|
protoOf(Logging$lambda$slambda_1).v9 = function (p1, p2, $completion) {
|
|
1530
1530
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1531
|
-
return this.
|
|
1531
|
+
return this.i55(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1532
1532
|
};
|
|
1533
1533
|
protoOf(Logging$lambda$slambda_1).i9 = function () {
|
|
1534
1534
|
var suspendResult = this.c9_1;
|
|
@@ -1538,11 +1538,11 @@
|
|
|
1538
1538
|
switch (tmp) {
|
|
1539
1539
|
case 0:
|
|
1540
1540
|
this.b9_1 = 5;
|
|
1541
|
-
if (this.
|
|
1541
|
+
if (this.a55_1) {
|
|
1542
1542
|
var tmp_0 = this;
|
|
1543
|
-
tmp_0.
|
|
1543
|
+
tmp_0.h55_1 = ArrayList_init_$Create$();
|
|
1544
1544
|
this.a9_1 = 1;
|
|
1545
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1545
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.c55_1, this.d55_1, this.e55_1, this.g55_1, this.h55_1, this);
|
|
1546
1546
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1547
1547
|
return suspendResult;
|
|
1548
1548
|
}
|
|
@@ -1554,13 +1554,13 @@
|
|
|
1554
1554
|
|
|
1555
1555
|
case 1:
|
|
1556
1556
|
var newResponse = suspendResult;
|
|
1557
|
-
if (this.
|
|
1558
|
-
this.
|
|
1557
|
+
if (this.h55_1.l1() > 0) {
|
|
1558
|
+
this.b55_1.m4u(joinToString(this.h55_1, '\n'));
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
|
-
if (!equals(newResponse, this.
|
|
1561
|
+
if (!equals(newResponse, this.g55_1)) {
|
|
1562
1562
|
this.a9_1 = 2;
|
|
1563
|
-
suspendResult = this.
|
|
1563
|
+
suspendResult = this.f55_1.n4a(newResponse, this);
|
|
1564
1564
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1565
1565
|
return suspendResult;
|
|
1566
1566
|
}
|
|
@@ -1592,35 +1592,35 @@
|
|
|
1592
1592
|
}
|
|
1593
1593
|
while (true);
|
|
1594
1594
|
};
|
|
1595
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1596
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1597
|
-
i.
|
|
1598
|
-
i.
|
|
1595
|
+
protoOf(Logging$lambda$slambda_1).j55 = function ($this$on, response, completion) {
|
|
1596
|
+
var i = new Logging$lambda$slambda_1(this.a55_1, this.b55_1, this.c55_1, this.d55_1, this.e55_1, completion);
|
|
1597
|
+
i.f55_1 = $this$on;
|
|
1598
|
+
i.g55_1 = response;
|
|
1599
1599
|
return i;
|
|
1600
1600
|
};
|
|
1601
1601
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1602
1602
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1603
1603
|
var l = function ($this$on, response, $completion) {
|
|
1604
|
-
return i.
|
|
1604
|
+
return i.i55($this$on, response, $completion);
|
|
1605
1605
|
};
|
|
1606
1606
|
l.$arity = 2;
|
|
1607
1607
|
return l;
|
|
1608
1608
|
}
|
|
1609
1609
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1610
|
+
this.s55_1 = $okHttpFormat;
|
|
1611
|
+
this.t55_1 = $level;
|
|
1612
|
+
this.u55_1 = $sanitizedHeaders;
|
|
1613
1613
|
CoroutineImpl.call(this, resultContinuation);
|
|
1614
1614
|
}
|
|
1615
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1616
|
-
var tmp = this.
|
|
1615
|
+
protoOf(Logging$lambda$slambda_3).d56 = function ($this$on, response, $completion) {
|
|
1616
|
+
var tmp = this.e56($this$on, response, $completion);
|
|
1617
1617
|
tmp.c9_1 = Unit_instance;
|
|
1618
1618
|
tmp.d9_1 = null;
|
|
1619
1619
|
return tmp.i9();
|
|
1620
1620
|
};
|
|
1621
1621
|
protoOf(Logging$lambda$slambda_3).v9 = function (p1, p2, $completion) {
|
|
1622
1622
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1623
|
-
return this.
|
|
1623
|
+
return this.d56(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1624
1624
|
};
|
|
1625
1625
|
protoOf(Logging$lambda$slambda_3).i9 = function () {
|
|
1626
1626
|
var suspendResult = this.c9_1;
|
|
@@ -1630,28 +1630,28 @@
|
|
|
1630
1630
|
switch (tmp) {
|
|
1631
1631
|
case 0:
|
|
1632
1632
|
this.b9_1 = 14;
|
|
1633
|
-
if (this.
|
|
1633
|
+
if (this.s55_1)
|
|
1634
1634
|
return Unit_instance;
|
|
1635
|
-
if (this.
|
|
1635
|
+
if (this.t55_1.equals(LogLevel_NONE_getInstance()) || this.w55_1.u3f().o3f().v2g(get_DisableLogging()))
|
|
1636
1636
|
return Unit_instance;
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1637
|
+
this.y55_1 = this.w55_1.u3f().o3f().t2g(get_ClientCallLogger());
|
|
1638
|
+
this.a56_1 = StringBuilder_init_$Create$();
|
|
1639
|
+
this.z55_1 = false;
|
|
1640
1640
|
this.a9_1 = 1;
|
|
1641
1641
|
continue $sm;
|
|
1642
1642
|
case 1:
|
|
1643
1643
|
this.b9_1 = 4;
|
|
1644
1644
|
this.b9_1 = 3;
|
|
1645
|
-
logResponseHeader(this.
|
|
1645
|
+
logResponseHeader(this.a56_1, this.w55_1.u3f().f3d(), this.t55_1, this.u55_1);
|
|
1646
1646
|
this.a9_1 = 2;
|
|
1647
|
-
suspendResult = this.
|
|
1647
|
+
suspendResult = this.v55_1.i4x(this);
|
|
1648
1648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1649
1649
|
return suspendResult;
|
|
1650
1650
|
}
|
|
1651
1651
|
|
|
1652
1652
|
continue $sm;
|
|
1653
1653
|
case 2:
|
|
1654
|
-
this.
|
|
1654
|
+
this.b56_1 = suspendResult;
|
|
1655
1655
|
this.b9_1 = 14;
|
|
1656
1656
|
this.a9_1 = 9;
|
|
1657
1657
|
continue $sm;
|
|
@@ -1661,8 +1661,8 @@
|
|
|
1661
1661
|
if (tmp_0 instanceof Error) {
|
|
1662
1662
|
var cause = this.d9_1;
|
|
1663
1663
|
var tmp_1 = this;
|
|
1664
|
-
invoke$logResponseException(this.
|
|
1665
|
-
this.
|
|
1664
|
+
invoke$logResponseException(this.t55_1, this.a56_1, this.w55_1.u3f().n3f(), cause);
|
|
1665
|
+
this.z55_1 = true;
|
|
1666
1666
|
throw cause;
|
|
1667
1667
|
} else {
|
|
1668
1668
|
throw this.d9_1;
|
|
@@ -1670,19 +1670,19 @@
|
|
|
1670
1670
|
|
|
1671
1671
|
case 4:
|
|
1672
1672
|
this.b9_1 = 14;
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
if (this.
|
|
1673
|
+
this.c56_1 = this.d9_1;
|
|
1674
|
+
this.y55_1.h4v(this.a56_1.toString());
|
|
1675
|
+
if (this.z55_1 || !this.t55_1.q4v_1) {
|
|
1676
1676
|
this.a9_1 = 7;
|
|
1677
|
-
suspendResult = this.
|
|
1677
|
+
suspendResult = this.y55_1.l4v(this);
|
|
1678
1678
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1679
1679
|
return suspendResult;
|
|
1680
1680
|
}
|
|
1681
1681
|
continue $sm;
|
|
1682
1682
|
} else {
|
|
1683
|
-
if (this.
|
|
1683
|
+
if (this.t55_1.q4v_1 && get_isSaved(this.w55_1)) {
|
|
1684
1684
|
this.a9_1 = 5;
|
|
1685
|
-
suspendResult = logResponseBody(this.
|
|
1685
|
+
suspendResult = logResponseBody(this.y55_1, this.w55_1, this);
|
|
1686
1686
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1687
1687
|
return suspendResult;
|
|
1688
1688
|
}
|
|
@@ -1695,7 +1695,7 @@
|
|
|
1695
1695
|
|
|
1696
1696
|
case 5:
|
|
1697
1697
|
this.a9_1 = 6;
|
|
1698
|
-
suspendResult = this.
|
|
1698
|
+
suspendResult = this.y55_1.l4v(this);
|
|
1699
1699
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1700
1700
|
return suspendResult;
|
|
1701
1701
|
}
|
|
@@ -1708,22 +1708,22 @@
|
|
|
1708
1708
|
this.a9_1 = 8;
|
|
1709
1709
|
continue $sm;
|
|
1710
1710
|
case 8:
|
|
1711
|
-
throw this.
|
|
1711
|
+
throw this.c56_1;
|
|
1712
1712
|
case 9:
|
|
1713
|
-
this.
|
|
1713
|
+
this.x55_1 = this.b56_1;
|
|
1714
1714
|
this.b9_1 = 14;
|
|
1715
|
-
this.
|
|
1716
|
-
if (this.
|
|
1715
|
+
this.y55_1.h4v(this.a56_1.toString());
|
|
1716
|
+
if (this.z55_1 || !this.t55_1.q4v_1) {
|
|
1717
1717
|
this.a9_1 = 12;
|
|
1718
|
-
suspendResult = this.
|
|
1718
|
+
suspendResult = this.y55_1.l4v(this);
|
|
1719
1719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1720
1720
|
return suspendResult;
|
|
1721
1721
|
}
|
|
1722
1722
|
continue $sm;
|
|
1723
1723
|
} else {
|
|
1724
|
-
if (this.
|
|
1724
|
+
if (this.t55_1.q4v_1 && get_isSaved(this.w55_1)) {
|
|
1725
1725
|
this.a9_1 = 10;
|
|
1726
|
-
suspendResult = logResponseBody(this.
|
|
1726
|
+
suspendResult = logResponseBody(this.y55_1, this.w55_1, this);
|
|
1727
1727
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1728
1728
|
return suspendResult;
|
|
1729
1729
|
}
|
|
@@ -1736,7 +1736,7 @@
|
|
|
1736
1736
|
|
|
1737
1737
|
case 10:
|
|
1738
1738
|
this.a9_1 = 11;
|
|
1739
|
-
suspendResult = this.
|
|
1739
|
+
suspendResult = this.y55_1.l4v(this);
|
|
1740
1740
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1741
1741
|
return suspendResult;
|
|
1742
1742
|
}
|
|
@@ -1764,34 +1764,34 @@
|
|
|
1764
1764
|
}
|
|
1765
1765
|
while (true);
|
|
1766
1766
|
};
|
|
1767
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1768
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1769
|
-
i.
|
|
1770
|
-
i.
|
|
1767
|
+
protoOf(Logging$lambda$slambda_3).e56 = function ($this$on, response, completion) {
|
|
1768
|
+
var i = new Logging$lambda$slambda_3(this.s55_1, this.t55_1, this.u55_1, completion);
|
|
1769
|
+
i.v55_1 = $this$on;
|
|
1770
|
+
i.w55_1 = response;
|
|
1771
1771
|
return i;
|
|
1772
1772
|
};
|
|
1773
1773
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1774
1774
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1775
1775
|
var l = function ($this$on, response, $completion) {
|
|
1776
|
-
return i.
|
|
1776
|
+
return i.d56($this$on, response, $completion);
|
|
1777
1777
|
};
|
|
1778
1778
|
l.$arity = 2;
|
|
1779
1779
|
return l;
|
|
1780
1780
|
}
|
|
1781
1781
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1782
|
+
this.n56_1 = $okHttpFormat;
|
|
1783
|
+
this.o56_1 = $level;
|
|
1784
1784
|
CoroutineImpl.call(this, resultContinuation);
|
|
1785
1785
|
}
|
|
1786
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1787
|
-
var tmp = this.
|
|
1786
|
+
protoOf(Logging$lambda$slambda_5).u56 = function ($this$on, call, $completion) {
|
|
1787
|
+
var tmp = this.v56($this$on, call, $completion);
|
|
1788
1788
|
tmp.c9_1 = Unit_instance;
|
|
1789
1789
|
tmp.d9_1 = null;
|
|
1790
1790
|
return tmp.i9();
|
|
1791
1791
|
};
|
|
1792
1792
|
protoOf(Logging$lambda$slambda_5).v9 = function (p1, p2, $completion) {
|
|
1793
1793
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1794
|
-
return this.
|
|
1794
|
+
return this.u56(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1795
1795
|
};
|
|
1796
1796
|
protoOf(Logging$lambda$slambda_5).i9 = function () {
|
|
1797
1797
|
var suspendResult = this.c9_1;
|
|
@@ -1801,22 +1801,22 @@
|
|
|
1801
1801
|
switch (tmp) {
|
|
1802
1802
|
case 0:
|
|
1803
1803
|
this.b9_1 = 6;
|
|
1804
|
-
if (this.
|
|
1804
|
+
if (this.n56_1)
|
|
1805
1805
|
return Unit_instance;
|
|
1806
|
-
if (this.
|
|
1806
|
+
if (this.o56_1.equals(LogLevel_NONE_getInstance()) || this.q56_1.o3f().v2g(get_DisableLogging())) {
|
|
1807
1807
|
return Unit_instance;
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
1810
|
this.b9_1 = 2;
|
|
1811
1811
|
this.a9_1 = 1;
|
|
1812
|
-
suspendResult = this.
|
|
1812
|
+
suspendResult = this.p56_1.w4x(this);
|
|
1813
1813
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1814
1814
|
return suspendResult;
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
1817
1817
|
continue $sm;
|
|
1818
1818
|
case 1:
|
|
1819
|
-
this.
|
|
1819
|
+
this.r56_1 = suspendResult;
|
|
1820
1820
|
this.b9_1 = 6;
|
|
1821
1821
|
this.a9_1 = 5;
|
|
1822
1822
|
continue $sm;
|
|
@@ -1824,12 +1824,12 @@
|
|
|
1824
1824
|
this.b9_1 = 6;
|
|
1825
1825
|
var tmp_0 = this.d9_1;
|
|
1826
1826
|
if (tmp_0 instanceof Error) {
|
|
1827
|
-
this.
|
|
1827
|
+
this.s56_1 = this.d9_1;
|
|
1828
1828
|
var log = StringBuilder_init_$Create$();
|
|
1829
|
-
this.
|
|
1830
|
-
invoke$logResponseException(this.
|
|
1829
|
+
this.t56_1 = this.q56_1.o3f().t2g(get_ClientCallLogger());
|
|
1830
|
+
invoke$logResponseException(this.o56_1, log, this.q56_1.n3f(), this.s56_1);
|
|
1831
1831
|
this.a9_1 = 3;
|
|
1832
|
-
suspendResult = this.
|
|
1832
|
+
suspendResult = this.t56_1.i4v(log.toString(), this);
|
|
1833
1833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1834
1834
|
return suspendResult;
|
|
1835
1835
|
}
|
|
@@ -1840,7 +1840,7 @@
|
|
|
1840
1840
|
|
|
1841
1841
|
case 3:
|
|
1842
1842
|
this.a9_1 = 4;
|
|
1843
|
-
suspendResult = this.
|
|
1843
|
+
suspendResult = this.t56_1.l4v(this);
|
|
1844
1844
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1845
1845
|
return suspendResult;
|
|
1846
1846
|
}
|
|
@@ -1848,7 +1848,7 @@
|
|
|
1848
1848
|
continue $sm;
|
|
1849
1849
|
case 4:
|
|
1850
1850
|
var tmp_1 = this;
|
|
1851
|
-
throw this.
|
|
1851
|
+
throw this.s56_1;
|
|
1852
1852
|
case 5:
|
|
1853
1853
|
this.b9_1 = 6;
|
|
1854
1854
|
return Unit_instance;
|
|
@@ -1866,36 +1866,36 @@
|
|
|
1866
1866
|
}
|
|
1867
1867
|
while (true);
|
|
1868
1868
|
};
|
|
1869
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1870
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1871
|
-
i.
|
|
1872
|
-
i.
|
|
1869
|
+
protoOf(Logging$lambda$slambda_5).v56 = function ($this$on, call, completion) {
|
|
1870
|
+
var i = new Logging$lambda$slambda_5(this.n56_1, this.o56_1, completion);
|
|
1871
|
+
i.p56_1 = $this$on;
|
|
1872
|
+
i.q56_1 = call;
|
|
1873
1873
|
return i;
|
|
1874
1874
|
};
|
|
1875
1875
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1876
1876
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1877
1877
|
var l = function ($this$on, call, $completion) {
|
|
1878
|
-
return i.
|
|
1878
|
+
return i.u56($this$on, call, $completion);
|
|
1879
1879
|
};
|
|
1880
1880
|
l.$arity = 2;
|
|
1881
1881
|
return l;
|
|
1882
1882
|
}
|
|
1883
1883
|
function Logging$lambda$lambda$lambda(it) {
|
|
1884
1884
|
_init_properties_Logging_kt__66pui5();
|
|
1885
|
-
return !get_isSaved(it.
|
|
1885
|
+
return !get_isSaved(it.f3d());
|
|
1886
1886
|
}
|
|
1887
1887
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1888
|
-
this.
|
|
1888
|
+
this.e57_1 = $level;
|
|
1889
1889
|
CoroutineImpl.call(this, resultContinuation);
|
|
1890
1890
|
}
|
|
1891
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1892
|
-
var tmp = this.
|
|
1891
|
+
protoOf(Logging$lambda$lambda$slambda).v3o = function (response, $completion) {
|
|
1892
|
+
var tmp = this.i3n(response, $completion);
|
|
1893
1893
|
tmp.c9_1 = Unit_instance;
|
|
1894
1894
|
tmp.d9_1 = null;
|
|
1895
1895
|
return tmp.i9();
|
|
1896
1896
|
};
|
|
1897
1897
|
protoOf(Logging$lambda$lambda$slambda).u9 = function (p1, $completion) {
|
|
1898
|
-
return this.
|
|
1898
|
+
return this.v3o(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1899
1899
|
};
|
|
1900
1900
|
protoOf(Logging$lambda$lambda$slambda).i9 = function () {
|
|
1901
1901
|
var suspendResult = this.c9_1;
|
|
@@ -1905,11 +1905,11 @@
|
|
|
1905
1905
|
switch (tmp) {
|
|
1906
1906
|
case 0:
|
|
1907
1907
|
this.b9_1 = 3;
|
|
1908
|
-
if (this.
|
|
1908
|
+
if (this.e57_1.equals(LogLevel_NONE_getInstance()) || this.f57_1.u3f().o3f().v2g(get_DisableLogging()))
|
|
1909
1909
|
return Unit_instance;
|
|
1910
|
-
this.
|
|
1910
|
+
this.g57_1 = this.f57_1.u3f().o3f().t2g(get_ClientCallLogger());
|
|
1911
1911
|
this.a9_1 = 1;
|
|
1912
|
-
suspendResult = logResponseBody(this.
|
|
1912
|
+
suspendResult = logResponseBody(this.g57_1, this.f57_1, this);
|
|
1913
1913
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1914
1914
|
return suspendResult;
|
|
1915
1915
|
}
|
|
@@ -1917,7 +1917,7 @@
|
|
|
1917
1917
|
continue $sm;
|
|
1918
1918
|
case 1:
|
|
1919
1919
|
this.a9_1 = 2;
|
|
1920
|
-
suspendResult = this.
|
|
1920
|
+
suspendResult = this.g57_1.l4v(this);
|
|
1921
1921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
1922
|
return suspendResult;
|
|
1923
1923
|
}
|
|
@@ -1939,33 +1939,33 @@
|
|
|
1939
1939
|
}
|
|
1940
1940
|
while (true);
|
|
1941
1941
|
};
|
|
1942
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1943
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
1944
|
-
i.
|
|
1942
|
+
protoOf(Logging$lambda$lambda$slambda).i3n = function (response, completion) {
|
|
1943
|
+
var i = new Logging$lambda$lambda$slambda(this.e57_1, completion);
|
|
1944
|
+
i.f57_1 = response;
|
|
1945
1945
|
return i;
|
|
1946
1946
|
};
|
|
1947
1947
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1948
1948
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1949
1949
|
var l = function (response, $completion) {
|
|
1950
|
-
return i.
|
|
1950
|
+
return i.v3o(response, $completion);
|
|
1951
1951
|
};
|
|
1952
1952
|
l.$arity = 1;
|
|
1953
1953
|
return l;
|
|
1954
1954
|
}
|
|
1955
1955
|
function Logging$lambda$lambda($level) {
|
|
1956
1956
|
return function ($this$prepare) {
|
|
1957
|
-
$this$prepare.
|
|
1958
|
-
$this$prepare.
|
|
1957
|
+
$this$prepare.l4a(Logging$lambda$lambda$lambda);
|
|
1958
|
+
$this$prepare.k4a(Logging$lambda$lambda$slambda_0($level, null));
|
|
1959
1959
|
return Unit_instance;
|
|
1960
1960
|
};
|
|
1961
1961
|
}
|
|
1962
1962
|
function $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, resultContinuation) {
|
|
1963
1963
|
CoroutineImpl.call(this, resultContinuation);
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1968
|
-
this.
|
|
1964
|
+
this.h50_1 = $this_createClientPlugin;
|
|
1965
|
+
this.i50_1 = body;
|
|
1966
|
+
this.j50_1 = contentLength;
|
|
1967
|
+
this.k50_1 = contentType;
|
|
1968
|
+
this.l50_1 = headers;
|
|
1969
1969
|
}
|
|
1970
1970
|
protoOf($invoke$detectIfBinaryCOROUTINE$).i9 = function () {
|
|
1971
1971
|
var suspendResult = this.c9_1;
|
|
@@ -1975,46 +1975,46 @@
|
|
|
1975
1975
|
switch (tmp) {
|
|
1976
1976
|
case 0:
|
|
1977
1977
|
this.b9_1 = 4;
|
|
1978
|
-
if (this.
|
|
1979
|
-
return new Triple(true, this.
|
|
1978
|
+
if (this.l50_1.s2k(HttpHeaders_getInstance().s2s_1)) {
|
|
1979
|
+
return new Triple(true, this.j50_1, this.i50_1);
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
1982
|
var tmp_0 = this;
|
|
1983
1983
|
var tmp_1;
|
|
1984
|
-
if (!(this.
|
|
1985
|
-
var tmp0_elvis_lhs = charset(this.
|
|
1986
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
1984
|
+
if (!(this.k50_1 == null)) {
|
|
1985
|
+
var tmp0_elvis_lhs = charset(this.k50_1);
|
|
1986
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().y1u_1 : tmp0_elvis_lhs;
|
|
1987
1987
|
} else {
|
|
1988
|
-
tmp_1 = Charsets_getInstance().
|
|
1988
|
+
tmp_1 = Charsets_getInstance().y1u_1;
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
|
-
tmp_0.
|
|
1992
|
-
this.
|
|
1993
|
-
this.
|
|
1991
|
+
tmp_0.q50_1 = tmp_1;
|
|
1992
|
+
this.o50_1 = false;
|
|
1993
|
+
this.p50_1 = new Int8Array(1024);
|
|
1994
1994
|
this.a9_1 = 1;
|
|
1995
|
-
suspendResult = readAvailable(this.
|
|
1995
|
+
suspendResult = readAvailable(this.i50_1, this.p50_1, VOID, VOID, this);
|
|
1996
1996
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1997
1997
|
return suspendResult;
|
|
1998
1998
|
}
|
|
1999
1999
|
|
|
2000
2000
|
continue $sm;
|
|
2001
2001
|
case 1:
|
|
2002
|
-
this.
|
|
2003
|
-
if (this.
|
|
2004
|
-
return new Triple(false, 0n, this.
|
|
2002
|
+
this.n50_1 = suspendResult;
|
|
2003
|
+
if (this.n50_1 < 1) {
|
|
2004
|
+
return new Triple(false, 0n, this.i50_1);
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
2007
|
var this_0 = new Buffer();
|
|
2008
|
-
writeFully_0(this_0, this.
|
|
2008
|
+
writeFully_0(this_0, this.p50_1, 0, this.n50_1);
|
|
2009
2009
|
var buffer = this_0;
|
|
2010
2010
|
var tmp_2;
|
|
2011
2011
|
try {
|
|
2012
|
-
tmp_2 = decode(this.
|
|
2012
|
+
tmp_2 = decode(this.q50_1.b1v(), buffer);
|
|
2013
2013
|
} catch ($p) {
|
|
2014
2014
|
var tmp_3;
|
|
2015
2015
|
if ($p instanceof MalformedInputException) {
|
|
2016
2016
|
var _unused_var__etf5q3 = $p;
|
|
2017
|
-
this.
|
|
2017
|
+
this.o50_1 = true;
|
|
2018
2018
|
tmp_3 = '';
|
|
2019
2019
|
} else {
|
|
2020
2020
|
throw $p;
|
|
@@ -2023,7 +2023,7 @@
|
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
2025
|
var firstChunkText = tmp_2;
|
|
2026
|
-
if (!this.
|
|
2026
|
+
if (!this.o50_1) {
|
|
2027
2027
|
var lastCharIndex = -1;
|
|
2028
2028
|
var inductionVariable = 0;
|
|
2029
2029
|
var last = firstChunkText.length;
|
|
@@ -2039,16 +2039,16 @@
|
|
|
2039
2039
|
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
2040
2040
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2041
2041
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
2042
|
-
this.
|
|
2042
|
+
this.o50_1 = true;
|
|
2043
2043
|
break $l$loop;
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
2047
|
|
|
2048
|
-
if (!this.
|
|
2049
|
-
this.
|
|
2048
|
+
if (!this.o50_1) {
|
|
2049
|
+
this.m50_1 = new ByteChannel();
|
|
2050
2050
|
this.a9_1 = 3;
|
|
2051
|
-
suspendResult = async(this.
|
|
2051
|
+
suspendResult = async(this.h50_1.h3m_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.m50_1, this.p50_1, this.n50_1, this.i50_1, null)).hw(this);
|
|
2052
2052
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2053
2053
|
return suspendResult;
|
|
2054
2054
|
}
|
|
@@ -2059,12 +2059,12 @@
|
|
|
2059
2059
|
}
|
|
2060
2060
|
|
|
2061
2061
|
case 2:
|
|
2062
|
-
return new Triple(this.
|
|
2062
|
+
return new Triple(this.o50_1, this.j50_1, this.i50_1);
|
|
2063
2063
|
case 3:
|
|
2064
2064
|
var copied = suspendResult;
|
|
2065
|
-
var tmp_4 = this.
|
|
2066
|
-
var other = this.
|
|
2067
|
-
return new Triple(tmp_4, add(copied, fromInt(other)), this.
|
|
2065
|
+
var tmp_4 = this.o50_1;
|
|
2066
|
+
var other = this.n50_1;
|
|
2067
|
+
return new Triple(tmp_4, add(copied, fromInt(other)), this.m50_1);
|
|
2068
2068
|
case 4:
|
|
2069
2069
|
throw this.d9_1;
|
|
2070
2070
|
}
|
|
@@ -2081,13 +2081,13 @@
|
|
|
2081
2081
|
};
|
|
2082
2082
|
function $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2083
2083
|
CoroutineImpl.call(this, resultContinuation);
|
|
2084
|
-
this.
|
|
2085
|
-
this.
|
|
2086
|
-
this.
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2084
|
+
this.z50_1 = $this_createClientPlugin;
|
|
2085
|
+
this.a51_1 = content;
|
|
2086
|
+
this.b51_1 = contentLength;
|
|
2087
|
+
this.c51_1 = headers;
|
|
2088
|
+
this.d51_1 = method;
|
|
2089
|
+
this.e51_1 = logLines;
|
|
2090
|
+
this.f51_1 = body;
|
|
2091
2091
|
}
|
|
2092
2092
|
protoOf($invoke$logRequestBodyCOROUTINE$).i9 = function () {
|
|
2093
2093
|
var suspendResult = this.c9_1;
|
|
@@ -2098,7 +2098,7 @@
|
|
|
2098
2098
|
case 0:
|
|
2099
2099
|
this.b9_1 = 4;
|
|
2100
2100
|
this.a9_1 = 1;
|
|
2101
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2101
|
+
suspendResult = invoke$detectIfBinary(this.z50_1, this.f51_1, this.b51_1, this.a51_1.f32(), this.c51_1, this);
|
|
2102
2102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2103
2103
|
return suspendResult;
|
|
2104
2104
|
}
|
|
@@ -2107,19 +2107,19 @@
|
|
|
2107
2107
|
case 1:
|
|
2108
2108
|
var _destruct__k2r9zo = suspendResult;
|
|
2109
2109
|
var isBinary = _destruct__k2r9zo.fg();
|
|
2110
|
-
this.
|
|
2110
|
+
this.h51_1 = _destruct__k2r9zo.gg();
|
|
2111
2111
|
var newBody = _destruct__k2r9zo.ml();
|
|
2112
2112
|
if (!isBinary) {
|
|
2113
|
-
var contentType = this.
|
|
2113
|
+
var contentType = this.a51_1.f32();
|
|
2114
2114
|
var tmp_0 = this;
|
|
2115
2115
|
var tmp_1;
|
|
2116
2116
|
if (!(contentType == null)) {
|
|
2117
2117
|
var tmp0_elvis_lhs = charset(contentType);
|
|
2118
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2118
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().y1u_1 : tmp0_elvis_lhs;
|
|
2119
2119
|
} else {
|
|
2120
|
-
tmp_1 = Charsets_getInstance().
|
|
2120
|
+
tmp_1 = Charsets_getInstance().y1u_1;
|
|
2121
2121
|
}
|
|
2122
|
-
tmp_0.
|
|
2122
|
+
tmp_0.i51_1 = tmp_1;
|
|
2123
2123
|
this.a9_1 = 2;
|
|
2124
2124
|
suspendResult = readRemaining(newBody, this);
|
|
2125
2125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2129,25 +2129,25 @@
|
|
|
2129
2129
|
} else {
|
|
2130
2130
|
var tmp_2 = this;
|
|
2131
2131
|
var type = 'binary';
|
|
2132
|
-
if (this.
|
|
2132
|
+
if (this.c51_1.s2k(HttpHeaders_getInstance().s2s_1)) {
|
|
2133
2133
|
type = 'encoded';
|
|
2134
2134
|
}
|
|
2135
2135
|
var tmp_3;
|
|
2136
|
-
if (!(this.
|
|
2137
|
-
tmp_3 = this.
|
|
2136
|
+
if (!(this.h51_1 == null)) {
|
|
2137
|
+
tmp_3 = this.e51_1.j1('--> END ' + this.d51_1.s2w_1 + ' (' + type + ' ' + this.h51_1.toString() + '-byte body omitted)');
|
|
2138
2138
|
} else {
|
|
2139
|
-
tmp_3 = this.
|
|
2139
|
+
tmp_3 = this.e51_1.j1('--> END ' + this.d51_1.s2w_1 + ' (' + type + ' body omitted)');
|
|
2140
2140
|
}
|
|
2141
|
-
tmp_2.
|
|
2141
|
+
tmp_2.g51_1 = tmp_3;
|
|
2142
2142
|
this.a9_1 = 3;
|
|
2143
2143
|
continue $sm;
|
|
2144
2144
|
}
|
|
2145
2145
|
|
|
2146
2146
|
case 2:
|
|
2147
2147
|
var ARGUMENT = suspendResult;
|
|
2148
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2149
|
-
this.
|
|
2150
|
-
this.
|
|
2148
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.i51_1);
|
|
2149
|
+
this.e51_1.j1(ARGUMENT_0);
|
|
2150
|
+
this.g51_1 = this.e51_1.j1('--> END ' + this.d51_1.s2w_1 + ' (' + toString_0(this.h51_1) + '-byte body)');
|
|
2151
2151
|
this.a9_1 = 3;
|
|
2152
2152
|
continue $sm;
|
|
2153
2153
|
case 3:
|
|
@@ -2168,12 +2168,12 @@
|
|
|
2168
2168
|
};
|
|
2169
2169
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2170
2170
|
CoroutineImpl.call(this, resultContinuation);
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2171
|
+
this.r51_1 = $this_createClientPlugin;
|
|
2172
|
+
this.s51_1 = content;
|
|
2173
|
+
this.t51_1 = method;
|
|
2174
|
+
this.u51_1 = headers;
|
|
2175
|
+
this.v51_1 = logLines;
|
|
2176
|
+
this.w51_1 = process;
|
|
2177
2177
|
}
|
|
2178
2178
|
protoOf($invoke$logOutgoingContentCOROUTINE$).i9 = function () {
|
|
2179
2179
|
var suspendResult = this.c9_1;
|
|
@@ -2183,11 +2183,11 @@
|
|
|
2183
2183
|
switch (tmp) {
|
|
2184
2184
|
case 0:
|
|
2185
2185
|
this.b9_1 = 6;
|
|
2186
|
-
var tmp0_subject = this.
|
|
2186
|
+
var tmp0_subject = this.s51_1;
|
|
2187
2187
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2188
|
-
var bytes = this.
|
|
2188
|
+
var bytes = this.s51_1.i32();
|
|
2189
2189
|
this.a9_1 = 4;
|
|
2190
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2190
|
+
suspendResult = invoke$logRequestBody(this.r51_1, this.s51_1, fromInt(bytes.length), this.u51_1, this.t51_1, this.v51_1, ByteReadChannel(bytes), this);
|
|
2191
2191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2192
2192
|
return suspendResult;
|
|
2193
2193
|
}
|
|
@@ -2195,7 +2195,7 @@
|
|
|
2195
2195
|
} else {
|
|
2196
2196
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2197
2197
|
this.a9_1 = 3;
|
|
2198
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2198
|
+
suspendResult = invoke$logOutgoingContent(this.r51_1, this.s51_1.r32(), this.t51_1, this.u51_1, this.v51_1, this.w51_1, this);
|
|
2199
2199
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2200
2200
|
return suspendResult;
|
|
2201
2201
|
}
|
|
@@ -2203,24 +2203,24 @@
|
|
|
2203
2203
|
} else {
|
|
2204
2204
|
if (tmp0_subject instanceof NoContent) {
|
|
2205
2205
|
var tmp_0 = this;
|
|
2206
|
-
this.
|
|
2207
|
-
tmp_0.
|
|
2206
|
+
this.v51_1.j1('--> END ' + this.t51_1.s2w_1);
|
|
2207
|
+
tmp_0.x51_1 = null;
|
|
2208
2208
|
this.a9_1 = 5;
|
|
2209
2209
|
continue $sm;
|
|
2210
2210
|
} else {
|
|
2211
2211
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2212
2212
|
var tmp_1 = this;
|
|
2213
|
-
this.
|
|
2214
|
-
tmp_1.
|
|
2213
|
+
this.v51_1.j1('--> END ' + this.t51_1.s2w_1);
|
|
2214
|
+
tmp_1.x51_1 = null;
|
|
2215
2215
|
this.a9_1 = 5;
|
|
2216
2216
|
continue $sm;
|
|
2217
2217
|
} else {
|
|
2218
2218
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2219
|
-
var _destruct__k2r9zo = split(this.
|
|
2220
|
-
this.
|
|
2219
|
+
var _destruct__k2r9zo = split(this.s51_1.l32(), this.r51_1.h3m_1);
|
|
2220
|
+
this.y51_1 = _destruct__k2r9zo.fg();
|
|
2221
2221
|
var newChannel = _destruct__k2r9zo.gg();
|
|
2222
2222
|
this.a9_1 = 2;
|
|
2223
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2223
|
+
suspendResult = invoke$logRequestBody(this.r51_1, this.s51_1, this.s51_1.h32(), this.u51_1, this.t51_1, this.v51_1, newChannel, this);
|
|
2224
2224
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2225
2225
|
return suspendResult;
|
|
2226
2226
|
}
|
|
@@ -2228,12 +2228,12 @@
|
|
|
2228
2228
|
} else {
|
|
2229
2229
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2230
2230
|
var channel = new ByteChannel();
|
|
2231
|
-
launch(this.
|
|
2232
|
-
var _destruct__k2r9zo_0 = split(channel, this.
|
|
2233
|
-
this.
|
|
2231
|
+
launch(this.r51_1.h3m_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.s51_1, channel, null));
|
|
2232
|
+
var _destruct__k2r9zo_0 = split(channel, this.r51_1.h3m_1);
|
|
2233
|
+
this.z51_1 = _destruct__k2r9zo_0.fg();
|
|
2234
2234
|
var newChannel_0 = _destruct__k2r9zo_0.gg();
|
|
2235
2235
|
this.a9_1 = 1;
|
|
2236
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2236
|
+
suspendResult = invoke$logRequestBody(this.r51_1, this.s51_1, this.s51_1.h32(), this.u51_1, this.t51_1, this.v51_1, newChannel_0, this);
|
|
2237
2237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2238
2238
|
return suspendResult;
|
|
2239
2239
|
}
|
|
@@ -2250,23 +2250,23 @@
|
|
|
2250
2250
|
|
|
2251
2251
|
break;
|
|
2252
2252
|
case 1:
|
|
2253
|
-
this.
|
|
2253
|
+
this.x51_1 = new LoggedContent(this.s51_1, this.z51_1);
|
|
2254
2254
|
this.a9_1 = 5;
|
|
2255
2255
|
continue $sm;
|
|
2256
2256
|
case 2:
|
|
2257
|
-
this.
|
|
2257
|
+
this.x51_1 = new LoggedContent(this.s51_1, this.y51_1);
|
|
2258
2258
|
this.a9_1 = 5;
|
|
2259
2259
|
continue $sm;
|
|
2260
2260
|
case 3:
|
|
2261
|
-
this.
|
|
2261
|
+
this.x51_1 = suspendResult;
|
|
2262
2262
|
this.a9_1 = 5;
|
|
2263
2263
|
continue $sm;
|
|
2264
2264
|
case 4:
|
|
2265
|
-
this.
|
|
2265
|
+
this.x51_1 = null;
|
|
2266
2266
|
this.a9_1 = 5;
|
|
2267
2267
|
continue $sm;
|
|
2268
2268
|
case 5:
|
|
2269
|
-
return this.
|
|
2269
|
+
return this.x51_1;
|
|
2270
2270
|
case 6:
|
|
2271
2271
|
throw this.d9_1;
|
|
2272
2272
|
}
|
|
@@ -2283,11 +2283,11 @@
|
|
|
2283
2283
|
};
|
|
2284
2284
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2285
2285
|
CoroutineImpl.call(this, resultContinuation);
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2289
|
-
this.
|
|
2290
|
-
this.
|
|
2286
|
+
this.i52_1 = sanitizedHeaders;
|
|
2287
|
+
this.j52_1 = level;
|
|
2288
|
+
this.k52_1 = $this_createClientPlugin;
|
|
2289
|
+
this.l52_1 = request;
|
|
2290
|
+
this.m52_1 = logLines;
|
|
2291
2291
|
}
|
|
2292
2292
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2293
2293
|
var suspendResult = this.c9_1;
|
|
@@ -2297,22 +2297,22 @@
|
|
|
2297
2297
|
switch (tmp) {
|
|
2298
2298
|
case 0:
|
|
2299
2299
|
this.b9_1 = 4;
|
|
2300
|
-
if (invoke$isNone(this.
|
|
2300
|
+
if (invoke$isNone(this.j52_1))
|
|
2301
2301
|
return null;
|
|
2302
|
-
var uri = pathQuery(takeFrom(new URLBuilder(), this.
|
|
2303
|
-
var body = this.
|
|
2302
|
+
var uri = pathQuery(takeFrom(new URLBuilder(), this.l52_1.f3e_1).e2s());
|
|
2303
|
+
var body = this.l52_1.i3e_1;
|
|
2304
2304
|
var this_0 = new HeadersBuilder();
|
|
2305
2305
|
var tmp_0;
|
|
2306
2306
|
var tmp_1;
|
|
2307
2307
|
var tmp_2;
|
|
2308
2308
|
if (body instanceof OutgoingContent) {
|
|
2309
|
-
tmp_2 = !this.
|
|
2309
|
+
tmp_2 = !this.l52_1.g3e_1.equals(Companion_getInstance().k2w_1);
|
|
2310
2310
|
} else {
|
|
2311
2311
|
tmp_2 = false;
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
2314
2314
|
if (tmp_2) {
|
|
2315
|
-
tmp_1 = !this.
|
|
2315
|
+
tmp_1 = !this.l52_1.g3e_1.equals(Companion_getInstance().p2w_1);
|
|
2316
2316
|
} else {
|
|
2317
2317
|
tmp_1 = false;
|
|
2318
2318
|
}
|
|
@@ -2324,30 +2324,30 @@
|
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
2326
|
if (tmp_0) {
|
|
2327
|
-
var tmp0_safe_receiver = body.
|
|
2327
|
+
var tmp0_safe_receiver = body.f32();
|
|
2328
2328
|
if (tmp0_safe_receiver == null)
|
|
2329
2329
|
null;
|
|
2330
2330
|
else {
|
|
2331
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2331
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().x2s_1, tmp0_safe_receiver.toString());
|
|
2332
2332
|
}
|
|
2333
|
-
var tmp1_safe_receiver = body.
|
|
2333
|
+
var tmp1_safe_receiver = body.h32();
|
|
2334
2334
|
if (tmp1_safe_receiver == null)
|
|
2335
2335
|
null;
|
|
2336
2336
|
else {
|
|
2337
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2337
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().u2s_1, tmp1_safe_receiver.toString());
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
|
|
2341
|
-
appendAll(this_0, this.
|
|
2342
|
-
var headers = this_0.
|
|
2343
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2341
|
+
appendAll(this_0, this.l52_1.h3e_1);
|
|
2342
|
+
var headers = this_0.e2s();
|
|
2343
|
+
var tmp0_safe_receiver_0 = headers.l2j(HttpHeaders_getInstance().u2s_1);
|
|
2344
2344
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2345
2345
|
var tmp_3;
|
|
2346
|
-
if (this.
|
|
2347
|
-
tmp_3 = '--> ' + this.
|
|
2346
|
+
if (this.l52_1.g3e_1.equals(Companion_getInstance().k2w_1) || this.l52_1.g3e_1.equals(Companion_getInstance().p2w_1) || ((invoke$isHeaders(this.j52_1) || invoke$isBody(this.j52_1)) && !(contentLength == null)) || (invoke$isHeaders(this.j52_1) && contentLength == null) || headers.s2k(HttpHeaders_getInstance().s2s_1)) {
|
|
2347
|
+
tmp_3 = '--> ' + this.l52_1.g3e_1.s2w_1 + ' ' + uri;
|
|
2348
2348
|
} else {
|
|
2349
|
-
if (invoke$isInfo(this.
|
|
2350
|
-
tmp_3 = '--> ' + this.
|
|
2349
|
+
if (invoke$isInfo(this.j52_1) && !(contentLength == null)) {
|
|
2350
|
+
tmp_3 = '--> ' + this.l52_1.g3e_1.s2w_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2351
2351
|
} else {
|
|
2352
2352
|
var tmp_4;
|
|
2353
2353
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2356,32 +2356,32 @@
|
|
|
2356
2356
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2357
2357
|
}
|
|
2358
2358
|
if (tmp_4) {
|
|
2359
|
-
tmp_3 = '--> ' + this.
|
|
2359
|
+
tmp_3 = '--> ' + this.l52_1.g3e_1.s2w_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2360
2360
|
} else {
|
|
2361
|
-
var size = computeRequestBodySize(this.
|
|
2362
|
-
tmp_3 = '--> ' + this.
|
|
2361
|
+
var size = computeRequestBodySize(this.l52_1.i3e_1);
|
|
2362
|
+
tmp_3 = '--> ' + this.l52_1.g3e_1.s2w_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
2366
|
|
|
2367
2367
|
var startLine = tmp_3;
|
|
2368
|
-
this.
|
|
2369
|
-
if (!invoke$isHeaders(this.
|
|
2368
|
+
this.m52_1.j1(startLine);
|
|
2369
|
+
if (!invoke$isHeaders(this.j52_1) && !invoke$isBody(this.j52_1)) {
|
|
2370
2370
|
return null;
|
|
2371
2371
|
}
|
|
2372
2372
|
|
|
2373
|
-
var _iterator__ex2g4s = headers.
|
|
2373
|
+
var _iterator__ex2g4s = headers.u2k().t();
|
|
2374
2374
|
while (_iterator__ex2g4s.u()) {
|
|
2375
2375
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2376
2376
|
var name = _destruct__k2r9zo.q1();
|
|
2377
2377
|
var values = _destruct__k2r9zo.r1();
|
|
2378
|
-
var tmp0 = this.
|
|
2378
|
+
var tmp0 = this.i52_1;
|
|
2379
2379
|
var tmp$ret$0 = Unit_instance;
|
|
2380
2380
|
l$ret$1: do {
|
|
2381
2381
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2382
2382
|
while (_iterator__ex2g4s_0.u()) {
|
|
2383
2383
|
var element = _iterator__ex2g4s_0.v();
|
|
2384
|
-
if (element.
|
|
2384
|
+
if (element.t53_1(name)) {
|
|
2385
2385
|
tmp$ret$0 = element;
|
|
2386
2386
|
break l$ret$1;
|
|
2387
2387
|
}
|
|
@@ -2390,34 +2390,34 @@
|
|
|
2390
2390
|
}
|
|
2391
2391
|
while (false);
|
|
2392
2392
|
if (tmp$ret$0 == null) {
|
|
2393
|
-
this.
|
|
2393
|
+
this.m52_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2394
2394
|
} else {
|
|
2395
|
-
this.
|
|
2395
|
+
this.m52_1.j1(name + ': \u2588\u2588');
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
2398
|
|
|
2399
|
-
if (!invoke$isBody(this.
|
|
2400
|
-
this.
|
|
2399
|
+
if (!invoke$isBody(this.j52_1) || this.l52_1.g3e_1.equals(Companion_getInstance().k2w_1) || this.l52_1.g3e_1.equals(Companion_getInstance().p2w_1)) {
|
|
2400
|
+
this.m52_1.j1('--> END ' + this.l52_1.g3e_1.s2w_1);
|
|
2401
2401
|
return null;
|
|
2402
2402
|
}
|
|
2403
2403
|
|
|
2404
|
-
this.
|
|
2404
|
+
this.m52_1.j1('');
|
|
2405
2405
|
if (!(body instanceof OutgoingContent)) {
|
|
2406
|
-
this.
|
|
2406
|
+
this.m52_1.j1('--> END ' + this.l52_1.g3e_1.s2w_1);
|
|
2407
2407
|
return null;
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
|
-
if (this.
|
|
2410
|
+
if (this.l52_1.h3e_1.l2j(HttpHeaders_getInstance().s2s_1) === 'gzip') {
|
|
2411
2411
|
this.a9_1 = 2;
|
|
2412
|
-
var tmp_5 = this.
|
|
2413
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2412
|
+
var tmp_5 = this.l52_1.g3e_1;
|
|
2413
|
+
suspendResult = invoke$logOutgoingContent(this.k52_1, body, tmp_5, headers, this.m52_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2414
2414
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2415
2415
|
return suspendResult;
|
|
2416
2416
|
}
|
|
2417
2417
|
continue $sm;
|
|
2418
2418
|
} else {
|
|
2419
2419
|
this.a9_1 = 1;
|
|
2420
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2420
|
+
suspendResult = invoke$logOutgoingContent(this.k52_1, body, this.l52_1.g3e_1, headers, this.m52_1, VOID, this);
|
|
2421
2421
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2422
2422
|
return suspendResult;
|
|
2423
2423
|
}
|
|
@@ -2425,15 +2425,15 @@
|
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
2427
|
case 1:
|
|
2428
|
-
this.
|
|
2428
|
+
this.n52_1 = suspendResult;
|
|
2429
2429
|
this.a9_1 = 3;
|
|
2430
2430
|
continue $sm;
|
|
2431
2431
|
case 2:
|
|
2432
|
-
this.
|
|
2432
|
+
this.n52_1 = suspendResult;
|
|
2433
2433
|
this.a9_1 = 3;
|
|
2434
2434
|
continue $sm;
|
|
2435
2435
|
case 3:
|
|
2436
|
-
var newContent = this.
|
|
2436
|
+
var newContent = this.n52_1;
|
|
2437
2437
|
return newContent;
|
|
2438
2438
|
case 4:
|
|
2439
2439
|
throw this.d9_1;
|
|
@@ -2451,10 +2451,10 @@
|
|
|
2451
2451
|
};
|
|
2452
2452
|
function $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, resultContinuation) {
|
|
2453
2453
|
CoroutineImpl.call(this, resultContinuation);
|
|
2454
|
-
this.
|
|
2455
|
-
this.
|
|
2456
|
-
this.
|
|
2457
|
-
this.
|
|
2454
|
+
this.w52_1 = $this_createClientPlugin;
|
|
2455
|
+
this.x52_1 = response;
|
|
2456
|
+
this.y52_1 = body;
|
|
2457
|
+
this.z52_1 = logLines;
|
|
2458
2458
|
}
|
|
2459
2459
|
protoOf($invoke$logResponseBodyCOROUTINE$).i9 = function () {
|
|
2460
2460
|
var suspendResult = this.c9_1;
|
|
@@ -2464,9 +2464,9 @@
|
|
|
2464
2464
|
switch (tmp) {
|
|
2465
2465
|
case 0:
|
|
2466
2466
|
this.b9_1 = 4;
|
|
2467
|
-
this.
|
|
2467
|
+
this.z52_1.j1('');
|
|
2468
2468
|
this.a9_1 = 1;
|
|
2469
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2469
|
+
suspendResult = invoke$detectIfBinary(this.w52_1, this.y52_1, contentLength(this.x52_1), contentType(this.x52_1), this.x52_1.j2w(), this);
|
|
2470
2470
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2471
2471
|
return suspendResult;
|
|
2472
2472
|
}
|
|
@@ -2475,25 +2475,25 @@
|
|
|
2475
2475
|
case 1:
|
|
2476
2476
|
var _destruct__k2r9zo = suspendResult;
|
|
2477
2477
|
var isBinary = _destruct__k2r9zo.fg();
|
|
2478
|
-
this.
|
|
2478
|
+
this.b53_1 = _destruct__k2r9zo.gg();
|
|
2479
2479
|
var newBody = _destruct__k2r9zo.ml();
|
|
2480
|
-
this.
|
|
2481
|
-
if (this.
|
|
2482
|
-
this.
|
|
2480
|
+
this.c53_1 = subtract(this.x52_1.f3g().d2m_1, this.x52_1.e3g().d2m_1);
|
|
2481
|
+
if (this.b53_1 === 0n) {
|
|
2482
|
+
this.z52_1.j1('<-- END HTTP (' + this.c53_1.toString() + 'ms, ' + this.b53_1.toString() + '-byte body)');
|
|
2483
2483
|
return Unit_instance;
|
|
2484
2484
|
}
|
|
2485
2485
|
|
|
2486
2486
|
if (!isBinary) {
|
|
2487
|
-
var contentType_0 = contentType(this.
|
|
2487
|
+
var contentType_0 = contentType(this.x52_1);
|
|
2488
2488
|
var tmp_0 = this;
|
|
2489
2489
|
var tmp_1;
|
|
2490
2490
|
if (!(contentType_0 == null)) {
|
|
2491
2491
|
var tmp0_elvis_lhs = charset(contentType_0);
|
|
2492
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2492
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().y1u_1 : tmp0_elvis_lhs;
|
|
2493
2493
|
} else {
|
|
2494
|
-
tmp_1 = Charsets_getInstance().
|
|
2494
|
+
tmp_1 = Charsets_getInstance().y1u_1;
|
|
2495
2495
|
}
|
|
2496
|
-
tmp_0.
|
|
2496
|
+
tmp_0.d53_1 = tmp_1;
|
|
2497
2497
|
this.a9_1 = 2;
|
|
2498
2498
|
suspendResult = readRemaining(newBody, this);
|
|
2499
2499
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2503,25 +2503,25 @@
|
|
|
2503
2503
|
} else {
|
|
2504
2504
|
var tmp_2 = this;
|
|
2505
2505
|
var type = 'binary';
|
|
2506
|
-
if (this.
|
|
2506
|
+
if (this.x52_1.j2w().s2k(HttpHeaders_getInstance().s2s_1)) {
|
|
2507
2507
|
type = 'encoded';
|
|
2508
2508
|
}
|
|
2509
2509
|
var tmp_3;
|
|
2510
|
-
if (!(this.
|
|
2511
|
-
tmp_3 = this.
|
|
2510
|
+
if (!(this.b53_1 == null)) {
|
|
2511
|
+
tmp_3 = this.z52_1.j1('<-- END HTTP (' + this.c53_1.toString() + 'ms, ' + type + ' ' + this.b53_1.toString() + '-byte body omitted)');
|
|
2512
2512
|
} else {
|
|
2513
|
-
tmp_3 = this.
|
|
2513
|
+
tmp_3 = this.z52_1.j1('<-- END HTTP (' + this.c53_1.toString() + 'ms, ' + type + ' body omitted)');
|
|
2514
2514
|
}
|
|
2515
|
-
tmp_2.
|
|
2515
|
+
tmp_2.a53_1 = tmp_3;
|
|
2516
2516
|
this.a9_1 = 3;
|
|
2517
2517
|
continue $sm;
|
|
2518
2518
|
}
|
|
2519
2519
|
|
|
2520
2520
|
case 2:
|
|
2521
2521
|
var ARGUMENT = suspendResult;
|
|
2522
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2523
|
-
this.
|
|
2524
|
-
this.
|
|
2522
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.d53_1);
|
|
2523
|
+
this.z52_1.j1(ARGUMENT_0);
|
|
2524
|
+
this.a53_1 = this.z52_1.j1('<-- END HTTP (' + this.c53_1.toString() + 'ms, ' + toString_0(this.b53_1) + '-byte body)');
|
|
2525
2525
|
this.a9_1 = 3;
|
|
2526
2526
|
continue $sm;
|
|
2527
2527
|
case 3:
|
|
@@ -2542,11 +2542,11 @@
|
|
|
2542
2542
|
};
|
|
2543
2543
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, resultContinuation) {
|
|
2544
2544
|
CoroutineImpl.call(this, resultContinuation);
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
this.
|
|
2549
|
-
this.
|
|
2545
|
+
this.m53_1 = sanitizedHeaders;
|
|
2546
|
+
this.n53_1 = level;
|
|
2547
|
+
this.o53_1 = $this_createClientPlugin;
|
|
2548
|
+
this.p53_1 = response;
|
|
2549
|
+
this.q53_1 = logLines;
|
|
2550
2550
|
}
|
|
2551
2551
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2552
2552
|
var suspendResult = this.c9_1;
|
|
@@ -2556,30 +2556,30 @@
|
|
|
2556
2556
|
switch (tmp) {
|
|
2557
2557
|
case 0:
|
|
2558
2558
|
this.b9_1 = 4;
|
|
2559
|
-
if (invoke$isNone(this.
|
|
2560
|
-
return this.
|
|
2561
|
-
var tmp0_safe_receiver = this.
|
|
2559
|
+
if (invoke$isNone(this.n53_1))
|
|
2560
|
+
return this.p53_1;
|
|
2561
|
+
var tmp0_safe_receiver = this.p53_1.j2w().l2j(HttpHeaders_getInstance().u2s_1);
|
|
2562
2562
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2563
|
-
var request = get_request(this.
|
|
2564
|
-
var duration = subtract(this.
|
|
2565
|
-
var startLine = this.
|
|
2566
|
-
this.
|
|
2567
|
-
if (!invoke$isHeaders(this.
|
|
2568
|
-
return this.
|
|
2563
|
+
var request = get_request(this.p53_1);
|
|
2564
|
+
var duration = subtract(this.p53_1.f3g().d2m_1, this.p53_1.e3g().d2m_1);
|
|
2565
|
+
var startLine = this.p53_1.j2w().l2j(HttpHeaders_getInstance().b2v_1) === 'chunked' && (invoke$isInfo(this.n53_1) || invoke$isHeaders(this.n53_1)) ? '<-- ' + this.p53_1.g32().toString() + ' ' + pathQuery(request.w3f()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.n53_1) && !(contentLength == null) ? '<-- ' + this.p53_1.g32().toString() + ' ' + pathQuery(request.w3f()) + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.n53_1) || (invoke$isInfo(this.n53_1) && contentLength == null) || (invoke$isHeaders(this.n53_1) && !(contentLength == null)) || this.p53_1.j2w().l2j(HttpHeaders_getInstance().s2s_1) === 'gzip' ? '<-- ' + this.p53_1.g32().toString() + ' ' + pathQuery(request.w3f()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.p53_1.g32().toString() + ' ' + pathQuery(request.w3f()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2566
|
+
this.q53_1.j1(startLine);
|
|
2567
|
+
if (!invoke$isHeaders(this.n53_1) && !invoke$isBody(this.n53_1)) {
|
|
2568
|
+
return this.p53_1;
|
|
2569
2569
|
}
|
|
2570
2570
|
|
|
2571
|
-
var _iterator__ex2g4s = this.
|
|
2571
|
+
var _iterator__ex2g4s = this.p53_1.j2w().u2k().t();
|
|
2572
2572
|
while (_iterator__ex2g4s.u()) {
|
|
2573
2573
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2574
2574
|
var name = _destruct__k2r9zo.q1();
|
|
2575
2575
|
var values = _destruct__k2r9zo.r1();
|
|
2576
|
-
var tmp0 = this.
|
|
2576
|
+
var tmp0 = this.m53_1;
|
|
2577
2577
|
var tmp$ret$0 = Unit_instance;
|
|
2578
2578
|
l$ret$1: do {
|
|
2579
2579
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2580
2580
|
while (_iterator__ex2g4s_0.u()) {
|
|
2581
2581
|
var element = _iterator__ex2g4s_0.v();
|
|
2582
|
-
if (element.
|
|
2582
|
+
if (element.t53_1(name)) {
|
|
2583
2583
|
tmp$ret$0 = element;
|
|
2584
2584
|
break l$ret$1;
|
|
2585
2585
|
}
|
|
@@ -2588,30 +2588,30 @@
|
|
|
2588
2588
|
}
|
|
2589
2589
|
while (false);
|
|
2590
2590
|
if (tmp$ret$0 == null) {
|
|
2591
|
-
this.
|
|
2591
|
+
this.q53_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2592
2592
|
} else {
|
|
2593
|
-
this.
|
|
2593
|
+
this.q53_1.j1(name + ': \u2588\u2588');
|
|
2594
2594
|
}
|
|
2595
2595
|
}
|
|
2596
2596
|
|
|
2597
|
-
if (!invoke$isBody(this.
|
|
2598
|
-
this.
|
|
2599
|
-
return this.
|
|
2597
|
+
if (!invoke$isBody(this.n53_1)) {
|
|
2598
|
+
this.q53_1.j1('<-- END HTTP');
|
|
2599
|
+
return this.p53_1;
|
|
2600
2600
|
}
|
|
2601
2601
|
|
|
2602
2602
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2603
|
-
this.
|
|
2604
|
-
return this.
|
|
2603
|
+
this.q53_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2604
|
+
return this.p53_1;
|
|
2605
2605
|
}
|
|
2606
2606
|
|
|
2607
|
-
if (equals(contentType(this.
|
|
2608
|
-
this.
|
|
2609
|
-
return this.
|
|
2607
|
+
if (equals(contentType(this.p53_1), Text_getInstance().s2r_1)) {
|
|
2608
|
+
this.q53_1.j1('<-- END HTTP (streaming)');
|
|
2609
|
+
return this.p53_1;
|
|
2610
2610
|
}
|
|
2611
2611
|
|
|
2612
|
-
if (get_isSaved(this.
|
|
2612
|
+
if (get_isSaved(this.p53_1)) {
|
|
2613
2613
|
this.a9_1 = 3;
|
|
2614
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2614
|
+
suspendResult = invoke$logResponseBody(this.o53_1, this.p53_1, this.p53_1.c3g(), this.q53_1, this);
|
|
2615
2615
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2616
2616
|
return suspendResult;
|
|
2617
2617
|
}
|
|
@@ -2622,22 +2622,22 @@
|
|
|
2622
2622
|
}
|
|
2623
2623
|
|
|
2624
2624
|
case 1:
|
|
2625
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2626
|
-
this.
|
|
2625
|
+
var _destruct__k2r9zo_0 = split(this.p53_1.c3g(), this.p53_1);
|
|
2626
|
+
this.r53_1 = _destruct__k2r9zo_0.fg();
|
|
2627
2627
|
var newChannel = _destruct__k2r9zo_0.gg();
|
|
2628
2628
|
this.a9_1 = 2;
|
|
2629
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2629
|
+
suspendResult = invoke$logResponseBody(this.o53_1, this.p53_1, newChannel, this.q53_1, this);
|
|
2630
2630
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2631
2631
|
return suspendResult;
|
|
2632
2632
|
}
|
|
2633
2633
|
|
|
2634
2634
|
continue $sm;
|
|
2635
2635
|
case 2:
|
|
2636
|
-
var tmp_0 = this.
|
|
2637
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2638
|
-
return call.
|
|
2636
|
+
var tmp_0 = this.p53_1.u3f();
|
|
2637
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.r53_1));
|
|
2638
|
+
return call.f3d();
|
|
2639
2639
|
case 3:
|
|
2640
|
-
return this.
|
|
2640
|
+
return this.p53_1;
|
|
2641
2641
|
case 4:
|
|
2642
2642
|
throw this.d9_1;
|
|
2643
2643
|
}
|
|
@@ -2731,7 +2731,7 @@
|
|
|
2731
2731
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2732
2732
|
while (_iterator__ex2g4s_0.u()) {
|
|
2733
2733
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2734
|
-
if (element_0.
|
|
2734
|
+
if (element_0.t53_1(key)) {
|
|
2735
2735
|
tmp$ret$5 = element_0;
|
|
2736
2736
|
break $l$block;
|
|
2737
2737
|
}
|
|
@@ -2739,7 +2739,7 @@
|
|
|
2739
2739
|
tmp$ret$5 = null;
|
|
2740
2740
|
}
|
|
2741
2741
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
2742
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2742
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s53_1;
|
|
2743
2743
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
@@ -2751,26 +2751,26 @@
|
|
|
2751
2751
|
}
|
|
2752
2752
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2753
2753
|
// Inline function 'kotlin.with' call
|
|
2754
|
-
if (level.
|
|
2754
|
+
if (level.o4v_1) {
|
|
2755
2755
|
// Inline function 'kotlin.text.appendLine' call
|
|
2756
|
-
var value = 'RESPONSE: ' + response.
|
|
2756
|
+
var value = 'RESPONSE: ' + response.g32().toString();
|
|
2757
2757
|
// Inline function 'kotlin.text.appendLine' call
|
|
2758
2758
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2759
2759
|
// Inline function 'kotlin.text.appendLine' call
|
|
2760
|
-
var value_0 = 'METHOD: ' + response.
|
|
2760
|
+
var value_0 = 'METHOD: ' + response.u3f().n3f().v3f().toString();
|
|
2761
2761
|
// Inline function 'kotlin.text.appendLine' call
|
|
2762
2762
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2763
2763
|
// Inline function 'kotlin.text.appendLine' call
|
|
2764
|
-
var value_1 = 'FROM: ' + response.
|
|
2764
|
+
var value_1 = 'FROM: ' + response.u3f().n3f().w3f().toString();
|
|
2765
2765
|
// Inline function 'kotlin.text.appendLine' call
|
|
2766
2766
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2767
2767
|
}
|
|
2768
|
-
if (level.
|
|
2768
|
+
if (level.p4v_1) {
|
|
2769
2769
|
// Inline function 'kotlin.text.appendLine' call
|
|
2770
2770
|
var value_2 = 'COMMON HEADERS';
|
|
2771
2771
|
// Inline function 'kotlin.text.appendLine' call
|
|
2772
2772
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2773
|
-
logHeaders(log, response.
|
|
2773
|
+
logHeaders(log, response.j2w().u2k(), sanitizedHeaders);
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
2776
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2786,16 +2786,16 @@
|
|
|
2786
2786
|
return tmp.i9();
|
|
2787
2787
|
}
|
|
2788
2788
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2789
|
-
this.
|
|
2789
|
+
this.g58_1 = function_0;
|
|
2790
2790
|
}
|
|
2791
2791
|
protoOf(sam$kotlin_Comparator$0).wd = function (a, b) {
|
|
2792
|
-
return this.
|
|
2792
|
+
return this.g58_1(a, b);
|
|
2793
2793
|
};
|
|
2794
2794
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2795
2795
|
return this.wd(a, b);
|
|
2796
2796
|
};
|
|
2797
2797
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2798
|
-
return this.
|
|
2798
|
+
return this.g58_1;
|
|
2799
2799
|
};
|
|
2800
2800
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2801
2801
|
var tmp;
|
|
@@ -2823,8 +2823,8 @@
|
|
|
2823
2823
|
}
|
|
2824
2824
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2825
2825
|
CoroutineImpl.call(this, resultContinuation);
|
|
2826
|
-
this.
|
|
2827
|
-
this.
|
|
2826
|
+
this.p57_1 = _this__u8e3s4;
|
|
2827
|
+
this.q57_1 = response;
|
|
2828
2828
|
}
|
|
2829
2829
|
protoOf($logResponseBodyCOROUTINE$_0).i9 = function () {
|
|
2830
2830
|
var suspendResult = this.c9_1;
|
|
@@ -2834,14 +2834,14 @@
|
|
|
2834
2834
|
switch (tmp) {
|
|
2835
2835
|
case 0:
|
|
2836
2836
|
this.b9_1 = 8;
|
|
2837
|
-
this.
|
|
2837
|
+
this.r57_1 = StringBuilder_init_$Create$();
|
|
2838
2838
|
this.a9_1 = 1;
|
|
2839
2839
|
continue $sm;
|
|
2840
2840
|
case 1:
|
|
2841
2841
|
this.b9_1 = 4;
|
|
2842
2842
|
this.b9_1 = 3;
|
|
2843
2843
|
this.a9_1 = 2;
|
|
2844
|
-
suspendResult = appendResponseBody(this.
|
|
2844
|
+
suspendResult = appendResponseBody(this.r57_1, contentType(this.q57_1), this.q57_1.c3g(), this);
|
|
2845
2845
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2846
2846
|
return suspendResult;
|
|
2847
2847
|
}
|
|
@@ -2865,22 +2865,22 @@
|
|
|
2865
2865
|
|
|
2866
2866
|
case 4:
|
|
2867
2867
|
this.b9_1 = 8;
|
|
2868
|
-
this.
|
|
2868
|
+
this.s57_1 = this.d9_1;
|
|
2869
2869
|
this.a9_1 = 5;
|
|
2870
|
-
var this_0 = this.
|
|
2871
|
-
suspendResult = this.
|
|
2870
|
+
var this_0 = this.r57_1.toString();
|
|
2871
|
+
suspendResult = this.p57_1.j4v(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2872
2872
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2873
2873
|
return suspendResult;
|
|
2874
2874
|
}
|
|
2875
2875
|
|
|
2876
2876
|
continue $sm;
|
|
2877
2877
|
case 5:
|
|
2878
|
-
throw this.
|
|
2878
|
+
throw this.s57_1;
|
|
2879
2879
|
case 6:
|
|
2880
2880
|
this.b9_1 = 8;
|
|
2881
2881
|
this.a9_1 = 7;
|
|
2882
|
-
var this_1 = this.
|
|
2883
|
-
suspendResult = this.
|
|
2882
|
+
var this_1 = this.r57_1.toString();
|
|
2883
|
+
suspendResult = this.p57_1.j4v(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2884
2884
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2885
2885
|
return suspendResult;
|
|
2886
2886
|
}
|
|
@@ -2904,9 +2904,9 @@
|
|
|
2904
2904
|
};
|
|
2905
2905
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2906
2906
|
CoroutineImpl.call(this, resultContinuation);
|
|
2907
|
-
this.
|
|
2908
|
-
this.
|
|
2909
|
-
this.
|
|
2907
|
+
this.b58_1 = _this__u8e3s4;
|
|
2908
|
+
this.c58_1 = contentType;
|
|
2909
|
+
this.d58_1 = content;
|
|
2910
2910
|
}
|
|
2911
2911
|
protoOf($appendResponseBodyCOROUTINE$).i9 = function () {
|
|
2912
2912
|
var suspendResult = this.c9_1;
|
|
@@ -2916,16 +2916,16 @@
|
|
|
2916
2916
|
switch (tmp) {
|
|
2917
2917
|
case 0:
|
|
2918
2918
|
this.b9_1 = 3;
|
|
2919
|
-
var tmp0 = this.
|
|
2920
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2919
|
+
var tmp0 = this.b58_1;
|
|
2920
|
+
var value = 'BODY Content-Type: ' + toString_0(this.c58_1);
|
|
2921
2921
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2922
|
-
var tmp0_0 = this.
|
|
2922
|
+
var tmp0_0 = this.b58_1;
|
|
2923
2923
|
var value_0 = 'BODY START';
|
|
2924
2924
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2925
|
-
var tmp0_1 = this.
|
|
2926
|
-
var tmp0_safe_receiver = this.
|
|
2925
|
+
var tmp0_1 = this.d58_1;
|
|
2926
|
+
var tmp0_safe_receiver = this.c58_1;
|
|
2927
2927
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2928
|
-
this.
|
|
2928
|
+
this.f58_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().y1u_1 : tmp1_elvis_lhs;
|
|
2929
2929
|
this.b9_1 = 2;
|
|
2930
2930
|
this.a9_1 = 1;
|
|
2931
2931
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2936,7 +2936,7 @@
|
|
|
2936
2936
|
continue $sm;
|
|
2937
2937
|
case 1:
|
|
2938
2938
|
var ARGUMENT = suspendResult;
|
|
2939
|
-
this.
|
|
2939
|
+
this.e58_1 = readText(ARGUMENT, this.f58_1);
|
|
2940
2940
|
this.b9_1 = 3;
|
|
2941
2941
|
this.a9_1 = 4;
|
|
2942
2942
|
continue $sm;
|
|
@@ -2946,7 +2946,7 @@
|
|
|
2946
2946
|
if (tmp_0 instanceof Error) {
|
|
2947
2947
|
var cause = this.d9_1;
|
|
2948
2948
|
var tmp_1 = this;
|
|
2949
|
-
tmp_1.
|
|
2949
|
+
tmp_1.e58_1 = null;
|
|
2950
2950
|
this.a9_1 = 4;
|
|
2951
2951
|
continue $sm;
|
|
2952
2952
|
} else {
|
|
@@ -2957,10 +2957,10 @@
|
|
|
2957
2957
|
throw this.d9_1;
|
|
2958
2958
|
case 4:
|
|
2959
2959
|
this.b9_1 = 3;
|
|
2960
|
-
var tmp2_elvis_lhs = this.
|
|
2960
|
+
var tmp2_elvis_lhs = this.e58_1;
|
|
2961
2961
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2962
|
-
this.
|
|
2963
|
-
this.
|
|
2962
|
+
this.b58_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2963
|
+
this.b58_1.q('BODY END');
|
|
2964
2964
|
return Unit_instance;
|
|
2965
2965
|
}
|
|
2966
2966
|
} catch ($p) {
|
|
@@ -2982,21 +2982,21 @@
|
|
|
2982
2982
|
}
|
|
2983
2983
|
function toReadChannel(_this__u8e3s4) {
|
|
2984
2984
|
var tmp = GlobalScope_instance;
|
|
2985
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
2986
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
2985
|
+
var tmp_0 = Dispatchers_getInstance().v13_1;
|
|
2986
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).v1s_1;
|
|
2987
2987
|
}
|
|
2988
2988
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
2989
|
-
this.
|
|
2989
|
+
this.b59_1 = $this_toReadChannel;
|
|
2990
2990
|
CoroutineImpl.call(this, resultContinuation);
|
|
2991
2991
|
}
|
|
2992
|
-
protoOf(toReadChannel$slambda).
|
|
2993
|
-
var tmp = this.
|
|
2992
|
+
protoOf(toReadChannel$slambda).m37 = function ($this$writer, $completion) {
|
|
2993
|
+
var tmp = this.n37($this$writer, $completion);
|
|
2994
2994
|
tmp.c9_1 = Unit_instance;
|
|
2995
2995
|
tmp.d9_1 = null;
|
|
2996
2996
|
return tmp.i9();
|
|
2997
2997
|
};
|
|
2998
2998
|
protoOf(toReadChannel$slambda).u9 = function (p1, $completion) {
|
|
2999
|
-
return this.
|
|
2999
|
+
return this.m37(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3000
3000
|
};
|
|
3001
3001
|
protoOf(toReadChannel$slambda).i9 = function () {
|
|
3002
3002
|
var suspendResult = this.c9_1;
|
|
@@ -3007,7 +3007,7 @@
|
|
|
3007
3007
|
case 0:
|
|
3008
3008
|
this.b9_1 = 2;
|
|
3009
3009
|
this.a9_1 = 1;
|
|
3010
|
-
suspendResult = this.
|
|
3010
|
+
suspendResult = this.b59_1.n32(this.c59_1.x1s_1, this);
|
|
3011
3011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3012
3012
|
return suspendResult;
|
|
3013
3013
|
}
|
|
@@ -3029,23 +3029,23 @@
|
|
|
3029
3029
|
}
|
|
3030
3030
|
while (true);
|
|
3031
3031
|
};
|
|
3032
|
-
protoOf(toReadChannel$slambda).
|
|
3033
|
-
var i = new toReadChannel$slambda(this.
|
|
3034
|
-
i.
|
|
3032
|
+
protoOf(toReadChannel$slambda).n37 = function ($this$writer, completion) {
|
|
3033
|
+
var i = new toReadChannel$slambda(this.b59_1, completion);
|
|
3034
|
+
i.c59_1 = $this$writer;
|
|
3035
3035
|
return i;
|
|
3036
3036
|
};
|
|
3037
3037
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3038
3038
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3039
3039
|
var l = function ($this$writer, $completion) {
|
|
3040
|
-
return i.
|
|
3040
|
+
return i.m37($this$writer, $completion);
|
|
3041
3041
|
};
|
|
3042
3042
|
l.$arity = 1;
|
|
3043
3043
|
return l;
|
|
3044
3044
|
}
|
|
3045
3045
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3046
3046
|
CoroutineImpl.call(this, resultContinuation);
|
|
3047
|
-
this.
|
|
3048
|
-
this.
|
|
3047
|
+
this.p58_1 = _this__u8e3s4;
|
|
3048
|
+
this.q58_1 = log;
|
|
3049
3049
|
}
|
|
3050
3050
|
protoOf($observeCOROUTINE$).i9 = function () {
|
|
3051
3051
|
var suspendResult = this.c9_1;
|
|
@@ -3055,10 +3055,10 @@
|
|
|
3055
3055
|
switch (tmp) {
|
|
3056
3056
|
case 0:
|
|
3057
3057
|
this.b9_1 = 6;
|
|
3058
|
-
var tmp0_subject = this.
|
|
3058
|
+
var tmp0_subject = this.p58_1;
|
|
3059
3059
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3060
3060
|
this.a9_1 = 3;
|
|
3061
|
-
suspendResult = writeFully(this.
|
|
3061
|
+
suspendResult = writeFully(this.q58_1, this.p58_1.i32(), VOID, VOID, this);
|
|
3062
3062
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3063
3063
|
return suspendResult;
|
|
3064
3064
|
}
|
|
@@ -3067,25 +3067,25 @@
|
|
|
3067
3067
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3068
3068
|
var tmp_0 = this;
|
|
3069
3069
|
var responseChannel = new ByteChannel();
|
|
3070
|
-
var content = this.
|
|
3071
|
-
copyToBoth(content, this.
|
|
3072
|
-
tmp_0.
|
|
3070
|
+
var content = this.p58_1.l32();
|
|
3071
|
+
copyToBoth(content, this.q58_1, responseChannel);
|
|
3072
|
+
tmp_0.r58_1 = new LoggedContent(this.p58_1, responseChannel);
|
|
3073
3073
|
this.a9_1 = 5;
|
|
3074
3074
|
continue $sm;
|
|
3075
3075
|
} else {
|
|
3076
3076
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3077
3077
|
var tmp_1 = this;
|
|
3078
3078
|
var responseChannel_0 = new ByteChannel();
|
|
3079
|
-
var content_0 = toReadChannel(this.
|
|
3080
|
-
copyToBoth(content_0, this.
|
|
3081
|
-
tmp_1.
|
|
3079
|
+
var content_0 = toReadChannel(this.p58_1);
|
|
3080
|
+
copyToBoth(content_0, this.q58_1, responseChannel_0);
|
|
3081
|
+
tmp_1.r58_1 = new LoggedContent(this.p58_1, responseChannel_0);
|
|
3082
3082
|
this.a9_1 = 5;
|
|
3083
3083
|
continue $sm;
|
|
3084
3084
|
} else {
|
|
3085
3085
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3086
|
-
this.
|
|
3086
|
+
this.s58_1 = this.p58_1;
|
|
3087
3087
|
this.a9_1 = 2;
|
|
3088
|
-
suspendResult = observe(this.
|
|
3088
|
+
suspendResult = observe(this.p58_1.r32(), this.q58_1, this);
|
|
3089
3089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3090
3090
|
return suspendResult;
|
|
3091
3091
|
}
|
|
@@ -3099,7 +3099,7 @@
|
|
|
3099
3099
|
}
|
|
3100
3100
|
if (tmp_2) {
|
|
3101
3101
|
this.a9_1 = 1;
|
|
3102
|
-
suspendResult = this.
|
|
3102
|
+
suspendResult = this.q58_1.e1l(this);
|
|
3103
3103
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3104
3104
|
return suspendResult;
|
|
3105
3105
|
}
|
|
@@ -3115,28 +3115,28 @@
|
|
|
3115
3115
|
|
|
3116
3116
|
break;
|
|
3117
3117
|
case 1:
|
|
3118
|
-
this.
|
|
3118
|
+
this.r58_1 = this.p58_1;
|
|
3119
3119
|
this.a9_1 = 5;
|
|
3120
3120
|
continue $sm;
|
|
3121
3121
|
case 2:
|
|
3122
3122
|
var ARGUMENT = suspendResult;
|
|
3123
|
-
this.
|
|
3123
|
+
this.r58_1 = this.s58_1.s32(ARGUMENT);
|
|
3124
3124
|
this.a9_1 = 5;
|
|
3125
3125
|
continue $sm;
|
|
3126
3126
|
case 3:
|
|
3127
3127
|
this.a9_1 = 4;
|
|
3128
|
-
suspendResult = this.
|
|
3128
|
+
suspendResult = this.q58_1.e1l(this);
|
|
3129
3129
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3130
3130
|
return suspendResult;
|
|
3131
3131
|
}
|
|
3132
3132
|
|
|
3133
3133
|
continue $sm;
|
|
3134
3134
|
case 4:
|
|
3135
|
-
this.
|
|
3135
|
+
this.r58_1 = this.p58_1;
|
|
3136
3136
|
this.a9_1 = 5;
|
|
3137
3137
|
continue $sm;
|
|
3138
3138
|
case 5:
|
|
3139
|
-
return this.
|
|
3139
|
+
return this.r58_1;
|
|
3140
3140
|
case 6:
|
|
3141
3141
|
throw this.d9_1;
|
|
3142
3142
|
}
|