@doordeck/doordeck-headless-sdk 0.170.0 → 0.172.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/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +33 -33
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.js +10186 -10186
- package/kotlin/kotlin-kotlin-stdlib.js +1116 -928
- package/kotlin/kotlinx-atomicfu.js +22 -22
- package/kotlin/kotlinx-coroutines-core.js +1943 -1943
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +47 -47
- package/kotlin/kotlinx-io-kotlinx-io-core.js +479 -479
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1883 -1883
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1448 -1448
- 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 +2672 -1863
- package/kotlin/ktor-ktor-client-logging.js +652 -652
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +372 -372
- package/kotlin/ktor-ktor-http.js +786 -786
- package/kotlin/ktor-ktor-io.js +653 -653
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +152 -152
- package/kotlin/ktor-ktor-serialization.js +72 -72
- package/kotlin/ktor-ktor-utils.js +770 -770
- package/kotlin/ktor-ktor-websockets.js +52 -52
- package/package.json +1 -1
|
@@ -1,50 +1,50 @@
|
|
|
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.$_$.j9;
|
|
5
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.zf;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.mb;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.df;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.dc;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.ac;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.db;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.qa;
|
|
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.$_$.bb;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.b;
|
|
20
|
-
var Enum = kotlin_kotlin.$_$.
|
|
20
|
+
var Enum = kotlin_kotlin.$_$.pf;
|
|
21
21
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
22
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
23
|
-
var println = kotlin_kotlin.$_$.
|
|
22
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.cb;
|
|
23
|
+
var println = kotlin_kotlin.$_$.m9;
|
|
24
24
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
25
25
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
26
26
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
27
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
28
|
-
var Long = kotlin_kotlin.$_$.
|
|
27
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.qc;
|
|
28
|
+
var Long = kotlin_kotlin.$_$.uf;
|
|
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.$_$.x9;
|
|
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.$_$.gb;
|
|
36
36
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
37
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
38
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
37
|
+
var isSuspendFunction = kotlin_kotlin.$_$.tb;
|
|
38
|
+
var initMetadataForObject = kotlin_kotlin.$_$.hb;
|
|
39
39
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
40
40
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
41
41
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
42
42
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.h1;
|
|
43
43
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
44
44
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
45
|
-
var Collection = kotlin_kotlin.$_$.
|
|
46
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
47
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
45
|
+
var Collection = kotlin_kotlin.$_$.d5;
|
|
46
|
+
var isInterface = kotlin_kotlin.$_$.qb;
|
|
47
|
+
var toString_0 = kotlin_kotlin.$_$.dh;
|
|
48
48
|
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
49
49
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
50
50
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
var Url = kotlin_io_ktor_ktor_http.$_$.f1;
|
|
55
55
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
56
56
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
57
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
58
|
-
var equals = kotlin_kotlin.$_$.
|
|
57
|
+
var joinToString = kotlin_kotlin.$_$.f7;
|
|
58
|
+
var equals = kotlin_kotlin.$_$.ua;
|
|
59
59
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
60
60
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
61
61
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
65
65
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
66
66
|
var readText = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
67
|
-
var Triple = kotlin_kotlin.$_$.
|
|
67
|
+
var Triple = kotlin_kotlin.$_$.bg;
|
|
68
68
|
var readAvailable = kotlin_io_ktor_ktor_io.$_$.d;
|
|
69
69
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
70
70
|
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
71
71
|
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
72
72
|
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
73
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
73
|
+
var charCodeAt = kotlin_kotlin.$_$.oa;
|
|
74
74
|
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
75
|
-
var add = kotlin_kotlin.$_$.
|
|
76
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
75
|
+
var add = kotlin_kotlin.$_$.o9;
|
|
76
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.yg;
|
|
77
77
|
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
78
78
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
79
79
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
@@ -84,34 +84,34 @@
|
|
|
84
84
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.l1;
|
|
85
85
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.a1;
|
|
86
86
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
87
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
87
|
+
var toLongOrNull = kotlin_kotlin.$_$.te;
|
|
88
88
|
var contentLength = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
89
89
|
var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
90
|
-
var subtract = kotlin_kotlin.$_$.
|
|
90
|
+
var subtract = kotlin_kotlin.$_$.fa;
|
|
91
91
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
92
92
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
93
93
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
94
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
95
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
96
|
-
var createKType = kotlin_kotlin.$_$.
|
|
94
|
+
var getKClass = kotlin_kotlin.$_$.rc;
|
|
95
|
+
var arrayOf = kotlin_kotlin.$_$.ng;
|
|
96
|
+
var createKType = kotlin_kotlin.$_$.pc;
|
|
97
97
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
98
98
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
99
|
-
var Unit = kotlin_kotlin.$_$.
|
|
99
|
+
var Unit = kotlin_kotlin.$_$.kg;
|
|
100
100
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
101
|
-
var toList = kotlin_kotlin.$_$.
|
|
102
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
103
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
104
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
105
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
106
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
101
|
+
var toList = kotlin_kotlin.$_$.g8;
|
|
102
|
+
var sortedWith = kotlin_kotlin.$_$.b8;
|
|
103
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ha;
|
|
104
|
+
var Comparator = kotlin_kotlin.$_$.mf;
|
|
105
|
+
var hashCode = kotlin_kotlin.$_$.ab;
|
|
106
|
+
var compareValues = kotlin_kotlin.$_$.r8;
|
|
107
107
|
var writer = kotlin_io_ktor_ktor_io.$_$.t1;
|
|
108
108
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
109
109
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
110
|
-
var get = kotlin_kotlin.$_$.
|
|
111
|
-
var fold = kotlin_kotlin.$_$.
|
|
112
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
113
|
-
var plus = kotlin_kotlin.$_$.
|
|
114
|
-
var Element = kotlin_kotlin.$_$.
|
|
110
|
+
var get = kotlin_kotlin.$_$.f9;
|
|
111
|
+
var fold = kotlin_kotlin.$_$.e9;
|
|
112
|
+
var minusKey = kotlin_kotlin.$_$.g9;
|
|
113
|
+
var plus = kotlin_kotlin.$_$.i9;
|
|
114
|
+
var Element = kotlin_kotlin.$_$.h9;
|
|
115
115
|
//endregion
|
|
116
116
|
//region block: pre-declaration
|
|
117
117
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
//endregion
|
|
161
161
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
162
162
|
CoroutineImpl.call(this, resultContinuation);
|
|
163
|
-
this.
|
|
164
|
-
this.
|
|
163
|
+
this.m4v_1 = _this__u8e3s4;
|
|
164
|
+
this.n4v_1 = message;
|
|
165
165
|
}
|
|
166
166
|
protoOf($logResponseExceptionCOROUTINE$).c9 = function () {
|
|
167
167
|
var suspendResult = this.w8_1;
|
|
@@ -172,15 +172,15 @@
|
|
|
172
172
|
case 0:
|
|
173
173
|
this.v8_1 = 2;
|
|
174
174
|
this.u8_1 = 1;
|
|
175
|
-
suspendResult = this.
|
|
175
|
+
suspendResult = this.m4v_1.r4v_1.bu(this);
|
|
176
176
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
177
177
|
return suspendResult;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
continue $sm;
|
|
181
181
|
case 1:
|
|
182
|
-
var this_0 = this.
|
|
183
|
-
this.
|
|
182
|
+
var this_0 = this.n4v_1;
|
|
183
|
+
this.m4v_1.o4v_1.v4v(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
184
184
|
return Unit_instance;
|
|
185
185
|
case 2:
|
|
186
186
|
throw this.x8_1;
|
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
};
|
|
199
199
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
200
200
|
CoroutineImpl.call(this, resultContinuation);
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
201
|
+
this.e4w_1 = _this__u8e3s4;
|
|
202
|
+
this.f4w_1 = message;
|
|
203
203
|
}
|
|
204
204
|
protoOf($logResponseBodyCOROUTINE$).c9 = function () {
|
|
205
205
|
var suspendResult = this.w8_1;
|
|
@@ -210,14 +210,14 @@
|
|
|
210
210
|
case 0:
|
|
211
211
|
this.v8_1 = 2;
|
|
212
212
|
this.u8_1 = 1;
|
|
213
|
-
suspendResult = this.
|
|
213
|
+
suspendResult = this.e4w_1.s4v_1.bu(this);
|
|
214
214
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
215
215
|
return suspendResult;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
continue $sm;
|
|
219
219
|
case 1:
|
|
220
|
-
this.
|
|
220
|
+
this.e4w_1.q4v_1.f8(this.f4w_1);
|
|
221
221
|
return Unit_instance;
|
|
222
222
|
case 2:
|
|
223
223
|
throw this.x8_1;
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
};
|
|
236
236
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
237
237
|
CoroutineImpl.call(this, resultContinuation);
|
|
238
|
-
this.
|
|
238
|
+
this.o4w_1 = _this__u8e3s4;
|
|
239
239
|
}
|
|
240
240
|
protoOf($closeResponseLogCOROUTINE$).c9 = function () {
|
|
241
241
|
var suspendResult = this.w8_1;
|
|
@@ -245,19 +245,19 @@
|
|
|
245
245
|
switch (tmp) {
|
|
246
246
|
case 0:
|
|
247
247
|
this.v8_1 = 2;
|
|
248
|
-
if (!this.
|
|
248
|
+
if (!this.o4w_1.u4v_1.atomicfu$compareAndSet(false, true))
|
|
249
249
|
return Unit_instance;
|
|
250
250
|
this.u8_1 = 1;
|
|
251
|
-
suspendResult = this.
|
|
251
|
+
suspendResult = this.o4w_1.r4v_1.bu(this);
|
|
252
252
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
253
253
|
return suspendResult;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
continue $sm;
|
|
257
257
|
case 1:
|
|
258
|
-
var message = toString(trim(this.
|
|
258
|
+
var message = toString(trim(this.o4w_1.q4v_1));
|
|
259
259
|
if (charSequenceLength(message) > 0) {
|
|
260
|
-
this.
|
|
260
|
+
this.o4w_1.o4v_1.v4v(message);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
return Unit_instance;
|
|
@@ -276,57 +276,57 @@
|
|
|
276
276
|
while (true);
|
|
277
277
|
};
|
|
278
278
|
function HttpClientCallLogger(logger) {
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
286
|
-
}
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
288
|
-
var tmp0 = this.
|
|
279
|
+
this.o4v_1 = logger;
|
|
280
|
+
this.p4v_1 = StringBuilder_init_$Create$();
|
|
281
|
+
this.q4v_1 = StringBuilder_init_$Create$();
|
|
282
|
+
this.r4v_1 = Job();
|
|
283
|
+
this.s4v_1 = Job();
|
|
284
|
+
this.t4v_1 = atomic$boolean$1(false);
|
|
285
|
+
this.u4v_1 = atomic$boolean$1(false);
|
|
286
|
+
}
|
|
287
|
+
protoOf(HttpClientCallLogger).p4w = function (message) {
|
|
288
|
+
var tmp0 = this.p4v_1;
|
|
289
289
|
// Inline function 'kotlin.text.trim' call
|
|
290
290
|
// Inline function 'kotlin.text.appendLine' call
|
|
291
291
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
292
292
|
// Inline function 'kotlin.text.appendLine' call
|
|
293
293
|
tmp0.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
294
294
|
};
|
|
295
|
-
protoOf(HttpClientCallLogger).
|
|
296
|
-
var tmp0 = this.
|
|
295
|
+
protoOf(HttpClientCallLogger).q4w = function (message) {
|
|
296
|
+
var tmp0 = this.q4v_1;
|
|
297
297
|
// Inline function 'kotlin.text.trim' call
|
|
298
298
|
// Inline function 'kotlin.text.appendLine' call
|
|
299
299
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
300
300
|
// Inline function 'kotlin.text.appendLine' call
|
|
301
301
|
tmp0.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
302
|
-
this.
|
|
302
|
+
this.s4v_1.f11();
|
|
303
303
|
};
|
|
304
|
-
protoOf(HttpClientCallLogger).
|
|
304
|
+
protoOf(HttpClientCallLogger).r4w = function (message, $completion) {
|
|
305
305
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
306
306
|
tmp.w8_1 = Unit_instance;
|
|
307
307
|
tmp.x8_1 = null;
|
|
308
308
|
return tmp.c9();
|
|
309
309
|
};
|
|
310
|
-
protoOf(HttpClientCallLogger).
|
|
310
|
+
protoOf(HttpClientCallLogger).s4w = function (message, $completion) {
|
|
311
311
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
312
312
|
tmp.w8_1 = Unit_instance;
|
|
313
313
|
tmp.x8_1 = null;
|
|
314
314
|
return tmp.c9();
|
|
315
315
|
};
|
|
316
|
-
protoOf(HttpClientCallLogger).
|
|
317
|
-
if (!this.
|
|
316
|
+
protoOf(HttpClientCallLogger).t4w = function () {
|
|
317
|
+
if (!this.t4v_1.atomicfu$compareAndSet(false, true))
|
|
318
318
|
return Unit_instance;
|
|
319
319
|
try {
|
|
320
|
-
var message = toString(trim(this.
|
|
320
|
+
var message = toString(trim(this.p4v_1));
|
|
321
321
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
322
322
|
if (charSequenceLength(message) > 0) {
|
|
323
|
-
this.
|
|
323
|
+
this.o4v_1.v4v(message);
|
|
324
324
|
}
|
|
325
325
|
}finally {
|
|
326
|
-
this.
|
|
326
|
+
this.r4v_1.f11();
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
protoOf(HttpClientCallLogger).
|
|
329
|
+
protoOf(HttpClientCallLogger).u4w = function ($completion) {
|
|
330
330
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
331
331
|
tmp.w8_1 = Unit_instance;
|
|
332
332
|
tmp.x8_1 = null;
|
|
@@ -350,9 +350,9 @@
|
|
|
350
350
|
}
|
|
351
351
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
352
352
|
Enum.call(this, name, ordinal);
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
353
|
+
this.x4w_1 = info;
|
|
354
|
+
this.y4w_1 = headers;
|
|
355
|
+
this.z4w_1 = body;
|
|
356
356
|
}
|
|
357
357
|
function LogLevel_ALL_getInstance() {
|
|
358
358
|
LogLevel_initEntries();
|
|
@@ -376,27 +376,27 @@
|
|
|
376
376
|
}
|
|
377
377
|
function LoggedContent(originalContent, channel) {
|
|
378
378
|
ReadChannelContent.call(this);
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
379
|
+
this.b4x_1 = originalContent;
|
|
380
|
+
this.c4x_1 = channel;
|
|
381
|
+
this.d4x_1 = this.b4x_1.o33();
|
|
382
|
+
this.e4x_1 = this.b4x_1.q33();
|
|
383
|
+
this.f4x_1 = this.b4x_1.p33();
|
|
384
|
+
this.g4x_1 = this.b4x_1.s2x();
|
|
385
385
|
}
|
|
386
|
-
protoOf(LoggedContent).
|
|
387
|
-
return this.
|
|
386
|
+
protoOf(LoggedContent).o33 = function () {
|
|
387
|
+
return this.d4x_1;
|
|
388
388
|
};
|
|
389
|
-
protoOf(LoggedContent).
|
|
390
|
-
return this.
|
|
389
|
+
protoOf(LoggedContent).q33 = function () {
|
|
390
|
+
return this.e4x_1;
|
|
391
391
|
};
|
|
392
|
-
protoOf(LoggedContent).
|
|
393
|
-
return this.
|
|
392
|
+
protoOf(LoggedContent).p33 = function () {
|
|
393
|
+
return this.f4x_1;
|
|
394
394
|
};
|
|
395
|
-
protoOf(LoggedContent).
|
|
396
|
-
return this.
|
|
395
|
+
protoOf(LoggedContent).s2x = function () {
|
|
396
|
+
return this.g4x_1;
|
|
397
397
|
};
|
|
398
|
-
protoOf(LoggedContent).
|
|
399
|
-
return this.
|
|
398
|
+
protoOf(LoggedContent).u33 = function () {
|
|
399
|
+
return this.c4x_1;
|
|
400
400
|
};
|
|
401
401
|
function Companion() {
|
|
402
402
|
}
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
}
|
|
410
410
|
function SimpleLogger() {
|
|
411
411
|
}
|
|
412
|
-
protoOf(SimpleLogger).
|
|
412
|
+
protoOf(SimpleLogger).v4v = function (message) {
|
|
413
413
|
println('HttpClient: ' + message);
|
|
414
414
|
};
|
|
415
415
|
function get_ClientCallLogger() {
|
|
@@ -430,19 +430,19 @@
|
|
|
430
430
|
function LoggingConfig() {
|
|
431
431
|
var tmp = this;
|
|
432
432
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
433
|
-
tmp.
|
|
433
|
+
tmp.h4x_1 = ArrayList_init_$Create$();
|
|
434
434
|
var tmp_0 = this;
|
|
435
435
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
436
|
-
tmp_0.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
436
|
+
tmp_0.i4x_1 = ArrayList_init_$Create$();
|
|
437
|
+
this.j4x_1 = null;
|
|
438
|
+
this.k4x_1 = LoggingFormat_Default_getInstance();
|
|
439
|
+
this.l4x_1 = LogLevel_HEADERS_getInstance();
|
|
440
440
|
}
|
|
441
|
-
protoOf(LoggingConfig).
|
|
442
|
-
this.
|
|
441
|
+
protoOf(LoggingConfig).m4x = function (value) {
|
|
442
|
+
this.j4x_1 = value;
|
|
443
443
|
};
|
|
444
|
-
protoOf(LoggingConfig).
|
|
445
|
-
var tmp0_elvis_lhs = this.
|
|
444
|
+
protoOf(LoggingConfig).n4x = function () {
|
|
445
|
+
var tmp0_elvis_lhs = this.j4x_1;
|
|
446
446
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
447
447
|
};
|
|
448
448
|
var LoggingFormat_Default_instance;
|
|
@@ -464,17 +464,17 @@
|
|
|
464
464
|
// Inline function 'kotlin.apply' call
|
|
465
465
|
var this_0 = StringBuilder_init_$Create$();
|
|
466
466
|
// Inline function 'kotlin.text.isEmpty' call
|
|
467
|
-
var this_1 = _this__u8e3s4.
|
|
467
|
+
var this_1 = _this__u8e3s4.t32();
|
|
468
468
|
if (charSequenceLength(this_1) === 0) {
|
|
469
469
|
this_0.f8('/');
|
|
470
470
|
} else {
|
|
471
|
-
this_0.f8(_this__u8e3s4.
|
|
471
|
+
this_0.f8(_this__u8e3s4.t32());
|
|
472
472
|
}
|
|
473
473
|
// Inline function 'kotlin.text.isEmpty' call
|
|
474
|
-
var this_2 = _this__u8e3s4.
|
|
474
|
+
var this_2 = _this__u8e3s4.w32();
|
|
475
475
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
476
476
|
this_0.f8('?');
|
|
477
|
-
this_0.f8(_this__u8e3s4.
|
|
477
|
+
this_0.f8(_this__u8e3s4.w32());
|
|
478
478
|
}
|
|
479
479
|
return this_0.toString();
|
|
480
480
|
}
|
|
@@ -486,10 +486,10 @@
|
|
|
486
486
|
}
|
|
487
487
|
var tmp;
|
|
488
488
|
if (content instanceof ByteArrayContent) {
|
|
489
|
-
tmp = fromInt(content.
|
|
489
|
+
tmp = fromInt(content.r33().length);
|
|
490
490
|
} else {
|
|
491
491
|
if (content instanceof ContentWrapper) {
|
|
492
|
-
tmp = computeRequestBodySize(content.
|
|
492
|
+
tmp = computeRequestBodySize(content.a34());
|
|
493
493
|
} else {
|
|
494
494
|
if (content instanceof NoContent) {
|
|
495
495
|
tmp = new Long(0, 0);
|
|
@@ -506,27 +506,27 @@
|
|
|
506
506
|
return tmp;
|
|
507
507
|
}
|
|
508
508
|
function Context(context) {
|
|
509
|
-
this.
|
|
509
|
+
this.o4x_1 = context;
|
|
510
510
|
}
|
|
511
|
-
protoOf(Context).
|
|
512
|
-
return this.
|
|
511
|
+
protoOf(Context).p4x = function (content, $completion) {
|
|
512
|
+
return this.o4x_1.s2o(content, $completion);
|
|
513
513
|
};
|
|
514
|
-
protoOf(Context).
|
|
515
|
-
return this.
|
|
514
|
+
protoOf(Context).q4x = function ($completion) {
|
|
515
|
+
return this.o4x_1.t2o($completion);
|
|
516
516
|
};
|
|
517
517
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
518
|
-
this.
|
|
518
|
+
this.z4x_1 = $handler;
|
|
519
519
|
CoroutineImpl.call(this, resultContinuation);
|
|
520
520
|
}
|
|
521
|
-
protoOf(SendHook$install$slambda).
|
|
522
|
-
var tmp = this.
|
|
521
|
+
protoOf(SendHook$install$slambda).h3e = function ($this$intercept, it, $completion) {
|
|
522
|
+
var tmp = this.i3e($this$intercept, it, $completion);
|
|
523
523
|
tmp.w8_1 = Unit_instance;
|
|
524
524
|
tmp.x8_1 = null;
|
|
525
525
|
return tmp.c9();
|
|
526
526
|
};
|
|
527
527
|
protoOf(SendHook$install$slambda).p9 = function (p1, p2, $completion) {
|
|
528
528
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
529
|
-
return this.
|
|
529
|
+
return this.h3e(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
530
530
|
};
|
|
531
531
|
protoOf(SendHook$install$slambda).c9 = function () {
|
|
532
532
|
var suspendResult = this.w8_1;
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
case 0:
|
|
538
538
|
this.v8_1 = 2;
|
|
539
539
|
this.u8_1 = 1;
|
|
540
|
-
suspendResult = this.
|
|
540
|
+
suspendResult = this.z4x_1(new Context(this.a4y_1), this.a4y_1.o2p_1, this);
|
|
541
541
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
542
542
|
return suspendResult;
|
|
543
543
|
}
|
|
@@ -559,52 +559,52 @@
|
|
|
559
559
|
}
|
|
560
560
|
while (true);
|
|
561
561
|
};
|
|
562
|
-
protoOf(SendHook$install$slambda).
|
|
563
|
-
var i = new SendHook$install$slambda(this.
|
|
564
|
-
i.
|
|
565
|
-
i.
|
|
562
|
+
protoOf(SendHook$install$slambda).i3e = function ($this$intercept, it, completion) {
|
|
563
|
+
var i = new SendHook$install$slambda(this.z4x_1, completion);
|
|
564
|
+
i.a4y_1 = $this$intercept;
|
|
565
|
+
i.b4y_1 = it;
|
|
566
566
|
return i;
|
|
567
567
|
};
|
|
568
568
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
569
569
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
570
570
|
var l = function ($this$intercept, it, $completion) {
|
|
571
|
-
return i.
|
|
571
|
+
return i.h3e($this$intercept, it, $completion);
|
|
572
572
|
};
|
|
573
573
|
l.$arity = 2;
|
|
574
574
|
return l;
|
|
575
575
|
}
|
|
576
576
|
function SendHook() {
|
|
577
577
|
}
|
|
578
|
-
protoOf(SendHook).
|
|
579
|
-
var tmp = Phases_getInstance().
|
|
580
|
-
client.
|
|
578
|
+
protoOf(SendHook).c4y = function (client, handler) {
|
|
579
|
+
var tmp = Phases_getInstance().y3f_1;
|
|
580
|
+
client.q3d_1.s2p(tmp, SendHook$install$slambda_0(handler, null));
|
|
581
581
|
};
|
|
582
|
-
protoOf(SendHook).
|
|
583
|
-
return this.
|
|
582
|
+
protoOf(SendHook).x3m = function (client, handler) {
|
|
583
|
+
return this.c4y(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
584
584
|
};
|
|
585
585
|
var SendHook_instance;
|
|
586
586
|
function SendHook_getInstance() {
|
|
587
587
|
return SendHook_instance;
|
|
588
588
|
}
|
|
589
589
|
function Context_0(context) {
|
|
590
|
-
this.
|
|
590
|
+
this.d4y_1 = context;
|
|
591
591
|
}
|
|
592
|
-
protoOf(Context_0).
|
|
593
|
-
return this.
|
|
592
|
+
protoOf(Context_0).w4b = function (response, $completion) {
|
|
593
|
+
return this.d4y_1.s2o(response, $completion);
|
|
594
594
|
};
|
|
595
595
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
596
|
-
this.
|
|
596
|
+
this.m4y_1 = $handler;
|
|
597
597
|
CoroutineImpl.call(this, resultContinuation);
|
|
598
598
|
}
|
|
599
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
600
|
-
var tmp = this.
|
|
599
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).j3n = function ($this$intercept, it, $completion) {
|
|
600
|
+
var tmp = this.k3n($this$intercept, it, $completion);
|
|
601
601
|
tmp.w8_1 = Unit_instance;
|
|
602
602
|
tmp.x8_1 = null;
|
|
603
603
|
return tmp.c9();
|
|
604
604
|
};
|
|
605
605
|
protoOf(ResponseAfterEncodingHook$install$slambda).p9 = function (p1, p2, $completion) {
|
|
606
606
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
607
|
-
return this.
|
|
607
|
+
return this.j3n(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
608
608
|
};
|
|
609
609
|
protoOf(ResponseAfterEncodingHook$install$slambda).c9 = function () {
|
|
610
610
|
var suspendResult = this.w8_1;
|
|
@@ -615,7 +615,7 @@
|
|
|
615
615
|
case 0:
|
|
616
616
|
this.v8_1 = 2;
|
|
617
617
|
this.u8_1 = 1;
|
|
618
|
-
suspendResult = this.
|
|
618
|
+
suspendResult = this.m4y_1(new Context_0(this.n4y_1), this.n4y_1.r2o(), this);
|
|
619
619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
620
620
|
return suspendResult;
|
|
621
621
|
}
|
|
@@ -637,53 +637,53 @@
|
|
|
637
637
|
}
|
|
638
638
|
while (true);
|
|
639
639
|
};
|
|
640
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
641
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
642
|
-
i.
|
|
643
|
-
i.
|
|
640
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).k3n = function ($this$intercept, it, completion) {
|
|
641
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.m4y_1, completion);
|
|
642
|
+
i.n4y_1 = $this$intercept;
|
|
643
|
+
i.o4y_1 = it;
|
|
644
644
|
return i;
|
|
645
645
|
};
|
|
646
646
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
647
647
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
648
648
|
var l = function ($this$intercept, it, $completion) {
|
|
649
|
-
return i.
|
|
649
|
+
return i.j3n($this$intercept, it, $completion);
|
|
650
650
|
};
|
|
651
651
|
l.$arity = 2;
|
|
652
652
|
return l;
|
|
653
653
|
}
|
|
654
654
|
function ResponseAfterEncodingHook() {
|
|
655
655
|
}
|
|
656
|
-
protoOf(ResponseAfterEncodingHook).
|
|
656
|
+
protoOf(ResponseAfterEncodingHook).p4y = function (client, handler) {
|
|
657
657
|
var afterState = new PipelinePhase('AfterState');
|
|
658
|
-
client.
|
|
659
|
-
client.
|
|
658
|
+
client.r3d_1.p2p(Phases_getInstance_0().n3n_1, afterState);
|
|
659
|
+
client.r3d_1.s2p(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
660
660
|
};
|
|
661
|
-
protoOf(ResponseAfterEncodingHook).
|
|
662
|
-
return this.
|
|
661
|
+
protoOf(ResponseAfterEncodingHook).x3m = function (client, handler) {
|
|
662
|
+
return this.p4y(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
663
663
|
};
|
|
664
664
|
var ResponseAfterEncodingHook_instance;
|
|
665
665
|
function ResponseAfterEncodingHook_getInstance() {
|
|
666
666
|
return ResponseAfterEncodingHook_instance;
|
|
667
667
|
}
|
|
668
668
|
function Context_1(context) {
|
|
669
|
-
this.
|
|
669
|
+
this.q4y_1 = context;
|
|
670
670
|
}
|
|
671
|
-
protoOf(Context_1).
|
|
672
|
-
return this.
|
|
671
|
+
protoOf(Context_1).r4y = function ($completion) {
|
|
672
|
+
return this.q4y_1.t2o($completion);
|
|
673
673
|
};
|
|
674
674
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
675
|
-
this.
|
|
675
|
+
this.a4z_1 = $handler;
|
|
676
676
|
CoroutineImpl.call(this, resultContinuation);
|
|
677
677
|
}
|
|
678
|
-
protoOf(ResponseHook$install$slambda).
|
|
679
|
-
var tmp = this.
|
|
678
|
+
protoOf(ResponseHook$install$slambda).j3n = function ($this$intercept, it, $completion) {
|
|
679
|
+
var tmp = this.k3n($this$intercept, it, $completion);
|
|
680
680
|
tmp.w8_1 = Unit_instance;
|
|
681
681
|
tmp.x8_1 = null;
|
|
682
682
|
return tmp.c9();
|
|
683
683
|
};
|
|
684
684
|
protoOf(ResponseHook$install$slambda).p9 = function (p1, p2, $completion) {
|
|
685
685
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
686
|
-
return this.
|
|
686
|
+
return this.j3n(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
687
687
|
};
|
|
688
688
|
protoOf(ResponseHook$install$slambda).c9 = function () {
|
|
689
689
|
var suspendResult = this.w8_1;
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
case 0:
|
|
695
695
|
this.v8_1 = 2;
|
|
696
696
|
this.u8_1 = 1;
|
|
697
|
-
suspendResult = this.
|
|
697
|
+
suspendResult = this.a4z_1(new Context_1(this.b4z_1), this.b4z_1.r2o(), this);
|
|
698
698
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
699
699
|
return suspendResult;
|
|
700
700
|
}
|
|
@@ -716,52 +716,52 @@
|
|
|
716
716
|
}
|
|
717
717
|
while (true);
|
|
718
718
|
};
|
|
719
|
-
protoOf(ResponseHook$install$slambda).
|
|
720
|
-
var i = new ResponseHook$install$slambda(this.
|
|
721
|
-
i.
|
|
722
|
-
i.
|
|
719
|
+
protoOf(ResponseHook$install$slambda).k3n = function ($this$intercept, it, completion) {
|
|
720
|
+
var i = new ResponseHook$install$slambda(this.a4z_1, completion);
|
|
721
|
+
i.b4z_1 = $this$intercept;
|
|
722
|
+
i.c4z_1 = it;
|
|
723
723
|
return i;
|
|
724
724
|
};
|
|
725
725
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
726
726
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
727
727
|
var l = function ($this$intercept, it, $completion) {
|
|
728
|
-
return i.
|
|
728
|
+
return i.j3n($this$intercept, it, $completion);
|
|
729
729
|
};
|
|
730
730
|
l.$arity = 2;
|
|
731
731
|
return l;
|
|
732
732
|
}
|
|
733
733
|
function ResponseHook() {
|
|
734
734
|
}
|
|
735
|
-
protoOf(ResponseHook).
|
|
736
|
-
var tmp = Phases_getInstance_0().
|
|
737
|
-
client.
|
|
735
|
+
protoOf(ResponseHook).d4z = function (client, handler) {
|
|
736
|
+
var tmp = Phases_getInstance_0().n3n_1;
|
|
737
|
+
client.r3d_1.s2p(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
738
738
|
};
|
|
739
|
-
protoOf(ResponseHook).
|
|
740
|
-
return this.
|
|
739
|
+
protoOf(ResponseHook).x3m = function (client, handler) {
|
|
740
|
+
return this.d4z(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
741
741
|
};
|
|
742
742
|
var ResponseHook_instance;
|
|
743
743
|
function ResponseHook_getInstance() {
|
|
744
744
|
return ResponseHook_instance;
|
|
745
745
|
}
|
|
746
746
|
function Context_2(context) {
|
|
747
|
-
this.
|
|
747
|
+
this.e4z_1 = context;
|
|
748
748
|
}
|
|
749
|
-
protoOf(Context_2).
|
|
750
|
-
return this.
|
|
749
|
+
protoOf(Context_2).f4z = function ($completion) {
|
|
750
|
+
return this.e4z_1.t2o($completion);
|
|
751
751
|
};
|
|
752
752
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
753
|
-
this.
|
|
753
|
+
this.o4z_1 = $handler;
|
|
754
754
|
CoroutineImpl.call(this, resultContinuation);
|
|
755
755
|
}
|
|
756
|
-
protoOf(ReceiveHook$install$slambda).
|
|
757
|
-
var tmp = this.
|
|
756
|
+
protoOf(ReceiveHook$install$slambda).c3f = function ($this$intercept, it, $completion) {
|
|
757
|
+
var tmp = this.d3f($this$intercept, it, $completion);
|
|
758
758
|
tmp.w8_1 = Unit_instance;
|
|
759
759
|
tmp.x8_1 = null;
|
|
760
760
|
return tmp.c9();
|
|
761
761
|
};
|
|
762
762
|
protoOf(ReceiveHook$install$slambda).p9 = function (p1, p2, $completion) {
|
|
763
763
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
764
|
-
return this.
|
|
764
|
+
return this.c3f(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
765
765
|
};
|
|
766
766
|
protoOf(ReceiveHook$install$slambda).c9 = function () {
|
|
767
767
|
var suspendResult = this.w8_1;
|
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
case 0:
|
|
773
773
|
this.v8_1 = 2;
|
|
774
774
|
this.u8_1 = 1;
|
|
775
|
-
suspendResult = this.
|
|
775
|
+
suspendResult = this.o4z_1(new Context_2(this.p4z_1), this.p4z_1.o2p_1, this);
|
|
776
776
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
777
777
|
return suspendResult;
|
|
778
778
|
}
|
|
@@ -794,28 +794,28 @@
|
|
|
794
794
|
}
|
|
795
795
|
while (true);
|
|
796
796
|
};
|
|
797
|
-
protoOf(ReceiveHook$install$slambda).
|
|
798
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
799
|
-
i.
|
|
800
|
-
i.
|
|
797
|
+
protoOf(ReceiveHook$install$slambda).d3f = function ($this$intercept, it, completion) {
|
|
798
|
+
var i = new ReceiveHook$install$slambda(this.o4z_1, completion);
|
|
799
|
+
i.p4z_1 = $this$intercept;
|
|
800
|
+
i.q4z_1 = it;
|
|
801
801
|
return i;
|
|
802
802
|
};
|
|
803
803
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
804
804
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
805
805
|
var l = function ($this$intercept, it, $completion) {
|
|
806
|
-
return i.
|
|
806
|
+
return i.c3f($this$intercept, it, $completion);
|
|
807
807
|
};
|
|
808
808
|
l.$arity = 2;
|
|
809
809
|
return l;
|
|
810
810
|
}
|
|
811
811
|
function ReceiveHook() {
|
|
812
812
|
}
|
|
813
|
-
protoOf(ReceiveHook).
|
|
814
|
-
var tmp = Phases_getInstance_1().
|
|
815
|
-
client.
|
|
813
|
+
protoOf(ReceiveHook).r4z = function (client, handler) {
|
|
814
|
+
var tmp = Phases_getInstance_1().m3g_1;
|
|
815
|
+
client.p3d_1.s2p(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
816
816
|
};
|
|
817
|
-
protoOf(ReceiveHook).
|
|
818
|
-
return this.
|
|
817
|
+
protoOf(ReceiveHook).x3m = function (client, handler) {
|
|
818
|
+
return this.r4z(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
819
819
|
};
|
|
820
820
|
var ReceiveHook_instance;
|
|
821
821
|
function ReceiveHook_getInstance() {
|
|
@@ -830,26 +830,26 @@
|
|
|
830
830
|
}
|
|
831
831
|
function Logging$lambda($this$createClientPlugin) {
|
|
832
832
|
_init_properties_Logging_kt__66pui5();
|
|
833
|
-
var logger = $this$createClientPlugin.
|
|
834
|
-
var level = $this$createClientPlugin.
|
|
835
|
-
var filters = $this$createClientPlugin.
|
|
836
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
837
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
833
|
+
var logger = $this$createClientPlugin.r3n_1.n4x();
|
|
834
|
+
var level = $this$createClientPlugin.r3n_1.l4x_1;
|
|
835
|
+
var filters = $this$createClientPlugin.r3n_1.h4x_1;
|
|
836
|
+
var sanitizedHeaders = $this$createClientPlugin.r3n_1.i4x_1;
|
|
837
|
+
var okHttpFormat = $this$createClientPlugin.r3n_1.k4x_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
838
838
|
var tmp = SendHook_instance;
|
|
839
|
-
$this$createClientPlugin.
|
|
839
|
+
$this$createClientPlugin.u3n(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
840
840
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
841
|
-
$this$createClientPlugin.
|
|
841
|
+
$this$createClientPlugin.u3n(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
842
842
|
var tmp_1 = ResponseHook_instance;
|
|
843
|
-
$this$createClientPlugin.
|
|
843
|
+
$this$createClientPlugin.u3n(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
844
844
|
var tmp_2 = ReceiveHook_instance;
|
|
845
|
-
$this$createClientPlugin.
|
|
845
|
+
$this$createClientPlugin.u3n(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
846
846
|
if (okHttpFormat)
|
|
847
847
|
return Unit_instance;
|
|
848
|
-
if (!level.
|
|
848
|
+
if (!level.z4w_1)
|
|
849
849
|
return Unit_instance;
|
|
850
850
|
var tmp_3 = get_ResponseObserver();
|
|
851
|
-
var responseObserver = tmp_3.
|
|
852
|
-
get_ResponseObserver().
|
|
851
|
+
var responseObserver = tmp_3.t3g(Logging$lambda$lambda(level));
|
|
852
|
+
get_ResponseObserver().u3g(responseObserver, $this$createClientPlugin.q3n_1);
|
|
853
853
|
return Unit_instance;
|
|
854
854
|
}
|
|
855
855
|
function invoke$shouldBeLogged(filters, request) {
|
|
@@ -942,47 +942,47 @@
|
|
|
942
942
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
943
943
|
var requestLog = StringBuilder_init_$Create$();
|
|
944
944
|
// Inline function 'kotlin.text.appendLine' call
|
|
945
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
945
|
+
var value = 'BODY Content-Type: ' + toString_0(content.o33());
|
|
946
946
|
// Inline function 'kotlin.text.appendLine' call
|
|
947
947
|
requestLog.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
948
|
-
var tmp0_safe_receiver = content.
|
|
948
|
+
var tmp0_safe_receiver = content.o33();
|
|
949
949
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
950
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
950
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().h1w_1 : tmp1_elvis_lhs;
|
|
951
951
|
var channel = new ByteChannel();
|
|
952
952
|
var tmp = GlobalScope_instance;
|
|
953
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
953
|
+
var tmp_0 = Dispatchers_getInstance().e15_1.fh(MDCContext());
|
|
954
954
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
955
955
|
return observe(content, channel, $completion);
|
|
956
956
|
}
|
|
957
957
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
958
|
-
if (level.
|
|
959
|
-
logger.
|
|
958
|
+
if (level.x4w_1) {
|
|
959
|
+
logger.v4v('REQUEST ' + Url(context.o3f_1).toString() + ' failed with exception: ' + cause.toString());
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
963
|
-
var tmp = request.
|
|
963
|
+
var tmp = request.r3f_1;
|
|
964
964
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
965
965
|
var callLogger = new HttpClientCallLogger(logger);
|
|
966
|
-
request.
|
|
966
|
+
request.t3f_1.f2i(get_ClientCallLogger(), callLogger);
|
|
967
967
|
// Inline function 'kotlin.text.buildString' call
|
|
968
968
|
// Inline function 'kotlin.apply' call
|
|
969
969
|
var this_0 = StringBuilder_init_$Create$();
|
|
970
|
-
if (level.
|
|
970
|
+
if (level.x4w_1) {
|
|
971
971
|
// Inline function 'kotlin.text.appendLine' call
|
|
972
|
-
var value = 'REQUEST: ' + Url(request.
|
|
972
|
+
var value = 'REQUEST: ' + Url(request.o3f_1).toString();
|
|
973
973
|
// Inline function 'kotlin.text.appendLine' call
|
|
974
974
|
this_0.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
975
975
|
// Inline function 'kotlin.text.appendLine' call
|
|
976
|
-
var value_0 = 'METHOD: ' + request.
|
|
976
|
+
var value_0 = 'METHOD: ' + request.p3f_1.toString();
|
|
977
977
|
// Inline function 'kotlin.text.appendLine' call
|
|
978
978
|
this_0.f8(value_0).g8(_Char___init__impl__6a9atx(10));
|
|
979
979
|
}
|
|
980
|
-
if (level.
|
|
980
|
+
if (level.y4w_1) {
|
|
981
981
|
// Inline function 'kotlin.text.appendLine' call
|
|
982
982
|
var value_1 = 'COMMON HEADERS';
|
|
983
983
|
// Inline function 'kotlin.text.appendLine' call
|
|
984
984
|
this_0.f8(value_1).g8(_Char___init__impl__6a9atx(10));
|
|
985
|
-
logHeaders(this_0, request.
|
|
985
|
+
logHeaders(this_0, request.q3f_1.d2m(), sanitizedHeaders);
|
|
986
986
|
// Inline function 'kotlin.text.appendLine' call
|
|
987
987
|
var value_2 = 'CONTENT HEADERS';
|
|
988
988
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -993,7 +993,7 @@
|
|
|
993
993
|
var _iterator__ex2g4s = sanitizedHeaders.r();
|
|
994
994
|
while (_iterator__ex2g4s.s()) {
|
|
995
995
|
var element = _iterator__ex2g4s.t();
|
|
996
|
-
if (element.
|
|
996
|
+
if (element.m53_1(HttpHeaders_getInstance().d2u_1)) {
|
|
997
997
|
tmp$ret$9 = element;
|
|
998
998
|
break $l$block;
|
|
999
999
|
}
|
|
@@ -1001,14 +1001,14 @@
|
|
|
1001
1001
|
tmp$ret$9 = null;
|
|
1002
1002
|
}
|
|
1003
1003
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
1004
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1004
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l53_1;
|
|
1005
1005
|
var tmp$ret$11;
|
|
1006
1006
|
$l$block_0: {
|
|
1007
1007
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1008
1008
|
var _iterator__ex2g4s_0 = sanitizedHeaders.r();
|
|
1009
1009
|
while (_iterator__ex2g4s_0.s()) {
|
|
1010
1010
|
var element_0 = _iterator__ex2g4s_0.t();
|
|
1011
|
-
if (element_0.
|
|
1011
|
+
if (element_0.m53_1(HttpHeaders_getInstance().g2u_1)) {
|
|
1012
1012
|
tmp$ret$11 = element_0;
|
|
1013
1013
|
break $l$block_0;
|
|
1014
1014
|
}
|
|
@@ -1016,66 +1016,66 @@
|
|
|
1016
1016
|
tmp$ret$11 = null;
|
|
1017
1017
|
}
|
|
1018
1018
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1019
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1020
|
-
var tmp2_safe_receiver = content.
|
|
1019
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l53_1;
|
|
1020
|
+
var tmp2_safe_receiver = content.q33();
|
|
1021
1021
|
if (tmp2_safe_receiver == null)
|
|
1022
1022
|
null;
|
|
1023
1023
|
else {
|
|
1024
1024
|
// Inline function 'kotlin.let' call
|
|
1025
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
1025
|
+
var tmp_0 = HttpHeaders_getInstance().d2u_1;
|
|
1026
1026
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1027
1027
|
}
|
|
1028
|
-
var tmp3_safe_receiver = content.
|
|
1028
|
+
var tmp3_safe_receiver = content.o33();
|
|
1029
1029
|
if (tmp3_safe_receiver == null)
|
|
1030
1030
|
null;
|
|
1031
1031
|
else {
|
|
1032
1032
|
// Inline function 'kotlin.let' call
|
|
1033
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
1033
|
+
var tmp_1 = HttpHeaders_getInstance().g2u_1;
|
|
1034
1034
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1035
1035
|
}
|
|
1036
|
-
logHeaders(this_0, content.
|
|
1036
|
+
logHeaders(this_0, content.s2x().d2m(), sanitizedHeaders);
|
|
1037
1037
|
}
|
|
1038
1038
|
var message = this_0.toString();
|
|
1039
1039
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1040
1040
|
if (charSequenceLength(message) > 0) {
|
|
1041
|
-
callLogger.
|
|
1041
|
+
callLogger.p4w(message);
|
|
1042
1042
|
}
|
|
1043
1043
|
var tmp_2;
|
|
1044
1044
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1045
1045
|
if (charSequenceLength(message) === 0) {
|
|
1046
1046
|
tmp_2 = true;
|
|
1047
1047
|
} else {
|
|
1048
|
-
tmp_2 = !level.
|
|
1048
|
+
tmp_2 = !level.z4w_1;
|
|
1049
1049
|
}
|
|
1050
1050
|
if (tmp_2) {
|
|
1051
|
-
callLogger.
|
|
1051
|
+
callLogger.t4w();
|
|
1052
1052
|
return null;
|
|
1053
1053
|
}
|
|
1054
1054
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1055
1055
|
}
|
|
1056
1056
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1057
|
-
if (!level.
|
|
1057
|
+
if (!level.x4w_1)
|
|
1058
1058
|
return Unit_instance;
|
|
1059
|
-
log.f8('RESPONSE ' + request.
|
|
1059
|
+
log.f8('RESPONSE ' + request.f3h().toString() + ' failed with exception: ' + cause.toString());
|
|
1060
1060
|
}
|
|
1061
1061
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1066
|
-
this.
|
|
1067
|
-
this.
|
|
1062
|
+
this.v53_1 = $okHttpFormat;
|
|
1063
|
+
this.w53_1 = $logger;
|
|
1064
|
+
this.x53_1 = $filters;
|
|
1065
|
+
this.y53_1 = $sanitizedHeaders;
|
|
1066
|
+
this.z53_1 = $level;
|
|
1067
|
+
this.a54_1 = $this_createClientPlugin;
|
|
1068
1068
|
CoroutineImpl.call(this, resultContinuation);
|
|
1069
1069
|
}
|
|
1070
|
-
protoOf(Logging$lambda$slambda).
|
|
1071
|
-
var tmp = this.
|
|
1070
|
+
protoOf(Logging$lambda$slambda).j54 = function ($this$on, request, $completion) {
|
|
1071
|
+
var tmp = this.k54($this$on, request, $completion);
|
|
1072
1072
|
tmp.w8_1 = Unit_instance;
|
|
1073
1073
|
tmp.x8_1 = null;
|
|
1074
1074
|
return tmp.c9();
|
|
1075
1075
|
};
|
|
1076
1076
|
protoOf(Logging$lambda$slambda).p9 = function (p1, p2, $completion) {
|
|
1077
1077
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1078
|
-
return this.
|
|
1078
|
+
return this.j54(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf(Logging$lambda$slambda).c9 = function () {
|
|
1081
1081
|
var suspendResult = this.w8_1;
|
|
@@ -1085,16 +1085,16 @@
|
|
|
1085
1085
|
switch (tmp) {
|
|
1086
1086
|
case 0:
|
|
1087
1087
|
this.v8_1 = 16;
|
|
1088
|
-
if (!invoke$shouldBeLogged(this.
|
|
1089
|
-
this.
|
|
1088
|
+
if (!invoke$shouldBeLogged(this.x53_1, this.c54_1)) {
|
|
1089
|
+
this.c54_1.t3f_1.f2i(get_DisableLogging(), Unit_instance);
|
|
1090
1090
|
return Unit_instance;
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
|
-
if (this.
|
|
1093
|
+
if (this.v53_1) {
|
|
1094
1094
|
var tmp_0 = this;
|
|
1095
|
-
tmp_0.
|
|
1095
|
+
tmp_0.f54_1 = ArrayList_init_$Create$();
|
|
1096
1096
|
this.u8_1 = 10;
|
|
1097
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1097
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.y53_1, this.z53_1, this.a54_1, this.c54_1, this.f54_1, this);
|
|
1098
1098
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1099
1099
|
return suspendResult;
|
|
1100
1100
|
}
|
|
@@ -1107,14 +1107,14 @@
|
|
|
1107
1107
|
case 1:
|
|
1108
1108
|
this.v8_1 = 3;
|
|
1109
1109
|
this.u8_1 = 2;
|
|
1110
|
-
suspendResult = invoke$logRequest(this.
|
|
1110
|
+
suspendResult = invoke$logRequest(this.w53_1, this.z53_1, this.y53_1, this.c54_1, this);
|
|
1111
1111
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1112
1112
|
return suspendResult;
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
1115
|
continue $sm;
|
|
1116
1116
|
case 2:
|
|
1117
|
-
this.
|
|
1117
|
+
this.i54_1 = suspendResult;
|
|
1118
1118
|
this.v8_1 = 16;
|
|
1119
1119
|
this.u8_1 = 4;
|
|
1120
1120
|
continue $sm;
|
|
@@ -1124,7 +1124,7 @@
|
|
|
1124
1124
|
if (tmp_1 instanceof Error) {
|
|
1125
1125
|
var _unused_var__etf5q3 = this.x8_1;
|
|
1126
1126
|
var tmp_2 = this;
|
|
1127
|
-
tmp_2.
|
|
1127
|
+
tmp_2.i54_1 = null;
|
|
1128
1128
|
this.u8_1 = 4;
|
|
1129
1129
|
continue $sm;
|
|
1130
1130
|
} else {
|
|
@@ -1133,23 +1133,23 @@
|
|
|
1133
1133
|
|
|
1134
1134
|
case 4:
|
|
1135
1135
|
this.v8_1 = 16;
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1136
|
+
this.h54_1 = this.i54_1;
|
|
1137
|
+
this.g54_1 = Unit_instance;
|
|
1138
1138
|
this.u8_1 = 5;
|
|
1139
1139
|
continue $sm;
|
|
1140
1140
|
case 5:
|
|
1141
1141
|
this.v8_1 = 8;
|
|
1142
1142
|
this.v8_1 = 7;
|
|
1143
1143
|
this.u8_1 = 6;
|
|
1144
|
-
var tmp0_elvis_lhs = this.
|
|
1145
|
-
suspendResult = this.
|
|
1144
|
+
var tmp0_elvis_lhs = this.h54_1;
|
|
1145
|
+
suspendResult = this.b54_1.p4x(tmp0_elvis_lhs == null ? this.c54_1.r3f_1 : tmp0_elvis_lhs, this);
|
|
1146
1146
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1147
1147
|
return suspendResult;
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
1150
|
continue $sm;
|
|
1151
1151
|
case 6:
|
|
1152
|
-
this.
|
|
1152
|
+
this.g54_1 = suspendResult;
|
|
1153
1153
|
this.v8_1 = 16;
|
|
1154
1154
|
this.u8_1 = 9;
|
|
1155
1155
|
continue $sm;
|
|
@@ -1159,7 +1159,7 @@
|
|
|
1159
1159
|
if (tmp_3 instanceof Error) {
|
|
1160
1160
|
var cause = this.x8_1;
|
|
1161
1161
|
var tmp_4 = this;
|
|
1162
|
-
invoke$logRequestException(this.
|
|
1162
|
+
invoke$logRequestException(this.z53_1, this.w53_1, this.c54_1, cause);
|
|
1163
1163
|
throw cause;
|
|
1164
1164
|
} else {
|
|
1165
1165
|
throw this.x8_1;
|
|
@@ -1170,26 +1170,26 @@
|
|
|
1170
1170
|
var t = this.x8_1;
|
|
1171
1171
|
throw t;
|
|
1172
1172
|
case 9:
|
|
1173
|
-
this.
|
|
1173
|
+
this.g54_1;
|
|
1174
1174
|
this.v8_1 = 16;
|
|
1175
1175
|
return Unit_instance;
|
|
1176
1176
|
case 10:
|
|
1177
1177
|
var content = suspendResult;
|
|
1178
|
-
if (this.
|
|
1179
|
-
this.
|
|
1178
|
+
if (this.f54_1.u() > 0) {
|
|
1179
|
+
this.w53_1.v4v(joinToString(this.f54_1, '\n'));
|
|
1180
1180
|
}
|
|
1181
1181
|
|
|
1182
1182
|
this.v8_1 = 14;
|
|
1183
1183
|
if (!(content == null)) {
|
|
1184
1184
|
this.u8_1 = 12;
|
|
1185
|
-
suspendResult = this.
|
|
1185
|
+
suspendResult = this.b54_1.p4x(content, this);
|
|
1186
1186
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1187
1187
|
return suspendResult;
|
|
1188
1188
|
}
|
|
1189
1189
|
continue $sm;
|
|
1190
1190
|
} else {
|
|
1191
1191
|
this.u8_1 = 11;
|
|
1192
|
-
suspendResult = this.
|
|
1192
|
+
suspendResult = this.b54_1.q4x(this);
|
|
1193
1193
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1194
1194
|
return suspendResult;
|
|
1195
1195
|
}
|
|
@@ -1197,15 +1197,15 @@
|
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
1199
|
case 11:
|
|
1200
|
-
this.
|
|
1200
|
+
this.e54_1 = suspendResult;
|
|
1201
1201
|
this.u8_1 = 13;
|
|
1202
1202
|
continue $sm;
|
|
1203
1203
|
case 12:
|
|
1204
|
-
this.
|
|
1204
|
+
this.e54_1 = suspendResult;
|
|
1205
1205
|
this.u8_1 = 13;
|
|
1206
1206
|
continue $sm;
|
|
1207
1207
|
case 13:
|
|
1208
|
-
this.
|
|
1208
|
+
this.d54_1 = this.e54_1;
|
|
1209
1209
|
this.v8_1 = 16;
|
|
1210
1210
|
this.u8_1 = 15;
|
|
1211
1211
|
continue $sm;
|
|
@@ -1215,7 +1215,7 @@
|
|
|
1215
1215
|
if (tmp_5 instanceof Error) {
|
|
1216
1216
|
var cause_0 = this.x8_1;
|
|
1217
1217
|
var tmp_6 = this;
|
|
1218
|
-
this.
|
|
1218
|
+
this.w53_1.v4v('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1219
1219
|
throw cause_0;
|
|
1220
1220
|
} else {
|
|
1221
1221
|
throw this.x8_1;
|
|
@@ -1238,37 +1238,37 @@
|
|
|
1238
1238
|
}
|
|
1239
1239
|
while (true);
|
|
1240
1240
|
};
|
|
1241
|
-
protoOf(Logging$lambda$slambda).
|
|
1242
|
-
var i = new Logging$lambda$slambda(this.
|
|
1243
|
-
i.
|
|
1244
|
-
i.
|
|
1241
|
+
protoOf(Logging$lambda$slambda).k54 = function ($this$on, request, completion) {
|
|
1242
|
+
var i = new Logging$lambda$slambda(this.v53_1, this.w53_1, this.x53_1, this.y53_1, this.z53_1, this.a54_1, completion);
|
|
1243
|
+
i.b54_1 = $this$on;
|
|
1244
|
+
i.c54_1 = request;
|
|
1245
1245
|
return i;
|
|
1246
1246
|
};
|
|
1247
1247
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1248
1248
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1249
1249
|
var l = function ($this$on, request, $completion) {
|
|
1250
|
-
return i.
|
|
1250
|
+
return i.j54($this$on, request, $completion);
|
|
1251
1251
|
};
|
|
1252
1252
|
l.$arity = 2;
|
|
1253
1253
|
return l;
|
|
1254
1254
|
}
|
|
1255
1255
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1256
|
+
this.t54_1 = $okHttpFormat;
|
|
1257
|
+
this.u54_1 = $logger;
|
|
1258
|
+
this.v54_1 = $sanitizedHeaders;
|
|
1259
|
+
this.w54_1 = $level;
|
|
1260
|
+
this.x54_1 = $this_createClientPlugin;
|
|
1261
1261
|
CoroutineImpl.call(this, resultContinuation);
|
|
1262
1262
|
}
|
|
1263
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1264
|
-
var tmp = this.
|
|
1263
|
+
protoOf(Logging$lambda$slambda_1).b55 = function ($this$on, response, $completion) {
|
|
1264
|
+
var tmp = this.c55($this$on, response, $completion);
|
|
1265
1265
|
tmp.w8_1 = Unit_instance;
|
|
1266
1266
|
tmp.x8_1 = null;
|
|
1267
1267
|
return tmp.c9();
|
|
1268
1268
|
};
|
|
1269
1269
|
protoOf(Logging$lambda$slambda_1).p9 = function (p1, p2, $completion) {
|
|
1270
1270
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1271
|
-
return this.
|
|
1271
|
+
return this.b55(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1272
1272
|
};
|
|
1273
1273
|
protoOf(Logging$lambda$slambda_1).c9 = function () {
|
|
1274
1274
|
var suspendResult = this.w8_1;
|
|
@@ -1278,11 +1278,11 @@
|
|
|
1278
1278
|
switch (tmp) {
|
|
1279
1279
|
case 0:
|
|
1280
1280
|
this.v8_1 = 5;
|
|
1281
|
-
if (this.
|
|
1281
|
+
if (this.t54_1) {
|
|
1282
1282
|
var tmp_0 = this;
|
|
1283
|
-
tmp_0.
|
|
1283
|
+
tmp_0.a55_1 = ArrayList_init_$Create$();
|
|
1284
1284
|
this.u8_1 = 1;
|
|
1285
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1285
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.v54_1, this.w54_1, this.x54_1, this.z54_1, this.a55_1, this);
|
|
1286
1286
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1287
1287
|
return suspendResult;
|
|
1288
1288
|
}
|
|
@@ -1294,13 +1294,13 @@
|
|
|
1294
1294
|
|
|
1295
1295
|
case 1:
|
|
1296
1296
|
var newResponse = suspendResult;
|
|
1297
|
-
if (this.
|
|
1298
|
-
this.
|
|
1297
|
+
if (this.a55_1.u() > 0) {
|
|
1298
|
+
this.u54_1.v4v(joinToString(this.a55_1, '\n'));
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
if (!equals(newResponse, this.
|
|
1301
|
+
if (!equals(newResponse, this.z54_1)) {
|
|
1302
1302
|
this.u8_1 = 2;
|
|
1303
|
-
suspendResult = this.
|
|
1303
|
+
suspendResult = this.y54_1.w4b(newResponse, this);
|
|
1304
1304
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1305
1305
|
return suspendResult;
|
|
1306
1306
|
}
|
|
@@ -1332,35 +1332,35 @@
|
|
|
1332
1332
|
}
|
|
1333
1333
|
while (true);
|
|
1334
1334
|
};
|
|
1335
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1336
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1337
|
-
i.
|
|
1338
|
-
i.
|
|
1335
|
+
protoOf(Logging$lambda$slambda_1).c55 = function ($this$on, response, completion) {
|
|
1336
|
+
var i = new Logging$lambda$slambda_1(this.t54_1, this.u54_1, this.v54_1, this.w54_1, this.x54_1, completion);
|
|
1337
|
+
i.y54_1 = $this$on;
|
|
1338
|
+
i.z54_1 = response;
|
|
1339
1339
|
return i;
|
|
1340
1340
|
};
|
|
1341
1341
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1342
1342
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1343
1343
|
var l = function ($this$on, response, $completion) {
|
|
1344
|
-
return i.
|
|
1344
|
+
return i.b55($this$on, response, $completion);
|
|
1345
1345
|
};
|
|
1346
1346
|
l.$arity = 2;
|
|
1347
1347
|
return l;
|
|
1348
1348
|
}
|
|
1349
1349
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1350
|
+
this.l55_1 = $okHttpFormat;
|
|
1351
|
+
this.m55_1 = $level;
|
|
1352
|
+
this.n55_1 = $sanitizedHeaders;
|
|
1353
1353
|
CoroutineImpl.call(this, resultContinuation);
|
|
1354
1354
|
}
|
|
1355
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1356
|
-
var tmp = this.
|
|
1355
|
+
protoOf(Logging$lambda$slambda_3).w55 = function ($this$on, response, $completion) {
|
|
1356
|
+
var tmp = this.x55($this$on, response, $completion);
|
|
1357
1357
|
tmp.w8_1 = Unit_instance;
|
|
1358
1358
|
tmp.x8_1 = null;
|
|
1359
1359
|
return tmp.c9();
|
|
1360
1360
|
};
|
|
1361
1361
|
protoOf(Logging$lambda$slambda_3).p9 = function (p1, p2, $completion) {
|
|
1362
1362
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1363
|
-
return this.
|
|
1363
|
+
return this.w55(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1364
1364
|
};
|
|
1365
1365
|
protoOf(Logging$lambda$slambda_3).c9 = function () {
|
|
1366
1366
|
var suspendResult = this.w8_1;
|
|
@@ -1370,28 +1370,28 @@
|
|
|
1370
1370
|
switch (tmp) {
|
|
1371
1371
|
case 0:
|
|
1372
1372
|
this.v8_1 = 14;
|
|
1373
|
-
if (this.
|
|
1373
|
+
if (this.l55_1)
|
|
1374
1374
|
return Unit_instance;
|
|
1375
|
-
if (this.
|
|
1375
|
+
if (this.m55_1.equals(LogLevel_NONE_getInstance()) || this.p55_1.d3h().x3g().e2i(get_DisableLogging()))
|
|
1376
1376
|
return Unit_instance;
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1377
|
+
this.r55_1 = this.p55_1.d3h().x3g().c2i(get_ClientCallLogger());
|
|
1378
|
+
this.t55_1 = StringBuilder_init_$Create$();
|
|
1379
|
+
this.s55_1 = false;
|
|
1380
1380
|
this.u8_1 = 1;
|
|
1381
1381
|
continue $sm;
|
|
1382
1382
|
case 1:
|
|
1383
1383
|
this.v8_1 = 4;
|
|
1384
1384
|
this.v8_1 = 3;
|
|
1385
|
-
logResponseHeader(this.
|
|
1385
|
+
logResponseHeader(this.t55_1, this.p55_1.d3h().o3e(), this.m55_1, this.n55_1);
|
|
1386
1386
|
this.u8_1 = 2;
|
|
1387
|
-
suspendResult = this.
|
|
1387
|
+
suspendResult = this.o55_1.r4y(this);
|
|
1388
1388
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1389
1389
|
return suspendResult;
|
|
1390
1390
|
}
|
|
1391
1391
|
|
|
1392
1392
|
continue $sm;
|
|
1393
1393
|
case 2:
|
|
1394
|
-
this.
|
|
1394
|
+
this.u55_1 = suspendResult;
|
|
1395
1395
|
this.v8_1 = 14;
|
|
1396
1396
|
this.u8_1 = 9;
|
|
1397
1397
|
continue $sm;
|
|
@@ -1401,8 +1401,8 @@
|
|
|
1401
1401
|
if (tmp_0 instanceof Error) {
|
|
1402
1402
|
var cause = this.x8_1;
|
|
1403
1403
|
var tmp_1 = this;
|
|
1404
|
-
invoke$logResponseException(this.
|
|
1405
|
-
this.
|
|
1404
|
+
invoke$logResponseException(this.m55_1, this.t55_1, this.p55_1.d3h().w3g(), cause);
|
|
1405
|
+
this.s55_1 = true;
|
|
1406
1406
|
throw cause;
|
|
1407
1407
|
} else {
|
|
1408
1408
|
throw this.x8_1;
|
|
@@ -1410,19 +1410,19 @@
|
|
|
1410
1410
|
|
|
1411
1411
|
case 4:
|
|
1412
1412
|
this.v8_1 = 14;
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
if (this.
|
|
1413
|
+
this.v55_1 = this.x8_1;
|
|
1414
|
+
this.r55_1.q4w(this.t55_1.toString());
|
|
1415
|
+
if (this.s55_1 || !this.m55_1.z4w_1) {
|
|
1416
1416
|
this.u8_1 = 7;
|
|
1417
|
-
suspendResult = this.
|
|
1417
|
+
suspendResult = this.r55_1.u4w(this);
|
|
1418
1418
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1419
1419
|
return suspendResult;
|
|
1420
1420
|
}
|
|
1421
1421
|
continue $sm;
|
|
1422
1422
|
} else {
|
|
1423
|
-
if (this.
|
|
1423
|
+
if (this.m55_1.z4w_1 && get_isSaved(this.p55_1)) {
|
|
1424
1424
|
this.u8_1 = 5;
|
|
1425
|
-
suspendResult = logResponseBody(this.
|
|
1425
|
+
suspendResult = logResponseBody(this.r55_1, this.p55_1, this);
|
|
1426
1426
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1427
1427
|
return suspendResult;
|
|
1428
1428
|
}
|
|
@@ -1435,7 +1435,7 @@
|
|
|
1435
1435
|
|
|
1436
1436
|
case 5:
|
|
1437
1437
|
this.u8_1 = 6;
|
|
1438
|
-
suspendResult = this.
|
|
1438
|
+
suspendResult = this.r55_1.u4w(this);
|
|
1439
1439
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1440
1440
|
return suspendResult;
|
|
1441
1441
|
}
|
|
@@ -1448,22 +1448,22 @@
|
|
|
1448
1448
|
this.u8_1 = 8;
|
|
1449
1449
|
continue $sm;
|
|
1450
1450
|
case 8:
|
|
1451
|
-
throw this.
|
|
1451
|
+
throw this.v55_1;
|
|
1452
1452
|
case 9:
|
|
1453
|
-
this.
|
|
1453
|
+
this.q55_1 = this.u55_1;
|
|
1454
1454
|
this.v8_1 = 14;
|
|
1455
|
-
this.
|
|
1456
|
-
if (this.
|
|
1455
|
+
this.r55_1.q4w(this.t55_1.toString());
|
|
1456
|
+
if (this.s55_1 || !this.m55_1.z4w_1) {
|
|
1457
1457
|
this.u8_1 = 12;
|
|
1458
|
-
suspendResult = this.
|
|
1458
|
+
suspendResult = this.r55_1.u4w(this);
|
|
1459
1459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1460
1460
|
return suspendResult;
|
|
1461
1461
|
}
|
|
1462
1462
|
continue $sm;
|
|
1463
1463
|
} else {
|
|
1464
|
-
if (this.
|
|
1464
|
+
if (this.m55_1.z4w_1 && get_isSaved(this.p55_1)) {
|
|
1465
1465
|
this.u8_1 = 10;
|
|
1466
|
-
suspendResult = logResponseBody(this.
|
|
1466
|
+
suspendResult = logResponseBody(this.r55_1, this.p55_1, this);
|
|
1467
1467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1468
1468
|
return suspendResult;
|
|
1469
1469
|
}
|
|
@@ -1476,7 +1476,7 @@
|
|
|
1476
1476
|
|
|
1477
1477
|
case 10:
|
|
1478
1478
|
this.u8_1 = 11;
|
|
1479
|
-
suspendResult = this.
|
|
1479
|
+
suspendResult = this.r55_1.u4w(this);
|
|
1480
1480
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1481
1481
|
return suspendResult;
|
|
1482
1482
|
}
|
|
@@ -1504,34 +1504,34 @@
|
|
|
1504
1504
|
}
|
|
1505
1505
|
while (true);
|
|
1506
1506
|
};
|
|
1507
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1508
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1509
|
-
i.
|
|
1510
|
-
i.
|
|
1507
|
+
protoOf(Logging$lambda$slambda_3).x55 = function ($this$on, response, completion) {
|
|
1508
|
+
var i = new Logging$lambda$slambda_3(this.l55_1, this.m55_1, this.n55_1, completion);
|
|
1509
|
+
i.o55_1 = $this$on;
|
|
1510
|
+
i.p55_1 = response;
|
|
1511
1511
|
return i;
|
|
1512
1512
|
};
|
|
1513
1513
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1514
1514
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1515
1515
|
var l = function ($this$on, response, $completion) {
|
|
1516
|
-
return i.
|
|
1516
|
+
return i.w55($this$on, response, $completion);
|
|
1517
1517
|
};
|
|
1518
1518
|
l.$arity = 2;
|
|
1519
1519
|
return l;
|
|
1520
1520
|
}
|
|
1521
1521
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1522
|
+
this.g56_1 = $okHttpFormat;
|
|
1523
|
+
this.h56_1 = $level;
|
|
1524
1524
|
CoroutineImpl.call(this, resultContinuation);
|
|
1525
1525
|
}
|
|
1526
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1527
|
-
var tmp = this.
|
|
1526
|
+
protoOf(Logging$lambda$slambda_5).n56 = function ($this$on, call, $completion) {
|
|
1527
|
+
var tmp = this.o56($this$on, call, $completion);
|
|
1528
1528
|
tmp.w8_1 = Unit_instance;
|
|
1529
1529
|
tmp.x8_1 = null;
|
|
1530
1530
|
return tmp.c9();
|
|
1531
1531
|
};
|
|
1532
1532
|
protoOf(Logging$lambda$slambda_5).p9 = function (p1, p2, $completion) {
|
|
1533
1533
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1534
|
-
return this.
|
|
1534
|
+
return this.n56(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1535
1535
|
};
|
|
1536
1536
|
protoOf(Logging$lambda$slambda_5).c9 = function () {
|
|
1537
1537
|
var suspendResult = this.w8_1;
|
|
@@ -1541,22 +1541,22 @@
|
|
|
1541
1541
|
switch (tmp) {
|
|
1542
1542
|
case 0:
|
|
1543
1543
|
this.v8_1 = 6;
|
|
1544
|
-
if (this.
|
|
1544
|
+
if (this.g56_1)
|
|
1545
1545
|
return Unit_instance;
|
|
1546
|
-
if (this.
|
|
1546
|
+
if (this.h56_1.equals(LogLevel_NONE_getInstance()) || this.j56_1.x3g().e2i(get_DisableLogging())) {
|
|
1547
1547
|
return Unit_instance;
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
1550
1550
|
this.v8_1 = 2;
|
|
1551
1551
|
this.u8_1 = 1;
|
|
1552
|
-
suspendResult = this.
|
|
1552
|
+
suspendResult = this.i56_1.f4z(this);
|
|
1553
1553
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1554
1554
|
return suspendResult;
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
1557
|
continue $sm;
|
|
1558
1558
|
case 1:
|
|
1559
|
-
this.
|
|
1559
|
+
this.k56_1 = suspendResult;
|
|
1560
1560
|
this.v8_1 = 6;
|
|
1561
1561
|
this.u8_1 = 5;
|
|
1562
1562
|
continue $sm;
|
|
@@ -1564,12 +1564,12 @@
|
|
|
1564
1564
|
this.v8_1 = 6;
|
|
1565
1565
|
var tmp_0 = this.x8_1;
|
|
1566
1566
|
if (tmp_0 instanceof Error) {
|
|
1567
|
-
this.
|
|
1567
|
+
this.l56_1 = this.x8_1;
|
|
1568
1568
|
var log = StringBuilder_init_$Create$();
|
|
1569
|
-
this.
|
|
1570
|
-
invoke$logResponseException(this.
|
|
1569
|
+
this.m56_1 = this.j56_1.x3g().c2i(get_ClientCallLogger());
|
|
1570
|
+
invoke$logResponseException(this.h56_1, log, this.j56_1.w3g(), this.l56_1);
|
|
1571
1571
|
this.u8_1 = 3;
|
|
1572
|
-
suspendResult = this.
|
|
1572
|
+
suspendResult = this.m56_1.r4w(log.toString(), this);
|
|
1573
1573
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1574
1574
|
return suspendResult;
|
|
1575
1575
|
}
|
|
@@ -1580,7 +1580,7 @@
|
|
|
1580
1580
|
|
|
1581
1581
|
case 3:
|
|
1582
1582
|
this.u8_1 = 4;
|
|
1583
|
-
suspendResult = this.
|
|
1583
|
+
suspendResult = this.m56_1.u4w(this);
|
|
1584
1584
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1585
1585
|
return suspendResult;
|
|
1586
1586
|
}
|
|
@@ -1588,7 +1588,7 @@
|
|
|
1588
1588
|
continue $sm;
|
|
1589
1589
|
case 4:
|
|
1590
1590
|
var tmp_1 = this;
|
|
1591
|
-
throw this.
|
|
1591
|
+
throw this.l56_1;
|
|
1592
1592
|
case 5:
|
|
1593
1593
|
this.v8_1 = 6;
|
|
1594
1594
|
return Unit_instance;
|
|
@@ -1606,36 +1606,36 @@
|
|
|
1606
1606
|
}
|
|
1607
1607
|
while (true);
|
|
1608
1608
|
};
|
|
1609
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1610
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1611
|
-
i.
|
|
1612
|
-
i.
|
|
1609
|
+
protoOf(Logging$lambda$slambda_5).o56 = function ($this$on, call, completion) {
|
|
1610
|
+
var i = new Logging$lambda$slambda_5(this.g56_1, this.h56_1, completion);
|
|
1611
|
+
i.i56_1 = $this$on;
|
|
1612
|
+
i.j56_1 = call;
|
|
1613
1613
|
return i;
|
|
1614
1614
|
};
|
|
1615
1615
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1616
1616
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1617
1617
|
var l = function ($this$on, call, $completion) {
|
|
1618
|
-
return i.
|
|
1618
|
+
return i.n56($this$on, call, $completion);
|
|
1619
1619
|
};
|
|
1620
1620
|
l.$arity = 2;
|
|
1621
1621
|
return l;
|
|
1622
1622
|
}
|
|
1623
1623
|
function Logging$lambda$lambda$lambda(it) {
|
|
1624
1624
|
_init_properties_Logging_kt__66pui5();
|
|
1625
|
-
return !get_isSaved(it.
|
|
1625
|
+
return !get_isSaved(it.o3e());
|
|
1626
1626
|
}
|
|
1627
1627
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1628
|
-
this.
|
|
1628
|
+
this.x56_1 = $level;
|
|
1629
1629
|
CoroutineImpl.call(this, resultContinuation);
|
|
1630
1630
|
}
|
|
1631
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1632
|
-
var tmp = this.
|
|
1631
|
+
protoOf(Logging$lambda$lambda$slambda).e3q = function (response, $completion) {
|
|
1632
|
+
var tmp = this.r3o(response, $completion);
|
|
1633
1633
|
tmp.w8_1 = Unit_instance;
|
|
1634
1634
|
tmp.x8_1 = null;
|
|
1635
1635
|
return tmp.c9();
|
|
1636
1636
|
};
|
|
1637
1637
|
protoOf(Logging$lambda$lambda$slambda).o9 = function (p1, $completion) {
|
|
1638
|
-
return this.
|
|
1638
|
+
return this.e3q(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1639
1639
|
};
|
|
1640
1640
|
protoOf(Logging$lambda$lambda$slambda).c9 = function () {
|
|
1641
1641
|
var suspendResult = this.w8_1;
|
|
@@ -1645,11 +1645,11 @@
|
|
|
1645
1645
|
switch (tmp) {
|
|
1646
1646
|
case 0:
|
|
1647
1647
|
this.v8_1 = 3;
|
|
1648
|
-
if (this.
|
|
1648
|
+
if (this.x56_1.equals(LogLevel_NONE_getInstance()) || this.y56_1.d3h().x3g().e2i(get_DisableLogging()))
|
|
1649
1649
|
return Unit_instance;
|
|
1650
|
-
this.
|
|
1650
|
+
this.z56_1 = this.y56_1.d3h().x3g().c2i(get_ClientCallLogger());
|
|
1651
1651
|
this.u8_1 = 1;
|
|
1652
|
-
suspendResult = logResponseBody(this.
|
|
1652
|
+
suspendResult = logResponseBody(this.z56_1, this.y56_1, this);
|
|
1653
1653
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1654
1654
|
return suspendResult;
|
|
1655
1655
|
}
|
|
@@ -1657,7 +1657,7 @@
|
|
|
1657
1657
|
continue $sm;
|
|
1658
1658
|
case 1:
|
|
1659
1659
|
this.u8_1 = 2;
|
|
1660
|
-
suspendResult = this.
|
|
1660
|
+
suspendResult = this.z56_1.u4w(this);
|
|
1661
1661
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1662
1662
|
return suspendResult;
|
|
1663
1663
|
}
|
|
@@ -1679,41 +1679,41 @@
|
|
|
1679
1679
|
}
|
|
1680
1680
|
while (true);
|
|
1681
1681
|
};
|
|
1682
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1683
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
1684
|
-
i.
|
|
1682
|
+
protoOf(Logging$lambda$lambda$slambda).r3o = function (response, completion) {
|
|
1683
|
+
var i = new Logging$lambda$lambda$slambda(this.x56_1, completion);
|
|
1684
|
+
i.y56_1 = response;
|
|
1685
1685
|
return i;
|
|
1686
1686
|
};
|
|
1687
1687
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1688
1688
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1689
1689
|
var l = function (response, $completion) {
|
|
1690
|
-
return i.
|
|
1690
|
+
return i.e3q(response, $completion);
|
|
1691
1691
|
};
|
|
1692
1692
|
l.$arity = 1;
|
|
1693
1693
|
return l;
|
|
1694
1694
|
}
|
|
1695
1695
|
function Logging$lambda$lambda($level) {
|
|
1696
1696
|
return function ($this$prepare) {
|
|
1697
|
-
$this$prepare.
|
|
1698
|
-
$this$prepare.
|
|
1697
|
+
$this$prepare.u4b(Logging$lambda$lambda$lambda);
|
|
1698
|
+
$this$prepare.t4b(Logging$lambda$lambda$slambda_0($level, null));
|
|
1699
1699
|
return Unit_instance;
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
1702
|
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1705
|
-
this.
|
|
1706
|
-
this.
|
|
1703
|
+
this.i57_1 = $channel;
|
|
1704
|
+
this.j57_1 = $firstChunk;
|
|
1705
|
+
this.k57_1 = $firstReadSize;
|
|
1706
|
+
this.l57_1 = $body;
|
|
1707
1707
|
CoroutineImpl.call(this, resultContinuation);
|
|
1708
1708
|
}
|
|
1709
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1710
|
-
var tmp = this.
|
|
1709
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).o57 = function ($this$async, $completion) {
|
|
1710
|
+
var tmp = this.n1v($this$async, $completion);
|
|
1711
1711
|
tmp.w8_1 = Unit_instance;
|
|
1712
1712
|
tmp.x8_1 = null;
|
|
1713
1713
|
return tmp.c9();
|
|
1714
1714
|
};
|
|
1715
1715
|
protoOf(Logging$lambda$detectIfBinary$slambda).o9 = function (p1, $completion) {
|
|
1716
|
-
return this.
|
|
1716
|
+
return this.o57((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1717
1717
|
};
|
|
1718
1718
|
protoOf(Logging$lambda$detectIfBinary$slambda).c9 = function () {
|
|
1719
1719
|
var suspendResult = this.w8_1;
|
|
@@ -1724,7 +1724,7 @@
|
|
|
1724
1724
|
case 0:
|
|
1725
1725
|
this.v8_1 = 4;
|
|
1726
1726
|
this.u8_1 = 1;
|
|
1727
|
-
suspendResult = writeFully(this.
|
|
1727
|
+
suspendResult = writeFully(this.i57_1, this.j57_1, 0, this.k57_1, this);
|
|
1728
1728
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1729
1729
|
return suspendResult;
|
|
1730
1730
|
}
|
|
@@ -1732,23 +1732,23 @@
|
|
|
1732
1732
|
continue $sm;
|
|
1733
1733
|
case 1:
|
|
1734
1734
|
this.u8_1 = 2;
|
|
1735
|
-
suspendResult = copyTo(this.
|
|
1735
|
+
suspendResult = copyTo(this.l57_1, this.i57_1, this);
|
|
1736
1736
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1737
1737
|
return suspendResult;
|
|
1738
1738
|
}
|
|
1739
1739
|
|
|
1740
1740
|
continue $sm;
|
|
1741
1741
|
case 2:
|
|
1742
|
-
this.
|
|
1742
|
+
this.n57_1 = suspendResult;
|
|
1743
1743
|
this.u8_1 = 3;
|
|
1744
|
-
suspendResult = this.
|
|
1744
|
+
suspendResult = this.i57_1.n1m(this);
|
|
1745
1745
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1746
1746
|
return suspendResult;
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
1749
|
continue $sm;
|
|
1750
1750
|
case 3:
|
|
1751
|
-
return this.
|
|
1751
|
+
return this.n57_1;
|
|
1752
1752
|
case 4:
|
|
1753
1753
|
throw this.x8_1;
|
|
1754
1754
|
}
|
|
@@ -1763,15 +1763,15 @@
|
|
|
1763
1763
|
}
|
|
1764
1764
|
while (true);
|
|
1765
1765
|
};
|
|
1766
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1767
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.
|
|
1768
|
-
i.
|
|
1766
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).n1v = function ($this$async, completion) {
|
|
1767
|
+
var i = new Logging$lambda$detectIfBinary$slambda(this.i57_1, this.j57_1, this.k57_1, this.l57_1, completion);
|
|
1768
|
+
i.m57_1 = $this$async;
|
|
1769
1769
|
return i;
|
|
1770
1770
|
};
|
|
1771
1771
|
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1772
1772
|
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
1773
1773
|
var l = function ($this$async, $completion) {
|
|
1774
|
-
return i.
|
|
1774
|
+
return i.o57($this$async, $completion);
|
|
1775
1775
|
};
|
|
1776
1776
|
l.$arity = 1;
|
|
1777
1777
|
return l;
|
|
@@ -1781,18 +1781,18 @@
|
|
|
1781
1781
|
return it;
|
|
1782
1782
|
}
|
|
1783
1783
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1784
|
-
this.
|
|
1785
|
-
this.
|
|
1784
|
+
this.x57_1 = $content;
|
|
1785
|
+
this.y57_1 = $channel;
|
|
1786
1786
|
CoroutineImpl.call(this, resultContinuation);
|
|
1787
1787
|
}
|
|
1788
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1789
|
-
var tmp = this.
|
|
1788
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).m1v = function ($this$launch, $completion) {
|
|
1789
|
+
var tmp = this.n1v($this$launch, $completion);
|
|
1790
1790
|
tmp.w8_1 = Unit_instance;
|
|
1791
1791
|
tmp.x8_1 = null;
|
|
1792
1792
|
return tmp.c9();
|
|
1793
1793
|
};
|
|
1794
1794
|
protoOf(Logging$lambda$logOutgoingContent$slambda).o9 = function (p1, $completion) {
|
|
1795
|
-
return this.
|
|
1795
|
+
return this.m1v((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1796
1796
|
};
|
|
1797
1797
|
protoOf(Logging$lambda$logOutgoingContent$slambda).c9 = function () {
|
|
1798
1798
|
var suspendResult = this.w8_1;
|
|
@@ -1803,14 +1803,14 @@
|
|
|
1803
1803
|
case 0:
|
|
1804
1804
|
this.v8_1 = 2;
|
|
1805
1805
|
this.u8_1 = 1;
|
|
1806
|
-
suspendResult = this.
|
|
1806
|
+
suspendResult = this.x57_1.w33(this.y57_1, this);
|
|
1807
1807
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1808
1808
|
return suspendResult;
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
1811
|
continue $sm;
|
|
1812
1812
|
case 1:
|
|
1813
|
-
this.
|
|
1813
|
+
this.y57_1.b4();
|
|
1814
1814
|
return Unit_instance;
|
|
1815
1815
|
case 2:
|
|
1816
1816
|
throw this.x8_1;
|
|
@@ -1826,22 +1826,22 @@
|
|
|
1826
1826
|
}
|
|
1827
1827
|
while (true);
|
|
1828
1828
|
};
|
|
1829
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1830
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1831
|
-
i.
|
|
1829
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).n1v = function ($this$launch, completion) {
|
|
1830
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.x57_1, this.y57_1, completion);
|
|
1831
|
+
i.z57_1 = $this$launch;
|
|
1832
1832
|
return i;
|
|
1833
1833
|
};
|
|
1834
1834
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1835
1835
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1836
1836
|
var l = function ($this$launch, $completion) {
|
|
1837
|
-
return i.
|
|
1837
|
+
return i.m1v($this$launch, $completion);
|
|
1838
1838
|
};
|
|
1839
1839
|
l.$arity = 1;
|
|
1840
1840
|
return l;
|
|
1841
1841
|
}
|
|
1842
1842
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1843
1843
|
_init_properties_Logging_kt__66pui5();
|
|
1844
|
-
return GZipEncoder_getInstance().
|
|
1844
|
+
return GZipEncoder_getInstance().p2l(channel);
|
|
1845
1845
|
}
|
|
1846
1846
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1847
1847
|
return function ($this$replaceResponse) {
|
|
@@ -1849,20 +1849,20 @@
|
|
|
1849
1849
|
};
|
|
1850
1850
|
}
|
|
1851
1851
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1852
|
-
this.
|
|
1853
|
-
this.
|
|
1854
|
-
this.
|
|
1855
|
-
this.
|
|
1852
|
+
this.i58_1 = $channel;
|
|
1853
|
+
this.j58_1 = $charset;
|
|
1854
|
+
this.k58_1 = $requestLog;
|
|
1855
|
+
this.l58_1 = $logger;
|
|
1856
1856
|
CoroutineImpl.call(this, resultContinuation);
|
|
1857
1857
|
}
|
|
1858
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1859
|
-
var tmp = this.
|
|
1858
|
+
protoOf(Logging$lambda$logRequestBody$slambda).m1v = function ($this$launch, $completion) {
|
|
1859
|
+
var tmp = this.n1v($this$launch, $completion);
|
|
1860
1860
|
tmp.w8_1 = Unit_instance;
|
|
1861
1861
|
tmp.x8_1 = null;
|
|
1862
1862
|
return tmp.c9();
|
|
1863
1863
|
};
|
|
1864
1864
|
protoOf(Logging$lambda$logRequestBody$slambda).o9 = function (p1, $completion) {
|
|
1865
|
-
return this.
|
|
1865
|
+
return this.m1v((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1866
1866
|
};
|
|
1867
1867
|
protoOf(Logging$lambda$logRequestBody$slambda).c9 = function () {
|
|
1868
1868
|
var suspendResult = this.w8_1;
|
|
@@ -1876,8 +1876,8 @@
|
|
|
1876
1876
|
continue $sm;
|
|
1877
1877
|
case 1:
|
|
1878
1878
|
this.v8_1 = 6;
|
|
1879
|
-
var tmp0 = this.
|
|
1880
|
-
this.
|
|
1879
|
+
var tmp0 = this.i58_1;
|
|
1880
|
+
this.p58_1 = this.j58_1;
|
|
1881
1881
|
this.v8_1 = 3;
|
|
1882
1882
|
this.u8_1 = 2;
|
|
1883
1883
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1888,7 +1888,7 @@
|
|
|
1888
1888
|
continue $sm;
|
|
1889
1889
|
case 2:
|
|
1890
1890
|
var ARGUMENT = suspendResult;
|
|
1891
|
-
this.
|
|
1891
|
+
this.o58_1 = readText(ARGUMENT, this.p58_1);
|
|
1892
1892
|
this.v8_1 = 6;
|
|
1893
1893
|
this.u8_1 = 4;
|
|
1894
1894
|
continue $sm;
|
|
@@ -1898,7 +1898,7 @@
|
|
|
1898
1898
|
if (tmp_0 instanceof Error) {
|
|
1899
1899
|
var cause = this.x8_1;
|
|
1900
1900
|
var tmp_1 = this;
|
|
1901
|
-
tmp_1.
|
|
1901
|
+
tmp_1.o58_1 = null;
|
|
1902
1902
|
this.u8_1 = 4;
|
|
1903
1903
|
continue $sm;
|
|
1904
1904
|
} else {
|
|
@@ -1907,27 +1907,27 @@
|
|
|
1907
1907
|
|
|
1908
1908
|
case 4:
|
|
1909
1909
|
this.v8_1 = 6;
|
|
1910
|
-
var tmp0_elvis_lhs = this.
|
|
1910
|
+
var tmp0_elvis_lhs = this.o58_1;
|
|
1911
1911
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1912
|
-
var tmp0_0 = this.
|
|
1912
|
+
var tmp0_0 = this.k58_1;
|
|
1913
1913
|
var value = 'BODY START';
|
|
1914
1914
|
tmp0_0.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
1915
|
-
this.
|
|
1916
|
-
this.
|
|
1915
|
+
this.k58_1.f8(text).g8(_Char___init__impl__6a9atx(10));
|
|
1916
|
+
this.n58_1 = this.k58_1.f8('BODY END');
|
|
1917
1917
|
this.v8_1 = 7;
|
|
1918
1918
|
this.u8_1 = 5;
|
|
1919
1919
|
continue $sm;
|
|
1920
1920
|
case 5:
|
|
1921
|
-
this.
|
|
1921
|
+
this.n58_1;
|
|
1922
1922
|
this.v8_1 = 7;
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1923
|
+
this.l58_1.p4w(this.k58_1.toString());
|
|
1924
|
+
this.l58_1.t4w();
|
|
1925
1925
|
return Unit_instance;
|
|
1926
1926
|
case 6:
|
|
1927
1927
|
this.v8_1 = 7;
|
|
1928
1928
|
var t = this.x8_1;
|
|
1929
|
-
this.
|
|
1930
|
-
this.
|
|
1929
|
+
this.l58_1.p4w(this.k58_1.toString());
|
|
1930
|
+
this.l58_1.t4w();
|
|
1931
1931
|
throw t;
|
|
1932
1932
|
case 7:
|
|
1933
1933
|
throw this.x8_1;
|
|
@@ -1943,26 +1943,26 @@
|
|
|
1943
1943
|
}
|
|
1944
1944
|
while (true);
|
|
1945
1945
|
};
|
|
1946
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1947
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1948
|
-
i.
|
|
1946
|
+
protoOf(Logging$lambda$logRequestBody$slambda).n1v = function ($this$launch, completion) {
|
|
1947
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.i58_1, this.j58_1, this.k58_1, this.l58_1, completion);
|
|
1948
|
+
i.m58_1 = $this$launch;
|
|
1949
1949
|
return i;
|
|
1950
1950
|
};
|
|
1951
1951
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1952
1952
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1953
1953
|
var l = function ($this$launch, $completion) {
|
|
1954
|
-
return i.
|
|
1954
|
+
return i.m1v($this$launch, $completion);
|
|
1955
1955
|
};
|
|
1956
1956
|
l.$arity = 1;
|
|
1957
1957
|
return l;
|
|
1958
1958
|
}
|
|
1959
1959
|
function $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, resultContinuation) {
|
|
1960
1960
|
CoroutineImpl.call(this, resultContinuation);
|
|
1961
|
-
this.
|
|
1962
|
-
this.
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1961
|
+
this.a50_1 = $this_createClientPlugin;
|
|
1962
|
+
this.b50_1 = body;
|
|
1963
|
+
this.c50_1 = contentLength;
|
|
1964
|
+
this.d50_1 = contentType;
|
|
1965
|
+
this.e50_1 = headers;
|
|
1966
1966
|
}
|
|
1967
1967
|
protoOf($invoke$detectIfBinaryCOROUTINE$).c9 = function () {
|
|
1968
1968
|
var suspendResult = this.w8_1;
|
|
@@ -1972,46 +1972,46 @@
|
|
|
1972
1972
|
switch (tmp) {
|
|
1973
1973
|
case 0:
|
|
1974
1974
|
this.v8_1 = 4;
|
|
1975
|
-
if (this.
|
|
1976
|
-
return new Triple(true, this.
|
|
1975
|
+
if (this.e50_1.b2m(HttpHeaders_getInstance().b2u_1)) {
|
|
1976
|
+
return new Triple(true, this.c50_1, this.b50_1);
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
1979
1979
|
var tmp_0 = this;
|
|
1980
1980
|
var tmp_1;
|
|
1981
|
-
if (!(this.
|
|
1982
|
-
var tmp0_elvis_lhs = charset(this.
|
|
1983
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
1981
|
+
if (!(this.d50_1 == null)) {
|
|
1982
|
+
var tmp0_elvis_lhs = charset(this.d50_1);
|
|
1983
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().h1w_1 : tmp0_elvis_lhs;
|
|
1984
1984
|
} else {
|
|
1985
|
-
tmp_1 = Charsets_getInstance().
|
|
1985
|
+
tmp_1 = Charsets_getInstance().h1w_1;
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
|
-
tmp_0.
|
|
1989
|
-
this.
|
|
1990
|
-
this.
|
|
1988
|
+
tmp_0.j50_1 = tmp_1;
|
|
1989
|
+
this.h50_1 = false;
|
|
1990
|
+
this.i50_1 = new Int8Array(1024);
|
|
1991
1991
|
this.u8_1 = 1;
|
|
1992
|
-
suspendResult = readAvailable(this.
|
|
1992
|
+
suspendResult = readAvailable(this.b50_1, this.i50_1, VOID, VOID, this);
|
|
1993
1993
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1994
1994
|
return suspendResult;
|
|
1995
1995
|
}
|
|
1996
1996
|
|
|
1997
1997
|
continue $sm;
|
|
1998
1998
|
case 1:
|
|
1999
|
-
this.
|
|
2000
|
-
if (this.
|
|
2001
|
-
return new Triple(false, new Long(0, 0), this.
|
|
1999
|
+
this.g50_1 = suspendResult;
|
|
2000
|
+
if (this.g50_1 < 1) {
|
|
2001
|
+
return new Triple(false, new Long(0, 0), this.b50_1);
|
|
2002
2002
|
}
|
|
2003
2003
|
|
|
2004
2004
|
var this_0 = new Buffer();
|
|
2005
|
-
writeFully_0(this_0, this.
|
|
2005
|
+
writeFully_0(this_0, this.i50_1, 0, this.g50_1);
|
|
2006
2006
|
var buffer = this_0;
|
|
2007
2007
|
var tmp_2;
|
|
2008
2008
|
try {
|
|
2009
|
-
tmp_2 = decode(this.
|
|
2009
|
+
tmp_2 = decode(this.j50_1.k1w(), buffer);
|
|
2010
2010
|
} catch ($p) {
|
|
2011
2011
|
var tmp_3;
|
|
2012
2012
|
if ($p instanceof MalformedInputException) {
|
|
2013
2013
|
var _unused_var__etf5q3 = $p;
|
|
2014
|
-
this.
|
|
2014
|
+
this.h50_1 = true;
|
|
2015
2015
|
tmp_3 = '';
|
|
2016
2016
|
} else {
|
|
2017
2017
|
throw $p;
|
|
@@ -2020,7 +2020,7 @@
|
|
|
2020
2020
|
}
|
|
2021
2021
|
|
|
2022
2022
|
var firstChunkText = tmp_2;
|
|
2023
|
-
if (!this.
|
|
2023
|
+
if (!this.h50_1) {
|
|
2024
2024
|
var lastCharIndex = -1;
|
|
2025
2025
|
var inductionVariable = 0;
|
|
2026
2026
|
var last = firstChunkText.length;
|
|
@@ -2036,16 +2036,16 @@
|
|
|
2036
2036
|
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
2037
2037
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2038
2038
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
2039
|
-
this.
|
|
2039
|
+
this.h50_1 = true;
|
|
2040
2040
|
break $l$loop;
|
|
2041
2041
|
}
|
|
2042
2042
|
}
|
|
2043
2043
|
}
|
|
2044
2044
|
|
|
2045
|
-
if (!this.
|
|
2046
|
-
this.
|
|
2045
|
+
if (!this.h50_1) {
|
|
2046
|
+
this.f50_1 = new ByteChannel();
|
|
2047
2047
|
this.u8_1 = 3;
|
|
2048
|
-
suspendResult = async(this.
|
|
2048
|
+
suspendResult = async(this.a50_1.q3n_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.f50_1, this.i50_1, this.g50_1, this.b50_1, null)).qx(this);
|
|
2049
2049
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2050
2050
|
return suspendResult;
|
|
2051
2051
|
}
|
|
@@ -2056,12 +2056,12 @@
|
|
|
2056
2056
|
}
|
|
2057
2057
|
|
|
2058
2058
|
case 2:
|
|
2059
|
-
return new Triple(this.
|
|
2059
|
+
return new Triple(this.h50_1, this.c50_1, this.b50_1);
|
|
2060
2060
|
case 3:
|
|
2061
2061
|
var copied = suspendResult;
|
|
2062
|
-
var tmp_4 = this.
|
|
2063
|
-
var other = this.
|
|
2064
|
-
return new Triple(tmp_4, add(copied, fromInt(other)), this.
|
|
2062
|
+
var tmp_4 = this.h50_1;
|
|
2063
|
+
var other = this.g50_1;
|
|
2064
|
+
return new Triple(tmp_4, add(copied, fromInt(other)), this.f50_1);
|
|
2065
2065
|
case 4:
|
|
2066
2066
|
throw this.x8_1;
|
|
2067
2067
|
}
|
|
@@ -2078,13 +2078,13 @@
|
|
|
2078
2078
|
};
|
|
2079
2079
|
function $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2080
2080
|
CoroutineImpl.call(this, resultContinuation);
|
|
2081
|
-
this.
|
|
2082
|
-
this.
|
|
2083
|
-
this.
|
|
2084
|
-
this.
|
|
2085
|
-
this.
|
|
2086
|
-
this.
|
|
2087
|
-
this.
|
|
2081
|
+
this.s50_1 = $this_createClientPlugin;
|
|
2082
|
+
this.t50_1 = content;
|
|
2083
|
+
this.u50_1 = contentLength;
|
|
2084
|
+
this.v50_1 = headers;
|
|
2085
|
+
this.w50_1 = method;
|
|
2086
|
+
this.x50_1 = logLines;
|
|
2087
|
+
this.y50_1 = body;
|
|
2088
2088
|
}
|
|
2089
2089
|
protoOf($invoke$logRequestBodyCOROUTINE$).c9 = function () {
|
|
2090
2090
|
var suspendResult = this.w8_1;
|
|
@@ -2095,7 +2095,7 @@
|
|
|
2095
2095
|
case 0:
|
|
2096
2096
|
this.v8_1 = 4;
|
|
2097
2097
|
this.u8_1 = 1;
|
|
2098
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2098
|
+
suspendResult = invoke$detectIfBinary(this.s50_1, this.y50_1, this.u50_1, this.t50_1.o33(), this.v50_1, this);
|
|
2099
2099
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2100
2100
|
return suspendResult;
|
|
2101
2101
|
}
|
|
@@ -2104,19 +2104,19 @@
|
|
|
2104
2104
|
case 1:
|
|
2105
2105
|
var _destruct__k2r9zo = suspendResult;
|
|
2106
2106
|
var isBinary = _destruct__k2r9zo.ig();
|
|
2107
|
-
this.
|
|
2108
|
-
var newBody = _destruct__k2r9zo.
|
|
2107
|
+
this.a51_1 = _destruct__k2r9zo.jg();
|
|
2108
|
+
var newBody = _destruct__k2r9zo.em();
|
|
2109
2109
|
if (!isBinary) {
|
|
2110
|
-
var contentType = this.
|
|
2110
|
+
var contentType = this.t50_1.o33();
|
|
2111
2111
|
var tmp_0 = this;
|
|
2112
2112
|
var tmp_1;
|
|
2113
2113
|
if (!(contentType == null)) {
|
|
2114
2114
|
var tmp0_elvis_lhs = charset(contentType);
|
|
2115
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2115
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().h1w_1 : tmp0_elvis_lhs;
|
|
2116
2116
|
} else {
|
|
2117
|
-
tmp_1 = Charsets_getInstance().
|
|
2117
|
+
tmp_1 = Charsets_getInstance().h1w_1;
|
|
2118
2118
|
}
|
|
2119
|
-
tmp_0.
|
|
2119
|
+
tmp_0.b51_1 = tmp_1;
|
|
2120
2120
|
this.u8_1 = 2;
|
|
2121
2121
|
suspendResult = readRemaining(newBody, this);
|
|
2122
2122
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2126,25 +2126,25 @@
|
|
|
2126
2126
|
} else {
|
|
2127
2127
|
var tmp_2 = this;
|
|
2128
2128
|
var type = 'binary';
|
|
2129
|
-
if (this.
|
|
2129
|
+
if (this.v50_1.b2m(HttpHeaders_getInstance().b2u_1)) {
|
|
2130
2130
|
type = 'encoded';
|
|
2131
2131
|
}
|
|
2132
2132
|
var tmp_3;
|
|
2133
|
-
if (!(this.
|
|
2134
|
-
tmp_3 = this.
|
|
2133
|
+
if (!(this.a51_1 == null)) {
|
|
2134
|
+
tmp_3 = this.x50_1.p('--> END ' + this.w50_1.b2y_1 + ' (' + type + ' ' + this.a51_1.toString() + '-byte body omitted)');
|
|
2135
2135
|
} else {
|
|
2136
|
-
tmp_3 = this.
|
|
2136
|
+
tmp_3 = this.x50_1.p('--> END ' + this.w50_1.b2y_1 + ' (' + type + ' body omitted)');
|
|
2137
2137
|
}
|
|
2138
|
-
tmp_2.
|
|
2138
|
+
tmp_2.z50_1 = tmp_3;
|
|
2139
2139
|
this.u8_1 = 3;
|
|
2140
2140
|
continue $sm;
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
2143
|
case 2:
|
|
2144
2144
|
var ARGUMENT = suspendResult;
|
|
2145
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2146
|
-
this.
|
|
2147
|
-
this.
|
|
2145
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.b51_1);
|
|
2146
|
+
this.x50_1.p(ARGUMENT_0);
|
|
2147
|
+
this.z50_1 = this.x50_1.p('--> END ' + this.w50_1.b2y_1 + ' (' + toString_0(this.a51_1) + '-byte body)');
|
|
2148
2148
|
this.u8_1 = 3;
|
|
2149
2149
|
continue $sm;
|
|
2150
2150
|
case 3:
|
|
@@ -2165,12 +2165,12 @@
|
|
|
2165
2165
|
};
|
|
2166
2166
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2167
2167
|
CoroutineImpl.call(this, resultContinuation);
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2170
|
-
this.
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2168
|
+
this.k51_1 = $this_createClientPlugin;
|
|
2169
|
+
this.l51_1 = content;
|
|
2170
|
+
this.m51_1 = method;
|
|
2171
|
+
this.n51_1 = headers;
|
|
2172
|
+
this.o51_1 = logLines;
|
|
2173
|
+
this.p51_1 = process;
|
|
2174
2174
|
}
|
|
2175
2175
|
protoOf($invoke$logOutgoingContentCOROUTINE$).c9 = function () {
|
|
2176
2176
|
var suspendResult = this.w8_1;
|
|
@@ -2180,11 +2180,11 @@
|
|
|
2180
2180
|
switch (tmp) {
|
|
2181
2181
|
case 0:
|
|
2182
2182
|
this.v8_1 = 6;
|
|
2183
|
-
var tmp0_subject = this.
|
|
2183
|
+
var tmp0_subject = this.l51_1;
|
|
2184
2184
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2185
|
-
var bytes = this.
|
|
2185
|
+
var bytes = this.l51_1.r33();
|
|
2186
2186
|
this.u8_1 = 4;
|
|
2187
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2187
|
+
suspendResult = invoke$logRequestBody(this.k51_1, this.l51_1, fromInt(bytes.length), this.n51_1, this.m51_1, this.o51_1, ByteReadChannel(bytes), this);
|
|
2188
2188
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2189
2189
|
return suspendResult;
|
|
2190
2190
|
}
|
|
@@ -2192,7 +2192,7 @@
|
|
|
2192
2192
|
} else {
|
|
2193
2193
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2194
2194
|
this.u8_1 = 3;
|
|
2195
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2195
|
+
suspendResult = invoke$logOutgoingContent(this.k51_1, this.l51_1.a34(), this.m51_1, this.n51_1, this.o51_1, this.p51_1, this);
|
|
2196
2196
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2197
2197
|
return suspendResult;
|
|
2198
2198
|
}
|
|
@@ -2200,24 +2200,24 @@
|
|
|
2200
2200
|
} else {
|
|
2201
2201
|
if (tmp0_subject instanceof NoContent) {
|
|
2202
2202
|
var tmp_0 = this;
|
|
2203
|
-
this.
|
|
2204
|
-
tmp_0.
|
|
2203
|
+
this.o51_1.p('--> END ' + this.m51_1.b2y_1);
|
|
2204
|
+
tmp_0.q51_1 = null;
|
|
2205
2205
|
this.u8_1 = 5;
|
|
2206
2206
|
continue $sm;
|
|
2207
2207
|
} else {
|
|
2208
2208
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2209
2209
|
var tmp_1 = this;
|
|
2210
|
-
this.
|
|
2211
|
-
tmp_1.
|
|
2210
|
+
this.o51_1.p('--> END ' + this.m51_1.b2y_1);
|
|
2211
|
+
tmp_1.q51_1 = null;
|
|
2212
2212
|
this.u8_1 = 5;
|
|
2213
2213
|
continue $sm;
|
|
2214
2214
|
} else {
|
|
2215
2215
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2216
|
-
var _destruct__k2r9zo = split(this.
|
|
2217
|
-
this.
|
|
2216
|
+
var _destruct__k2r9zo = split(this.l51_1.u33(), this.k51_1.q3n_1);
|
|
2217
|
+
this.r51_1 = _destruct__k2r9zo.ig();
|
|
2218
2218
|
var newChannel = _destruct__k2r9zo.jg();
|
|
2219
2219
|
this.u8_1 = 2;
|
|
2220
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2220
|
+
suspendResult = invoke$logRequestBody(this.k51_1, this.l51_1, this.l51_1.q33(), this.n51_1, this.m51_1, this.o51_1, newChannel, this);
|
|
2221
2221
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2222
2222
|
return suspendResult;
|
|
2223
2223
|
}
|
|
@@ -2225,12 +2225,12 @@
|
|
|
2225
2225
|
} else {
|
|
2226
2226
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2227
2227
|
var channel = new ByteChannel();
|
|
2228
|
-
launch(this.
|
|
2229
|
-
var _destruct__k2r9zo_0 = split(channel, this.
|
|
2230
|
-
this.
|
|
2228
|
+
launch(this.k51_1.q3n_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.l51_1, channel, null));
|
|
2229
|
+
var _destruct__k2r9zo_0 = split(channel, this.k51_1.q3n_1);
|
|
2230
|
+
this.s51_1 = _destruct__k2r9zo_0.ig();
|
|
2231
2231
|
var newChannel_0 = _destruct__k2r9zo_0.jg();
|
|
2232
2232
|
this.u8_1 = 1;
|
|
2233
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2233
|
+
suspendResult = invoke$logRequestBody(this.k51_1, this.l51_1, this.l51_1.q33(), this.n51_1, this.m51_1, this.o51_1, newChannel_0, this);
|
|
2234
2234
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2235
2235
|
return suspendResult;
|
|
2236
2236
|
}
|
|
@@ -2247,23 +2247,23 @@
|
|
|
2247
2247
|
|
|
2248
2248
|
break;
|
|
2249
2249
|
case 1:
|
|
2250
|
-
this.
|
|
2250
|
+
this.q51_1 = new LoggedContent(this.l51_1, this.s51_1);
|
|
2251
2251
|
this.u8_1 = 5;
|
|
2252
2252
|
continue $sm;
|
|
2253
2253
|
case 2:
|
|
2254
|
-
this.
|
|
2254
|
+
this.q51_1 = new LoggedContent(this.l51_1, this.r51_1);
|
|
2255
2255
|
this.u8_1 = 5;
|
|
2256
2256
|
continue $sm;
|
|
2257
2257
|
case 3:
|
|
2258
|
-
this.
|
|
2258
|
+
this.q51_1 = suspendResult;
|
|
2259
2259
|
this.u8_1 = 5;
|
|
2260
2260
|
continue $sm;
|
|
2261
2261
|
case 4:
|
|
2262
|
-
this.
|
|
2262
|
+
this.q51_1 = null;
|
|
2263
2263
|
this.u8_1 = 5;
|
|
2264
2264
|
continue $sm;
|
|
2265
2265
|
case 5:
|
|
2266
|
-
return this.
|
|
2266
|
+
return this.q51_1;
|
|
2267
2267
|
case 6:
|
|
2268
2268
|
throw this.x8_1;
|
|
2269
2269
|
}
|
|
@@ -2280,11 +2280,11 @@
|
|
|
2280
2280
|
};
|
|
2281
2281
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2282
2282
|
CoroutineImpl.call(this, resultContinuation);
|
|
2283
|
-
this.
|
|
2284
|
-
this.
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2283
|
+
this.b52_1 = sanitizedHeaders;
|
|
2284
|
+
this.c52_1 = level;
|
|
2285
|
+
this.d52_1 = $this_createClientPlugin;
|
|
2286
|
+
this.e52_1 = request;
|
|
2287
|
+
this.f52_1 = logLines;
|
|
2288
2288
|
}
|
|
2289
2289
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).c9 = function () {
|
|
2290
2290
|
var suspendResult = this.w8_1;
|
|
@@ -2294,22 +2294,22 @@
|
|
|
2294
2294
|
switch (tmp) {
|
|
2295
2295
|
case 0:
|
|
2296
2296
|
this.v8_1 = 4;
|
|
2297
|
-
if (invoke$isNone(this.
|
|
2297
|
+
if (invoke$isNone(this.c52_1))
|
|
2298
2298
|
return null;
|
|
2299
|
-
var uri = pathQuery(takeFrom(new URLBuilder(), this.
|
|
2300
|
-
var body = this.
|
|
2299
|
+
var uri = pathQuery(takeFrom(new URLBuilder(), this.e52_1.o3f_1).n2t());
|
|
2300
|
+
var body = this.e52_1.r3f_1;
|
|
2301
2301
|
var this_0 = new HeadersBuilder();
|
|
2302
2302
|
var tmp_0;
|
|
2303
2303
|
var tmp_1;
|
|
2304
2304
|
var tmp_2;
|
|
2305
2305
|
if (body instanceof OutgoingContent) {
|
|
2306
|
-
tmp_2 = !this.
|
|
2306
|
+
tmp_2 = !this.e52_1.p3f_1.equals(Companion_getInstance().t2x_1);
|
|
2307
2307
|
} else {
|
|
2308
2308
|
tmp_2 = false;
|
|
2309
2309
|
}
|
|
2310
2310
|
|
|
2311
2311
|
if (tmp_2) {
|
|
2312
|
-
tmp_1 = !this.
|
|
2312
|
+
tmp_1 = !this.e52_1.p3f_1.equals(Companion_getInstance().y2x_1);
|
|
2313
2313
|
} else {
|
|
2314
2314
|
tmp_1 = false;
|
|
2315
2315
|
}
|
|
@@ -2321,30 +2321,30 @@
|
|
|
2321
2321
|
}
|
|
2322
2322
|
|
|
2323
2323
|
if (tmp_0) {
|
|
2324
|
-
var tmp0_safe_receiver = body.
|
|
2324
|
+
var tmp0_safe_receiver = body.o33();
|
|
2325
2325
|
if (tmp0_safe_receiver == null)
|
|
2326
2326
|
null;
|
|
2327
2327
|
else {
|
|
2328
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2328
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().g2u_1, tmp0_safe_receiver.toString());
|
|
2329
2329
|
}
|
|
2330
|
-
var tmp1_safe_receiver = body.
|
|
2330
|
+
var tmp1_safe_receiver = body.q33();
|
|
2331
2331
|
if (tmp1_safe_receiver == null)
|
|
2332
2332
|
null;
|
|
2333
2333
|
else {
|
|
2334
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2334
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().d2u_1, tmp1_safe_receiver.toString());
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
|
-
appendAll(this_0, this.
|
|
2339
|
-
var headers = this_0.
|
|
2340
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2338
|
+
appendAll(this_0, this.e52_1.q3f_1);
|
|
2339
|
+
var headers = this_0.n2t();
|
|
2340
|
+
var tmp0_safe_receiver_0 = headers.u2k(HttpHeaders_getInstance().d2u_1);
|
|
2341
2341
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2342
2342
|
var tmp_3;
|
|
2343
|
-
if (this.
|
|
2344
|
-
tmp_3 = '--> ' + this.
|
|
2343
|
+
if (this.e52_1.p3f_1.equals(Companion_getInstance().t2x_1) || this.e52_1.p3f_1.equals(Companion_getInstance().y2x_1) || ((invoke$isHeaders(this.c52_1) || invoke$isBody(this.c52_1)) && !(contentLength == null)) || (invoke$isHeaders(this.c52_1) && contentLength == null) || headers.b2m(HttpHeaders_getInstance().b2u_1)) {
|
|
2344
|
+
tmp_3 = '--> ' + this.e52_1.p3f_1.b2y_1 + ' ' + uri;
|
|
2345
2345
|
} else {
|
|
2346
|
-
if (invoke$isInfo(this.
|
|
2347
|
-
tmp_3 = '--> ' + this.
|
|
2346
|
+
if (invoke$isInfo(this.c52_1) && !(contentLength == null)) {
|
|
2347
|
+
tmp_3 = '--> ' + this.e52_1.p3f_1.b2y_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2348
2348
|
} else {
|
|
2349
2349
|
var tmp_4;
|
|
2350
2350
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2353,32 +2353,32 @@
|
|
|
2353
2353
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2354
2354
|
}
|
|
2355
2355
|
if (tmp_4) {
|
|
2356
|
-
tmp_3 = '--> ' + this.
|
|
2356
|
+
tmp_3 = '--> ' + this.e52_1.p3f_1.b2y_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2357
2357
|
} else {
|
|
2358
|
-
var size = computeRequestBodySize(this.
|
|
2359
|
-
tmp_3 = '--> ' + this.
|
|
2358
|
+
var size = computeRequestBodySize(this.e52_1.r3f_1);
|
|
2359
|
+
tmp_3 = '--> ' + this.e52_1.p3f_1.b2y_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
|
|
2364
2364
|
var startLine = tmp_3;
|
|
2365
|
-
this.
|
|
2366
|
-
if (!invoke$isHeaders(this.
|
|
2365
|
+
this.f52_1.p(startLine);
|
|
2366
|
+
if (!invoke$isHeaders(this.c52_1) && !invoke$isBody(this.c52_1)) {
|
|
2367
2367
|
return null;
|
|
2368
2368
|
}
|
|
2369
2369
|
|
|
2370
|
-
var _iterator__ex2g4s = headers.
|
|
2370
|
+
var _iterator__ex2g4s = headers.d2m().r();
|
|
2371
2371
|
while (_iterator__ex2g4s.s()) {
|
|
2372
2372
|
var _destruct__k2r9zo = _iterator__ex2g4s.t();
|
|
2373
2373
|
var name = _destruct__k2r9zo.z();
|
|
2374
2374
|
var values = _destruct__k2r9zo.a1();
|
|
2375
|
-
var tmp0 = this.
|
|
2375
|
+
var tmp0 = this.b52_1;
|
|
2376
2376
|
var tmp$ret$0 = Unit_instance;
|
|
2377
2377
|
l$ret$1: do {
|
|
2378
2378
|
var _iterator__ex2g4s_0 = tmp0.r();
|
|
2379
2379
|
while (_iterator__ex2g4s_0.s()) {
|
|
2380
2380
|
var element = _iterator__ex2g4s_0.t();
|
|
2381
|
-
if (element.
|
|
2381
|
+
if (element.m53_1(name)) {
|
|
2382
2382
|
tmp$ret$0 = element;
|
|
2383
2383
|
break l$ret$1;
|
|
2384
2384
|
}
|
|
@@ -2387,34 +2387,34 @@
|
|
|
2387
2387
|
}
|
|
2388
2388
|
while (false);
|
|
2389
2389
|
if (tmp$ret$0 == null) {
|
|
2390
|
-
this.
|
|
2390
|
+
this.f52_1.p(name + ': ' + joinToString(values, ', '));
|
|
2391
2391
|
} else {
|
|
2392
|
-
this.
|
|
2392
|
+
this.f52_1.p(name + ': \u2588\u2588');
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
2395
|
|
|
2396
|
-
if (!invoke$isBody(this.
|
|
2397
|
-
this.
|
|
2396
|
+
if (!invoke$isBody(this.c52_1) || this.e52_1.p3f_1.equals(Companion_getInstance().t2x_1) || this.e52_1.p3f_1.equals(Companion_getInstance().y2x_1)) {
|
|
2397
|
+
this.f52_1.p('--> END ' + this.e52_1.p3f_1.b2y_1);
|
|
2398
2398
|
return null;
|
|
2399
2399
|
}
|
|
2400
2400
|
|
|
2401
|
-
this.
|
|
2401
|
+
this.f52_1.p('');
|
|
2402
2402
|
if (!(body instanceof OutgoingContent)) {
|
|
2403
|
-
this.
|
|
2403
|
+
this.f52_1.p('--> END ' + this.e52_1.p3f_1.b2y_1);
|
|
2404
2404
|
return null;
|
|
2405
2405
|
}
|
|
2406
2406
|
|
|
2407
|
-
if (this.
|
|
2407
|
+
if (this.e52_1.q3f_1.u2k(HttpHeaders_getInstance().b2u_1) === 'gzip') {
|
|
2408
2408
|
this.u8_1 = 2;
|
|
2409
|
-
var tmp_5 = this.
|
|
2410
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2409
|
+
var tmp_5 = this.e52_1.p3f_1;
|
|
2410
|
+
suspendResult = invoke$logOutgoingContent(this.d52_1, body, tmp_5, headers, this.f52_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2411
2411
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2412
2412
|
return suspendResult;
|
|
2413
2413
|
}
|
|
2414
2414
|
continue $sm;
|
|
2415
2415
|
} else {
|
|
2416
2416
|
this.u8_1 = 1;
|
|
2417
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2417
|
+
suspendResult = invoke$logOutgoingContent(this.d52_1, body, this.e52_1.p3f_1, headers, this.f52_1, VOID, this);
|
|
2418
2418
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2419
2419
|
return suspendResult;
|
|
2420
2420
|
}
|
|
@@ -2422,15 +2422,15 @@
|
|
|
2422
2422
|
}
|
|
2423
2423
|
|
|
2424
2424
|
case 1:
|
|
2425
|
-
this.
|
|
2425
|
+
this.g52_1 = suspendResult;
|
|
2426
2426
|
this.u8_1 = 3;
|
|
2427
2427
|
continue $sm;
|
|
2428
2428
|
case 2:
|
|
2429
|
-
this.
|
|
2429
|
+
this.g52_1 = suspendResult;
|
|
2430
2430
|
this.u8_1 = 3;
|
|
2431
2431
|
continue $sm;
|
|
2432
2432
|
case 3:
|
|
2433
|
-
var newContent = this.
|
|
2433
|
+
var newContent = this.g52_1;
|
|
2434
2434
|
return newContent;
|
|
2435
2435
|
case 4:
|
|
2436
2436
|
throw this.x8_1;
|
|
@@ -2448,10 +2448,10 @@
|
|
|
2448
2448
|
};
|
|
2449
2449
|
function $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, resultContinuation) {
|
|
2450
2450
|
CoroutineImpl.call(this, resultContinuation);
|
|
2451
|
-
this.
|
|
2452
|
-
this.
|
|
2453
|
-
this.
|
|
2454
|
-
this.
|
|
2451
|
+
this.p52_1 = $this_createClientPlugin;
|
|
2452
|
+
this.q52_1 = response;
|
|
2453
|
+
this.r52_1 = body;
|
|
2454
|
+
this.s52_1 = logLines;
|
|
2455
2455
|
}
|
|
2456
2456
|
protoOf($invoke$logResponseBodyCOROUTINE$).c9 = function () {
|
|
2457
2457
|
var suspendResult = this.w8_1;
|
|
@@ -2461,9 +2461,9 @@
|
|
|
2461
2461
|
switch (tmp) {
|
|
2462
2462
|
case 0:
|
|
2463
2463
|
this.v8_1 = 4;
|
|
2464
|
-
this.
|
|
2464
|
+
this.s52_1.p('');
|
|
2465
2465
|
this.u8_1 = 1;
|
|
2466
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2466
|
+
suspendResult = invoke$detectIfBinary(this.p52_1, this.r52_1, contentLength(this.q52_1), contentType(this.q52_1), this.q52_1.s2x(), this);
|
|
2467
2467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2468
2468
|
return suspendResult;
|
|
2469
2469
|
}
|
|
@@ -2472,25 +2472,25 @@
|
|
|
2472
2472
|
case 1:
|
|
2473
2473
|
var _destruct__k2r9zo = suspendResult;
|
|
2474
2474
|
var isBinary = _destruct__k2r9zo.ig();
|
|
2475
|
-
this.
|
|
2476
|
-
var newBody = _destruct__k2r9zo.
|
|
2477
|
-
this.
|
|
2478
|
-
if (equals(this.
|
|
2479
|
-
this.
|
|
2475
|
+
this.u52_1 = _destruct__k2r9zo.jg();
|
|
2476
|
+
var newBody = _destruct__k2r9zo.em();
|
|
2477
|
+
this.v52_1 = subtract(this.q52_1.o3h().m2n_1, this.q52_1.n3h().m2n_1);
|
|
2478
|
+
if (equals(this.u52_1, new Long(0, 0))) {
|
|
2479
|
+
this.s52_1.p('<-- END HTTP (' + this.v52_1.toString() + 'ms, ' + this.u52_1.toString() + '-byte body)');
|
|
2480
2480
|
return Unit_instance;
|
|
2481
2481
|
}
|
|
2482
2482
|
|
|
2483
2483
|
if (!isBinary) {
|
|
2484
|
-
var contentType_0 = contentType(this.
|
|
2484
|
+
var contentType_0 = contentType(this.q52_1);
|
|
2485
2485
|
var tmp_0 = this;
|
|
2486
2486
|
var tmp_1;
|
|
2487
2487
|
if (!(contentType_0 == null)) {
|
|
2488
2488
|
var tmp0_elvis_lhs = charset(contentType_0);
|
|
2489
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2489
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().h1w_1 : tmp0_elvis_lhs;
|
|
2490
2490
|
} else {
|
|
2491
|
-
tmp_1 = Charsets_getInstance().
|
|
2491
|
+
tmp_1 = Charsets_getInstance().h1w_1;
|
|
2492
2492
|
}
|
|
2493
|
-
tmp_0.
|
|
2493
|
+
tmp_0.w52_1 = tmp_1;
|
|
2494
2494
|
this.u8_1 = 2;
|
|
2495
2495
|
suspendResult = readRemaining(newBody, this);
|
|
2496
2496
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2500,25 +2500,25 @@
|
|
|
2500
2500
|
} else {
|
|
2501
2501
|
var tmp_2 = this;
|
|
2502
2502
|
var type = 'binary';
|
|
2503
|
-
if (this.
|
|
2503
|
+
if (this.q52_1.s2x().b2m(HttpHeaders_getInstance().b2u_1)) {
|
|
2504
2504
|
type = 'encoded';
|
|
2505
2505
|
}
|
|
2506
2506
|
var tmp_3;
|
|
2507
|
-
if (!(this.
|
|
2508
|
-
tmp_3 = this.
|
|
2507
|
+
if (!(this.u52_1 == null)) {
|
|
2508
|
+
tmp_3 = this.s52_1.p('<-- END HTTP (' + this.v52_1.toString() + 'ms, ' + type + ' ' + this.u52_1.toString() + '-byte body omitted)');
|
|
2509
2509
|
} else {
|
|
2510
|
-
tmp_3 = this.
|
|
2510
|
+
tmp_3 = this.s52_1.p('<-- END HTTP (' + this.v52_1.toString() + 'ms, ' + type + ' body omitted)');
|
|
2511
2511
|
}
|
|
2512
|
-
tmp_2.
|
|
2512
|
+
tmp_2.t52_1 = tmp_3;
|
|
2513
2513
|
this.u8_1 = 3;
|
|
2514
2514
|
continue $sm;
|
|
2515
2515
|
}
|
|
2516
2516
|
|
|
2517
2517
|
case 2:
|
|
2518
2518
|
var ARGUMENT = suspendResult;
|
|
2519
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2520
|
-
this.
|
|
2521
|
-
this.
|
|
2519
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.w52_1);
|
|
2520
|
+
this.s52_1.p(ARGUMENT_0);
|
|
2521
|
+
this.t52_1 = this.s52_1.p('<-- END HTTP (' + this.v52_1.toString() + 'ms, ' + toString_0(this.u52_1) + '-byte body)');
|
|
2522
2522
|
this.u8_1 = 3;
|
|
2523
2523
|
continue $sm;
|
|
2524
2524
|
case 3:
|
|
@@ -2539,11 +2539,11 @@
|
|
|
2539
2539
|
};
|
|
2540
2540
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, resultContinuation) {
|
|
2541
2541
|
CoroutineImpl.call(this, resultContinuation);
|
|
2542
|
-
this.
|
|
2543
|
-
this.
|
|
2544
|
-
this.
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2542
|
+
this.f53_1 = sanitizedHeaders;
|
|
2543
|
+
this.g53_1 = level;
|
|
2544
|
+
this.h53_1 = $this_createClientPlugin;
|
|
2545
|
+
this.i53_1 = response;
|
|
2546
|
+
this.j53_1 = logLines;
|
|
2547
2547
|
}
|
|
2548
2548
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).c9 = function () {
|
|
2549
2549
|
var suspendResult = this.w8_1;
|
|
@@ -2553,30 +2553,30 @@
|
|
|
2553
2553
|
switch (tmp) {
|
|
2554
2554
|
case 0:
|
|
2555
2555
|
this.v8_1 = 4;
|
|
2556
|
-
if (invoke$isNone(this.
|
|
2557
|
-
return this.
|
|
2558
|
-
var tmp0_safe_receiver = this.
|
|
2556
|
+
if (invoke$isNone(this.g53_1))
|
|
2557
|
+
return this.i53_1;
|
|
2558
|
+
var tmp0_safe_receiver = this.i53_1.s2x().u2k(HttpHeaders_getInstance().d2u_1);
|
|
2559
2559
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2560
|
-
var request = get_request(this.
|
|
2561
|
-
var duration = subtract(this.
|
|
2562
|
-
var startLine = this.
|
|
2563
|
-
this.
|
|
2564
|
-
if (!invoke$isHeaders(this.
|
|
2565
|
-
return this.
|
|
2560
|
+
var request = get_request(this.i53_1);
|
|
2561
|
+
var duration = subtract(this.i53_1.o3h().m2n_1, this.i53_1.n3h().m2n_1);
|
|
2562
|
+
var startLine = this.i53_1.s2x().u2k(HttpHeaders_getInstance().k2w_1) === 'chunked' && (invoke$isInfo(this.g53_1) || invoke$isHeaders(this.g53_1)) ? '<-- ' + this.i53_1.p33().toString() + ' ' + pathQuery(request.f3h()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.g53_1) && !(contentLength == null) ? '<-- ' + this.i53_1.p33().toString() + ' ' + pathQuery(request.f3h()) + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.g53_1) || (invoke$isInfo(this.g53_1) && contentLength == null) || (invoke$isHeaders(this.g53_1) && !(contentLength == null)) || this.i53_1.s2x().u2k(HttpHeaders_getInstance().b2u_1) === 'gzip' ? '<-- ' + this.i53_1.p33().toString() + ' ' + pathQuery(request.f3h()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.i53_1.p33().toString() + ' ' + pathQuery(request.f3h()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2563
|
+
this.j53_1.p(startLine);
|
|
2564
|
+
if (!invoke$isHeaders(this.g53_1) && !invoke$isBody(this.g53_1)) {
|
|
2565
|
+
return this.i53_1;
|
|
2566
2566
|
}
|
|
2567
2567
|
|
|
2568
|
-
var _iterator__ex2g4s = this.
|
|
2568
|
+
var _iterator__ex2g4s = this.i53_1.s2x().d2m().r();
|
|
2569
2569
|
while (_iterator__ex2g4s.s()) {
|
|
2570
2570
|
var _destruct__k2r9zo = _iterator__ex2g4s.t();
|
|
2571
2571
|
var name = _destruct__k2r9zo.z();
|
|
2572
2572
|
var values = _destruct__k2r9zo.a1();
|
|
2573
|
-
var tmp0 = this.
|
|
2573
|
+
var tmp0 = this.f53_1;
|
|
2574
2574
|
var tmp$ret$0 = Unit_instance;
|
|
2575
2575
|
l$ret$1: do {
|
|
2576
2576
|
var _iterator__ex2g4s_0 = tmp0.r();
|
|
2577
2577
|
while (_iterator__ex2g4s_0.s()) {
|
|
2578
2578
|
var element = _iterator__ex2g4s_0.t();
|
|
2579
|
-
if (element.
|
|
2579
|
+
if (element.m53_1(name)) {
|
|
2580
2580
|
tmp$ret$0 = element;
|
|
2581
2581
|
break l$ret$1;
|
|
2582
2582
|
}
|
|
@@ -2585,30 +2585,30 @@
|
|
|
2585
2585
|
}
|
|
2586
2586
|
while (false);
|
|
2587
2587
|
if (tmp$ret$0 == null) {
|
|
2588
|
-
this.
|
|
2588
|
+
this.j53_1.p(name + ': ' + joinToString(values, ', '));
|
|
2589
2589
|
} else {
|
|
2590
|
-
this.
|
|
2590
|
+
this.j53_1.p(name + ': \u2588\u2588');
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
2593
|
|
|
2594
|
-
if (!invoke$isBody(this.
|
|
2595
|
-
this.
|
|
2596
|
-
return this.
|
|
2594
|
+
if (!invoke$isBody(this.g53_1)) {
|
|
2595
|
+
this.j53_1.p('<-- END HTTP');
|
|
2596
|
+
return this.i53_1;
|
|
2597
2597
|
}
|
|
2598
2598
|
|
|
2599
2599
|
if (!(contentLength == null) && equals(contentLength, new Long(0, 0))) {
|
|
2600
|
-
this.
|
|
2601
|
-
return this.
|
|
2600
|
+
this.j53_1.p('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2601
|
+
return this.i53_1;
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
|
-
if (equals(contentType(this.
|
|
2605
|
-
this.
|
|
2606
|
-
return this.
|
|
2604
|
+
if (equals(contentType(this.i53_1), Text_getInstance().b2t_1)) {
|
|
2605
|
+
this.j53_1.p('<-- END HTTP (streaming)');
|
|
2606
|
+
return this.i53_1;
|
|
2607
2607
|
}
|
|
2608
2608
|
|
|
2609
|
-
if (get_isSaved(this.
|
|
2609
|
+
if (get_isSaved(this.i53_1)) {
|
|
2610
2610
|
this.u8_1 = 3;
|
|
2611
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2611
|
+
suspendResult = invoke$logResponseBody(this.h53_1, this.i53_1, this.i53_1.l3h(), this.j53_1, this);
|
|
2612
2612
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2613
2613
|
return suspendResult;
|
|
2614
2614
|
}
|
|
@@ -2619,22 +2619,22 @@
|
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
2621
2621
|
case 1:
|
|
2622
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2623
|
-
this.
|
|
2622
|
+
var _destruct__k2r9zo_0 = split(this.i53_1.l3h(), this.i53_1);
|
|
2623
|
+
this.k53_1 = _destruct__k2r9zo_0.ig();
|
|
2624
2624
|
var newChannel = _destruct__k2r9zo_0.jg();
|
|
2625
2625
|
this.u8_1 = 2;
|
|
2626
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2626
|
+
suspendResult = invoke$logResponseBody(this.h53_1, this.i53_1, newChannel, this.j53_1, this);
|
|
2627
2627
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2628
2628
|
return suspendResult;
|
|
2629
2629
|
}
|
|
2630
2630
|
|
|
2631
2631
|
continue $sm;
|
|
2632
2632
|
case 2:
|
|
2633
|
-
var tmp_0 = this.
|
|
2634
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2635
|
-
return call.
|
|
2633
|
+
var tmp_0 = this.i53_1.d3h();
|
|
2634
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.k53_1));
|
|
2635
|
+
return call.o3e();
|
|
2636
2636
|
case 3:
|
|
2637
|
-
return this.
|
|
2637
|
+
return this.i53_1;
|
|
2638
2638
|
case 4:
|
|
2639
2639
|
throw this.x8_1;
|
|
2640
2640
|
}
|
|
@@ -2728,7 +2728,7 @@
|
|
|
2728
2728
|
var _iterator__ex2g4s_0 = sanitizedHeaders.r();
|
|
2729
2729
|
while (_iterator__ex2g4s_0.s()) {
|
|
2730
2730
|
var element_0 = _iterator__ex2g4s_0.t();
|
|
2731
|
-
if (element_0.
|
|
2731
|
+
if (element_0.m53_1(key)) {
|
|
2732
2732
|
tmp$ret$5 = element_0;
|
|
2733
2733
|
break $l$block;
|
|
2734
2734
|
}
|
|
@@ -2736,7 +2736,7 @@
|
|
|
2736
2736
|
tmp$ret$5 = null;
|
|
2737
2737
|
}
|
|
2738
2738
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
2739
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2739
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l53_1;
|
|
2740
2740
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2741
2741
|
}
|
|
2742
2742
|
}
|
|
@@ -2748,26 +2748,26 @@
|
|
|
2748
2748
|
}
|
|
2749
2749
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2750
2750
|
// Inline function 'kotlin.with' call
|
|
2751
|
-
if (level.
|
|
2751
|
+
if (level.x4w_1) {
|
|
2752
2752
|
// Inline function 'kotlin.text.appendLine' call
|
|
2753
|
-
var value = 'RESPONSE: ' + response.
|
|
2753
|
+
var value = 'RESPONSE: ' + response.p33().toString();
|
|
2754
2754
|
// Inline function 'kotlin.text.appendLine' call
|
|
2755
2755
|
log.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
2756
2756
|
// Inline function 'kotlin.text.appendLine' call
|
|
2757
|
-
var value_0 = 'METHOD: ' + response.
|
|
2757
|
+
var value_0 = 'METHOD: ' + response.d3h().w3g().e3h().toString();
|
|
2758
2758
|
// Inline function 'kotlin.text.appendLine' call
|
|
2759
2759
|
log.f8(value_0).g8(_Char___init__impl__6a9atx(10));
|
|
2760
2760
|
// Inline function 'kotlin.text.appendLine' call
|
|
2761
|
-
var value_1 = 'FROM: ' + response.
|
|
2761
|
+
var value_1 = 'FROM: ' + response.d3h().w3g().f3h().toString();
|
|
2762
2762
|
// Inline function 'kotlin.text.appendLine' call
|
|
2763
2763
|
log.f8(value_1).g8(_Char___init__impl__6a9atx(10));
|
|
2764
2764
|
}
|
|
2765
|
-
if (level.
|
|
2765
|
+
if (level.y4w_1) {
|
|
2766
2766
|
// Inline function 'kotlin.text.appendLine' call
|
|
2767
2767
|
var value_2 = 'COMMON HEADERS';
|
|
2768
2768
|
// Inline function 'kotlin.text.appendLine' call
|
|
2769
2769
|
log.f8(value_2).g8(_Char___init__impl__6a9atx(10));
|
|
2770
|
-
logHeaders(log, response.
|
|
2770
|
+
logHeaders(log, response.s2x().d2m(), sanitizedHeaders);
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
2773
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2783,16 +2783,16 @@
|
|
|
2783
2783
|
return tmp.c9();
|
|
2784
2784
|
}
|
|
2785
2785
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2786
|
-
this.
|
|
2786
|
+
this.p59_1 = function_0;
|
|
2787
2787
|
}
|
|
2788
2788
|
protoOf(sam$kotlin_Comparator$0).zd = function (a, b) {
|
|
2789
|
-
return this.
|
|
2789
|
+
return this.p59_1(a, b);
|
|
2790
2790
|
};
|
|
2791
2791
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2792
2792
|
return this.zd(a, b);
|
|
2793
2793
|
};
|
|
2794
2794
|
protoOf(sam$kotlin_Comparator$0).d3 = function () {
|
|
2795
|
-
return this.
|
|
2795
|
+
return this.p59_1;
|
|
2796
2796
|
};
|
|
2797
2797
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2798
2798
|
var tmp;
|
|
@@ -2820,8 +2820,8 @@
|
|
|
2820
2820
|
}
|
|
2821
2821
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2822
2822
|
CoroutineImpl.call(this, resultContinuation);
|
|
2823
|
-
this.
|
|
2824
|
-
this.
|
|
2823
|
+
this.y58_1 = _this__u8e3s4;
|
|
2824
|
+
this.z58_1 = response;
|
|
2825
2825
|
}
|
|
2826
2826
|
protoOf($logResponseBodyCOROUTINE$_0).c9 = function () {
|
|
2827
2827
|
var suspendResult = this.w8_1;
|
|
@@ -2831,14 +2831,14 @@
|
|
|
2831
2831
|
switch (tmp) {
|
|
2832
2832
|
case 0:
|
|
2833
2833
|
this.v8_1 = 8;
|
|
2834
|
-
this.
|
|
2834
|
+
this.a59_1 = StringBuilder_init_$Create$();
|
|
2835
2835
|
this.u8_1 = 1;
|
|
2836
2836
|
continue $sm;
|
|
2837
2837
|
case 1:
|
|
2838
2838
|
this.v8_1 = 4;
|
|
2839
2839
|
this.v8_1 = 3;
|
|
2840
2840
|
this.u8_1 = 2;
|
|
2841
|
-
suspendResult = appendResponseBody(this.
|
|
2841
|
+
suspendResult = appendResponseBody(this.a59_1, contentType(this.z58_1), this.z58_1.l3h(), this);
|
|
2842
2842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2843
2843
|
return suspendResult;
|
|
2844
2844
|
}
|
|
@@ -2862,22 +2862,22 @@
|
|
|
2862
2862
|
|
|
2863
2863
|
case 4:
|
|
2864
2864
|
this.v8_1 = 8;
|
|
2865
|
-
this.
|
|
2865
|
+
this.b59_1 = this.x8_1;
|
|
2866
2866
|
this.u8_1 = 5;
|
|
2867
|
-
var this_0 = this.
|
|
2868
|
-
suspendResult = this.
|
|
2867
|
+
var this_0 = this.a59_1.toString();
|
|
2868
|
+
suspendResult = this.y58_1.s4w(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2869
2869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2870
2870
|
return suspendResult;
|
|
2871
2871
|
}
|
|
2872
2872
|
|
|
2873
2873
|
continue $sm;
|
|
2874
2874
|
case 5:
|
|
2875
|
-
throw this.
|
|
2875
|
+
throw this.b59_1;
|
|
2876
2876
|
case 6:
|
|
2877
2877
|
this.v8_1 = 8;
|
|
2878
2878
|
this.u8_1 = 7;
|
|
2879
|
-
var this_1 = this.
|
|
2880
|
-
suspendResult = this.
|
|
2879
|
+
var this_1 = this.a59_1.toString();
|
|
2880
|
+
suspendResult = this.y58_1.s4w(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2881
2881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2882
2882
|
return suspendResult;
|
|
2883
2883
|
}
|
|
@@ -2901,9 +2901,9 @@
|
|
|
2901
2901
|
};
|
|
2902
2902
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2903
2903
|
CoroutineImpl.call(this, resultContinuation);
|
|
2904
|
-
this.
|
|
2905
|
-
this.
|
|
2906
|
-
this.
|
|
2904
|
+
this.k59_1 = _this__u8e3s4;
|
|
2905
|
+
this.l59_1 = contentType;
|
|
2906
|
+
this.m59_1 = content;
|
|
2907
2907
|
}
|
|
2908
2908
|
protoOf($appendResponseBodyCOROUTINE$).c9 = function () {
|
|
2909
2909
|
var suspendResult = this.w8_1;
|
|
@@ -2913,16 +2913,16 @@
|
|
|
2913
2913
|
switch (tmp) {
|
|
2914
2914
|
case 0:
|
|
2915
2915
|
this.v8_1 = 3;
|
|
2916
|
-
var tmp0 = this.
|
|
2917
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2916
|
+
var tmp0 = this.k59_1;
|
|
2917
|
+
var value = 'BODY Content-Type: ' + toString_0(this.l59_1);
|
|
2918
2918
|
tmp0.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
2919
|
-
var tmp0_0 = this.
|
|
2919
|
+
var tmp0_0 = this.k59_1;
|
|
2920
2920
|
var value_0 = 'BODY START';
|
|
2921
2921
|
tmp0_0.f8(value_0).g8(_Char___init__impl__6a9atx(10));
|
|
2922
|
-
var tmp0_1 = this.
|
|
2923
|
-
var tmp0_safe_receiver = this.
|
|
2922
|
+
var tmp0_1 = this.m59_1;
|
|
2923
|
+
var tmp0_safe_receiver = this.l59_1;
|
|
2924
2924
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2925
|
-
this.
|
|
2925
|
+
this.o59_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().h1w_1 : tmp1_elvis_lhs;
|
|
2926
2926
|
this.v8_1 = 2;
|
|
2927
2927
|
this.u8_1 = 1;
|
|
2928
2928
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2933,7 +2933,7 @@
|
|
|
2933
2933
|
continue $sm;
|
|
2934
2934
|
case 1:
|
|
2935
2935
|
var ARGUMENT = suspendResult;
|
|
2936
|
-
this.
|
|
2936
|
+
this.n59_1 = readText(ARGUMENT, this.o59_1);
|
|
2937
2937
|
this.v8_1 = 3;
|
|
2938
2938
|
this.u8_1 = 4;
|
|
2939
2939
|
continue $sm;
|
|
@@ -2943,7 +2943,7 @@
|
|
|
2943
2943
|
if (tmp_0 instanceof Error) {
|
|
2944
2944
|
var cause = this.x8_1;
|
|
2945
2945
|
var tmp_1 = this;
|
|
2946
|
-
tmp_1.
|
|
2946
|
+
tmp_1.n59_1 = null;
|
|
2947
2947
|
this.u8_1 = 4;
|
|
2948
2948
|
continue $sm;
|
|
2949
2949
|
} else {
|
|
@@ -2954,10 +2954,10 @@
|
|
|
2954
2954
|
throw this.x8_1;
|
|
2955
2955
|
case 4:
|
|
2956
2956
|
this.v8_1 = 3;
|
|
2957
|
-
var tmp2_elvis_lhs = this.
|
|
2957
|
+
var tmp2_elvis_lhs = this.n59_1;
|
|
2958
2958
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2959
|
-
this.
|
|
2960
|
-
this.
|
|
2959
|
+
this.k59_1.f8(message).g8(_Char___init__impl__6a9atx(10));
|
|
2960
|
+
this.k59_1.f8('BODY END');
|
|
2961
2961
|
return Unit_instance;
|
|
2962
2962
|
}
|
|
2963
2963
|
} catch ($p) {
|
|
@@ -2979,21 +2979,21 @@
|
|
|
2979
2979
|
}
|
|
2980
2980
|
function toReadChannel(_this__u8e3s4) {
|
|
2981
2981
|
var tmp = GlobalScope_instance;
|
|
2982
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
2983
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
2982
|
+
var tmp_0 = Dispatchers_getInstance().e15_1;
|
|
2983
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).e1u_1;
|
|
2984
2984
|
}
|
|
2985
2985
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
2986
|
-
this.
|
|
2986
|
+
this.k5a_1 = $this_toReadChannel;
|
|
2987
2987
|
CoroutineImpl.call(this, resultContinuation);
|
|
2988
2988
|
}
|
|
2989
|
-
protoOf(toReadChannel$slambda).
|
|
2990
|
-
var tmp = this.
|
|
2989
|
+
protoOf(toReadChannel$slambda).v38 = function ($this$writer, $completion) {
|
|
2990
|
+
var tmp = this.w38($this$writer, $completion);
|
|
2991
2991
|
tmp.w8_1 = Unit_instance;
|
|
2992
2992
|
tmp.x8_1 = null;
|
|
2993
2993
|
return tmp.c9();
|
|
2994
2994
|
};
|
|
2995
2995
|
protoOf(toReadChannel$slambda).o9 = function (p1, $completion) {
|
|
2996
|
-
return this.
|
|
2996
|
+
return this.v38(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
2997
2997
|
};
|
|
2998
2998
|
protoOf(toReadChannel$slambda).c9 = function () {
|
|
2999
2999
|
var suspendResult = this.w8_1;
|
|
@@ -3004,7 +3004,7 @@
|
|
|
3004
3004
|
case 0:
|
|
3005
3005
|
this.v8_1 = 2;
|
|
3006
3006
|
this.u8_1 = 1;
|
|
3007
|
-
suspendResult = this.
|
|
3007
|
+
suspendResult = this.k5a_1.w33(this.l5a_1.g1u_1, this);
|
|
3008
3008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3009
3009
|
return suspendResult;
|
|
3010
3010
|
}
|
|
@@ -3026,23 +3026,23 @@
|
|
|
3026
3026
|
}
|
|
3027
3027
|
while (true);
|
|
3028
3028
|
};
|
|
3029
|
-
protoOf(toReadChannel$slambda).
|
|
3030
|
-
var i = new toReadChannel$slambda(this.
|
|
3031
|
-
i.
|
|
3029
|
+
protoOf(toReadChannel$slambda).w38 = function ($this$writer, completion) {
|
|
3030
|
+
var i = new toReadChannel$slambda(this.k5a_1, completion);
|
|
3031
|
+
i.l5a_1 = $this$writer;
|
|
3032
3032
|
return i;
|
|
3033
3033
|
};
|
|
3034
3034
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3035
3035
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3036
3036
|
var l = function ($this$writer, $completion) {
|
|
3037
|
-
return i.
|
|
3037
|
+
return i.v38($this$writer, $completion);
|
|
3038
3038
|
};
|
|
3039
3039
|
l.$arity = 1;
|
|
3040
3040
|
return l;
|
|
3041
3041
|
}
|
|
3042
3042
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3043
3043
|
CoroutineImpl.call(this, resultContinuation);
|
|
3044
|
-
this.
|
|
3045
|
-
this.
|
|
3044
|
+
this.y59_1 = _this__u8e3s4;
|
|
3045
|
+
this.z59_1 = log;
|
|
3046
3046
|
}
|
|
3047
3047
|
protoOf($observeCOROUTINE$).c9 = function () {
|
|
3048
3048
|
var suspendResult = this.w8_1;
|
|
@@ -3052,10 +3052,10 @@
|
|
|
3052
3052
|
switch (tmp) {
|
|
3053
3053
|
case 0:
|
|
3054
3054
|
this.v8_1 = 6;
|
|
3055
|
-
var tmp0_subject = this.
|
|
3055
|
+
var tmp0_subject = this.y59_1;
|
|
3056
3056
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3057
3057
|
this.u8_1 = 3;
|
|
3058
|
-
suspendResult = writeFully(this.
|
|
3058
|
+
suspendResult = writeFully(this.z59_1, this.y59_1.r33(), VOID, VOID, this);
|
|
3059
3059
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3060
3060
|
return suspendResult;
|
|
3061
3061
|
}
|
|
@@ -3064,25 +3064,25 @@
|
|
|
3064
3064
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3065
3065
|
var tmp_0 = this;
|
|
3066
3066
|
var responseChannel = new ByteChannel();
|
|
3067
|
-
var content = this.
|
|
3068
|
-
copyToBoth(content, this.
|
|
3069
|
-
tmp_0.
|
|
3067
|
+
var content = this.y59_1.u33();
|
|
3068
|
+
copyToBoth(content, this.z59_1, responseChannel);
|
|
3069
|
+
tmp_0.a5a_1 = new LoggedContent(this.y59_1, responseChannel);
|
|
3070
3070
|
this.u8_1 = 5;
|
|
3071
3071
|
continue $sm;
|
|
3072
3072
|
} else {
|
|
3073
3073
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3074
3074
|
var tmp_1 = this;
|
|
3075
3075
|
var responseChannel_0 = new ByteChannel();
|
|
3076
|
-
var content_0 = toReadChannel(this.
|
|
3077
|
-
copyToBoth(content_0, this.
|
|
3078
|
-
tmp_1.
|
|
3076
|
+
var content_0 = toReadChannel(this.y59_1);
|
|
3077
|
+
copyToBoth(content_0, this.z59_1, responseChannel_0);
|
|
3078
|
+
tmp_1.a5a_1 = new LoggedContent(this.y59_1, responseChannel_0);
|
|
3079
3079
|
this.u8_1 = 5;
|
|
3080
3080
|
continue $sm;
|
|
3081
3081
|
} else {
|
|
3082
3082
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3083
|
-
this.
|
|
3083
|
+
this.b5a_1 = this.y59_1;
|
|
3084
3084
|
this.u8_1 = 2;
|
|
3085
|
-
suspendResult = observe(this.
|
|
3085
|
+
suspendResult = observe(this.y59_1.a34(), this.z59_1, this);
|
|
3086
3086
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3087
3087
|
return suspendResult;
|
|
3088
3088
|
}
|
|
@@ -3096,7 +3096,7 @@
|
|
|
3096
3096
|
}
|
|
3097
3097
|
if (tmp_2) {
|
|
3098
3098
|
this.u8_1 = 1;
|
|
3099
|
-
suspendResult = this.
|
|
3099
|
+
suspendResult = this.z59_1.n1m(this);
|
|
3100
3100
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3101
3101
|
return suspendResult;
|
|
3102
3102
|
}
|
|
@@ -3112,28 +3112,28 @@
|
|
|
3112
3112
|
|
|
3113
3113
|
break;
|
|
3114
3114
|
case 1:
|
|
3115
|
-
this.
|
|
3115
|
+
this.a5a_1 = this.y59_1;
|
|
3116
3116
|
this.u8_1 = 5;
|
|
3117
3117
|
continue $sm;
|
|
3118
3118
|
case 2:
|
|
3119
3119
|
var ARGUMENT = suspendResult;
|
|
3120
|
-
this.
|
|
3120
|
+
this.a5a_1 = this.b5a_1.b34(ARGUMENT);
|
|
3121
3121
|
this.u8_1 = 5;
|
|
3122
3122
|
continue $sm;
|
|
3123
3123
|
case 3:
|
|
3124
3124
|
this.u8_1 = 4;
|
|
3125
|
-
suspendResult = this.
|
|
3125
|
+
suspendResult = this.z59_1.n1m(this);
|
|
3126
3126
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3127
3127
|
return suspendResult;
|
|
3128
3128
|
}
|
|
3129
3129
|
|
|
3130
3130
|
continue $sm;
|
|
3131
3131
|
case 4:
|
|
3132
|
-
this.
|
|
3132
|
+
this.a5a_1 = this.y59_1;
|
|
3133
3133
|
this.u8_1 = 5;
|
|
3134
3134
|
continue $sm;
|
|
3135
3135
|
case 5:
|
|
3136
|
-
return this.
|
|
3136
|
+
return this.a5a_1;
|
|
3137
3137
|
case 6:
|
|
3138
3138
|
throw this.x8_1;
|
|
3139
3139
|
}
|