@doordeck/doordeck-headless-sdk 0.195.0 → 0.197.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 +57 -57
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.js +10188 -10162
- package/kotlin/kotlin-kotlin-stdlib.js +442 -688
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2034 -2034
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +46 -46
- package/kotlin/kotlinx-io-kotlinx-io-core.js +475 -475
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1843 -1843
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1440 -1440
- package/kotlin/ktor-ktor-client-auth.js +264 -264
- package/kotlin/ktor-ktor-client-content-negotiation.js +156 -156
- package/kotlin/ktor-ktor-client-core.js +2195 -2156
- package/kotlin/ktor-ktor-client-logging.js +670 -679
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +369 -369
- package/kotlin/ktor-ktor-http.js +789 -789
- package/kotlin/ktor-ktor-io.js +663 -663
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +151 -151
- package/kotlin/ktor-ktor-serialization.js +70 -70
- package/kotlin/ktor-ktor-utils.js +1549 -1014
- package/kotlin/ktor-ktor-websockets.js +422 -422
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_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.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.o9;
|
|
5
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.y8;
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.cg;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.qb;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.gf;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.fc;
|
|
10
10
|
var Unit_instance = kotlin_kotlin.$_$.z;
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
13
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.cc;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.hb;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.ta;
|
|
14
14
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d2;
|
|
15
15
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
17
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f3;
|
|
18
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.fb;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.b;
|
|
20
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
21
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
20
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.jb;
|
|
21
|
+
var initMetadataForObject = kotlin_kotlin.$_$.lb;
|
|
22
22
|
var readText = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
23
23
|
var readBuffer = kotlin_io_ktor_ktor_io.$_$.g;
|
|
24
24
|
var isTextType = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
var writeFully = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
30
30
|
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
31
31
|
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
32
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
33
|
-
var Enum = kotlin_kotlin.$_$.
|
|
32
|
+
var charCodeAt = kotlin_kotlin.$_$.ra;
|
|
33
|
+
var Enum = kotlin_kotlin.$_$.tf;
|
|
34
34
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
35
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
36
|
-
var println = kotlin_kotlin.$_$.
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.gb;
|
|
36
|
+
var println = kotlin_kotlin.$_$.s9;
|
|
37
37
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
38
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
39
39
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r2;
|
|
40
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
40
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.tc;
|
|
41
41
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.s;
|
|
42
42
|
var NoContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
43
43
|
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.q;
|
|
44
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
44
|
+
var fromInt = kotlin_kotlin.$_$.z9;
|
|
45
45
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
46
46
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
47
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
47
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.kb;
|
|
48
48
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
49
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
49
|
+
var isSuspendFunction = kotlin_kotlin.$_$.wb;
|
|
50
50
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
51
51
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.n;
|
|
52
52
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
@@ -54,23 +54,23 @@
|
|
|
54
54
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
55
55
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
56
56
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
57
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
57
|
+
var isInterface = kotlin_kotlin.$_$.ub;
|
|
58
58
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
59
59
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.j;
|
|
60
|
-
var Collection = kotlin_kotlin.$_$.
|
|
61
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
60
|
+
var Collection = kotlin_kotlin.$_$.g5;
|
|
61
|
+
var toString_0 = kotlin_kotlin.$_$.fh;
|
|
62
62
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
63
63
|
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
|
|
64
64
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
65
65
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
66
66
|
var Url = kotlin_io_ktor_ktor_http.$_$.g1;
|
|
67
67
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
68
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
69
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
+
var joinToString = kotlin_kotlin.$_$.k7;
|
|
69
|
+
var equals = kotlin_kotlin.$_$.xa;
|
|
70
70
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
71
71
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
72
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
73
|
-
var split = kotlin_io_ktor_ktor_utils.$_$.
|
|
72
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bh;
|
|
73
|
+
var split = kotlin_io_ktor_ktor_utils.$_$.j1;
|
|
74
74
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
75
75
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
76
76
|
var FormItem = kotlin_io_ktor_ktor_http.$_$.w;
|
|
@@ -83,35 +83,35 @@
|
|
|
83
83
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.n1;
|
|
84
84
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.d1;
|
|
85
85
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
86
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
86
|
+
var toLongOrNull = kotlin_kotlin.$_$.we;
|
|
87
87
|
var contentLength = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
88
88
|
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
89
|
-
var subtract = kotlin_kotlin.$_$.
|
|
89
|
+
var subtract = kotlin_kotlin.$_$.ia;
|
|
90
90
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
|
|
91
91
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
92
92
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
93
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
94
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
95
|
-
var createKType = kotlin_kotlin.$_$.
|
|
93
|
+
var getKClass = kotlin_kotlin.$_$.uc;
|
|
94
|
+
var arrayOf = kotlin_kotlin.$_$.qg;
|
|
95
|
+
var createKType = kotlin_kotlin.$_$.sc;
|
|
96
96
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.p;
|
|
97
97
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.r;
|
|
98
|
-
var Unit = kotlin_kotlin.$_$.
|
|
98
|
+
var Unit = kotlin_kotlin.$_$.ng;
|
|
99
99
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
100
|
-
var toList = kotlin_kotlin.$_$.
|
|
101
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
102
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
103
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
104
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
105
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
100
|
+
var toList = kotlin_kotlin.$_$.l8;
|
|
101
|
+
var sortedWith = kotlin_kotlin.$_$.g8;
|
|
102
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ka;
|
|
103
|
+
var Comparator = kotlin_kotlin.$_$.qf;
|
|
104
|
+
var hashCode = kotlin_kotlin.$_$.eb;
|
|
105
|
+
var compareValues = kotlin_kotlin.$_$.w8;
|
|
106
106
|
var writer = kotlin_io_ktor_ktor_io.$_$.w1;
|
|
107
107
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
108
108
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.e1;
|
|
109
109
|
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.o;
|
|
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.$_$.k9;
|
|
111
|
+
var fold = kotlin_kotlin.$_$.j9;
|
|
112
|
+
var minusKey = kotlin_kotlin.$_$.l9;
|
|
113
|
+
var plus = kotlin_kotlin.$_$.n9;
|
|
114
|
+
var Element = kotlin_kotlin.$_$.m9;
|
|
115
115
|
//endregion
|
|
116
116
|
//region block: pre-declaration
|
|
117
117
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
@@ -119,10 +119,10 @@
|
|
|
119
119
|
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
120
120
|
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
121
121
|
function filterRequest(url, contentLength, contentType, headers, body, $completion) {
|
|
122
|
-
return this.
|
|
122
|
+
return this.q58(contentLength, contentType, headers, body, $completion);
|
|
123
123
|
}
|
|
124
124
|
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
125
|
-
return this.
|
|
125
|
+
return this.q58(contentLength, contentType, headers, body, $completion);
|
|
126
126
|
}
|
|
127
127
|
initMetadataForInterface(CommonLogBodyFilter, 'CommonLogBodyFilter', VOID, VOID, VOID, [5, 4]);
|
|
128
128
|
function get_byteSize() {
|
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
//endregion
|
|
176
176
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
177
177
|
CoroutineImpl.call(this, resultContinuation);
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
178
|
+
this.g57_1 = _this__u8e3s4;
|
|
179
|
+
this.h57_1 = message;
|
|
180
180
|
}
|
|
181
181
|
protoOf($logResponseExceptionCOROUTINE$).i9 = function () {
|
|
182
182
|
var suspendResult = this.c9_1;
|
|
@@ -187,15 +187,15 @@
|
|
|
187
187
|
case 0:
|
|
188
188
|
this.b9_1 = 2;
|
|
189
189
|
this.a9_1 = 1;
|
|
190
|
-
suspendResult = this.
|
|
190
|
+
suspendResult = this.g57_1.l57_1.ut(this);
|
|
191
191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
192
192
|
return suspendResult;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
continue $sm;
|
|
196
196
|
case 1:
|
|
197
|
-
var this_0 = this.
|
|
198
|
-
this.
|
|
197
|
+
var this_0 = this.h57_1;
|
|
198
|
+
this.g57_1.i57_1.p57(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
199
199
|
return Unit_instance;
|
|
200
200
|
case 2:
|
|
201
201
|
throw this.d9_1;
|
|
@@ -213,8 +213,8 @@
|
|
|
213
213
|
};
|
|
214
214
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
215
215
|
CoroutineImpl.call(this, resultContinuation);
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
216
|
+
this.y57_1 = _this__u8e3s4;
|
|
217
|
+
this.z57_1 = message;
|
|
218
218
|
}
|
|
219
219
|
protoOf($logResponseBodyCOROUTINE$).i9 = function () {
|
|
220
220
|
var suspendResult = this.c9_1;
|
|
@@ -225,14 +225,14 @@
|
|
|
225
225
|
case 0:
|
|
226
226
|
this.b9_1 = 2;
|
|
227
227
|
this.a9_1 = 1;
|
|
228
|
-
suspendResult = this.
|
|
228
|
+
suspendResult = this.y57_1.m57_1.ut(this);
|
|
229
229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
230
230
|
return suspendResult;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
continue $sm;
|
|
234
234
|
case 1:
|
|
235
|
-
this.k57_1.
|
|
235
|
+
this.y57_1.k57_1.q(this.z57_1);
|
|
236
236
|
return Unit_instance;
|
|
237
237
|
case 2:
|
|
238
238
|
throw this.d9_1;
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
};
|
|
251
251
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
252
252
|
CoroutineImpl.call(this, resultContinuation);
|
|
253
|
-
this.
|
|
253
|
+
this.i58_1 = _this__u8e3s4;
|
|
254
254
|
}
|
|
255
255
|
protoOf($closeResponseLogCOROUTINE$).i9 = function () {
|
|
256
256
|
var suspendResult = this.c9_1;
|
|
@@ -260,19 +260,19 @@
|
|
|
260
260
|
switch (tmp) {
|
|
261
261
|
case 0:
|
|
262
262
|
this.b9_1 = 2;
|
|
263
|
-
if (!this.
|
|
263
|
+
if (!this.i58_1.o57_1.atomicfu$compareAndSet(false, true))
|
|
264
264
|
return Unit_instance;
|
|
265
265
|
this.a9_1 = 1;
|
|
266
|
-
suspendResult = this.
|
|
266
|
+
suspendResult = this.i58_1.l57_1.ut(this);
|
|
267
267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
268
268
|
return suspendResult;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
continue $sm;
|
|
272
272
|
case 1:
|
|
273
|
-
var message = toString(trim(this.
|
|
273
|
+
var message = toString(trim(this.i58_1.k57_1));
|
|
274
274
|
if (charSequenceLength(message) > 0) {
|
|
275
|
-
this.
|
|
275
|
+
this.i58_1.i57_1.p57(message);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
return Unit_instance;
|
|
@@ -291,57 +291,57 @@
|
|
|
291
291
|
while (true);
|
|
292
292
|
};
|
|
293
293
|
function HttpClientCallLogger(logger) {
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
}
|
|
302
|
-
protoOf(HttpClientCallLogger).
|
|
303
|
-
var tmp0 = this.
|
|
294
|
+
this.i57_1 = logger;
|
|
295
|
+
this.j57_1 = StringBuilder_init_$Create$();
|
|
296
|
+
this.k57_1 = StringBuilder_init_$Create$();
|
|
297
|
+
this.l57_1 = Job();
|
|
298
|
+
this.m57_1 = Job();
|
|
299
|
+
this.n57_1 = atomic$boolean$1(false);
|
|
300
|
+
this.o57_1 = atomic$boolean$1(false);
|
|
301
|
+
}
|
|
302
|
+
protoOf(HttpClientCallLogger).j58 = function (message) {
|
|
303
|
+
var tmp0 = this.j57_1;
|
|
304
304
|
// Inline function 'kotlin.text.trim' call
|
|
305
305
|
// Inline function 'kotlin.text.appendLine' call
|
|
306
306
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
307
307
|
// Inline function 'kotlin.text.appendLine' call
|
|
308
308
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
309
309
|
};
|
|
310
|
-
protoOf(HttpClientCallLogger).
|
|
311
|
-
var tmp0 = this.
|
|
310
|
+
protoOf(HttpClientCallLogger).k58 = function (message) {
|
|
311
|
+
var tmp0 = this.k57_1;
|
|
312
312
|
// Inline function 'kotlin.text.trim' call
|
|
313
313
|
// Inline function 'kotlin.text.appendLine' call
|
|
314
314
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
315
315
|
// Inline function 'kotlin.text.appendLine' call
|
|
316
316
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
317
|
-
this.
|
|
317
|
+
this.m57_1.y10();
|
|
318
318
|
};
|
|
319
|
-
protoOf(HttpClientCallLogger).
|
|
319
|
+
protoOf(HttpClientCallLogger).l58 = function (message, $completion) {
|
|
320
320
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
321
321
|
tmp.c9_1 = Unit_instance;
|
|
322
322
|
tmp.d9_1 = null;
|
|
323
323
|
return tmp.i9();
|
|
324
324
|
};
|
|
325
|
-
protoOf(HttpClientCallLogger).
|
|
325
|
+
protoOf(HttpClientCallLogger).m58 = function (message, $completion) {
|
|
326
326
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
327
327
|
tmp.c9_1 = Unit_instance;
|
|
328
328
|
tmp.d9_1 = null;
|
|
329
329
|
return tmp.i9();
|
|
330
330
|
};
|
|
331
|
-
protoOf(HttpClientCallLogger).
|
|
332
|
-
if (!this.
|
|
331
|
+
protoOf(HttpClientCallLogger).n58 = function () {
|
|
332
|
+
if (!this.n57_1.atomicfu$compareAndSet(false, true))
|
|
333
333
|
return Unit_instance;
|
|
334
334
|
try {
|
|
335
|
-
var message = toString(trim(this.
|
|
335
|
+
var message = toString(trim(this.j57_1));
|
|
336
336
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
337
337
|
if (charSequenceLength(message) > 0) {
|
|
338
|
-
this.
|
|
338
|
+
this.i57_1.p57(message);
|
|
339
339
|
}
|
|
340
340
|
}finally {
|
|
341
|
-
this.
|
|
341
|
+
this.l57_1.y10();
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
protoOf(HttpClientCallLogger).
|
|
344
|
+
protoOf(HttpClientCallLogger).o58 = function ($completion) {
|
|
345
345
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
346
346
|
tmp.c9_1 = Unit_instance;
|
|
347
347
|
tmp.d9_1 = null;
|
|
@@ -363,35 +363,35 @@
|
|
|
363
363
|
function Skip(reason, byteSize) {
|
|
364
364
|
reason = reason === VOID ? null : reason;
|
|
365
365
|
byteSize = byteSize === VOID ? null : byteSize;
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
366
|
+
this.t58_1 = reason;
|
|
367
|
+
this.u58_1 = byteSize;
|
|
368
368
|
}
|
|
369
|
-
protoOf(Skip).
|
|
370
|
-
return this.
|
|
369
|
+
protoOf(Skip).s58 = function () {
|
|
370
|
+
return this.u58_1;
|
|
371
371
|
};
|
|
372
372
|
function Content() {
|
|
373
373
|
}
|
|
374
374
|
function BufferContent(buffer, charset, byteSize) {
|
|
375
375
|
byteSize = byteSize === VOID ? buffer.l1() : byteSize;
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
376
|
+
this.w58_1 = buffer;
|
|
377
|
+
this.x58_1 = charset;
|
|
378
|
+
this.y58_1 = byteSize;
|
|
379
379
|
}
|
|
380
|
-
protoOf(BufferContent).
|
|
381
|
-
return this.
|
|
380
|
+
protoOf(BufferContent).s58 = function () {
|
|
381
|
+
return this.y58_1;
|
|
382
382
|
};
|
|
383
|
-
protoOf(BufferContent).
|
|
384
|
-
return readText(this.
|
|
383
|
+
protoOf(BufferContent).v58 = function () {
|
|
384
|
+
return readText(this.w58_1, this.x58_1);
|
|
385
385
|
};
|
|
386
386
|
function BodyFilterResult() {
|
|
387
387
|
}
|
|
388
388
|
function $filterAllCOROUTINE$(_this__u8e3s4, contentLength, contentType, headers, body, resultContinuation) {
|
|
389
389
|
CoroutineImpl.call(this, resultContinuation);
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
390
|
+
this.h59_1 = _this__u8e3s4;
|
|
391
|
+
this.i59_1 = contentLength;
|
|
392
|
+
this.j59_1 = contentType;
|
|
393
|
+
this.k59_1 = headers;
|
|
394
|
+
this.l59_1 = body;
|
|
395
395
|
}
|
|
396
396
|
protoOf($filterAllCOROUTINE$).i9 = function () {
|
|
397
397
|
var suspendResult = this.c9_1;
|
|
@@ -401,13 +401,13 @@
|
|
|
401
401
|
switch (tmp) {
|
|
402
402
|
case 0:
|
|
403
403
|
this.b9_1 = 6;
|
|
404
|
-
if (this.
|
|
405
|
-
return new Skip('encoded', this.
|
|
404
|
+
if (this.k59_1.x2m('Content-Encoding')) {
|
|
405
|
+
return new Skip('encoded', this.i59_1);
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
if (!(this.
|
|
408
|
+
if (!(this.j59_1 == null) && isTextType(this.j59_1)) {
|
|
409
409
|
this.a9_1 = 5;
|
|
410
|
-
suspendResult = readBuffer(this.
|
|
410
|
+
suspendResult = readBuffer(this.l59_1, this);
|
|
411
411
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
412
412
|
return suspendResult;
|
|
413
413
|
}
|
|
@@ -420,18 +420,18 @@
|
|
|
420
420
|
case 1:
|
|
421
421
|
var tmp_0 = this;
|
|
422
422
|
var tmp_1;
|
|
423
|
-
if (!(this.
|
|
424
|
-
var tmp1_elvis_lhs = charset(this.
|
|
425
|
-
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
423
|
+
if (!(this.j59_1 == null)) {
|
|
424
|
+
var tmp1_elvis_lhs = charset(this.j59_1);
|
|
425
|
+
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp1_elvis_lhs;
|
|
426
426
|
} else {
|
|
427
|
-
tmp_1 = Charsets_getInstance().
|
|
427
|
+
tmp_1 = Charsets_getInstance().t1x_1;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
tmp_0.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
430
|
+
tmp_0.r59_1 = tmp_1;
|
|
431
|
+
this.q59_1 = false;
|
|
432
|
+
this.p59_1 = new Int8Array(1024);
|
|
433
433
|
this.a9_1 = 2;
|
|
434
|
-
suspendResult = readAvailable(this.
|
|
434
|
+
suspendResult = readAvailable(this.l59_1, this.p59_1, VOID, VOID, this);
|
|
435
435
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
436
436
|
return suspendResult;
|
|
437
437
|
}
|
|
@@ -444,16 +444,16 @@
|
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
var this_0 = new Buffer();
|
|
447
|
-
writeFully(this_0, this.
|
|
447
|
+
writeFully(this_0, this.p59_1, 0, firstReadSize);
|
|
448
448
|
var buffer = this_0;
|
|
449
449
|
var tmp_2;
|
|
450
450
|
try {
|
|
451
|
-
tmp_2 = decode(this.
|
|
451
|
+
tmp_2 = decode(this.r59_1.w1x(), buffer);
|
|
452
452
|
} catch ($p) {
|
|
453
453
|
var tmp_3;
|
|
454
454
|
if ($p instanceof MalformedInputException) {
|
|
455
455
|
var _unused_var__etf5q3 = $p;
|
|
456
|
-
this.
|
|
456
|
+
this.q59_1 = true;
|
|
457
457
|
tmp_3 = '';
|
|
458
458
|
} else {
|
|
459
459
|
throw $p;
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
var firstChunkText = tmp_2;
|
|
465
|
-
if (!this.
|
|
465
|
+
if (!this.q59_1) {
|
|
466
466
|
var lastCharIndex = -1;
|
|
467
467
|
var inductionVariable = 0;
|
|
468
468
|
var last = firstChunkText.length;
|
|
@@ -478,23 +478,23 @@
|
|
|
478
478
|
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
479
479
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
480
480
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
481
|
-
this.
|
|
481
|
+
this.q59_1 = true;
|
|
482
482
|
break $l$loop;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
if (this.
|
|
487
|
+
if (this.q59_1) {
|
|
488
488
|
var tmp_4 = this;
|
|
489
|
-
tmp_4.
|
|
489
|
+
tmp_4.m59_1 = new Skip('binary', this.i59_1);
|
|
490
490
|
this.a9_1 = 4;
|
|
491
491
|
continue $sm;
|
|
492
492
|
} else {
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
writeFully(this.
|
|
493
|
+
this.n59_1 = new Buffer();
|
|
494
|
+
this.o59_1 = this.n59_1;
|
|
495
|
+
writeFully(this.o59_1, this.p59_1, 0, firstReadSize);
|
|
496
496
|
this.a9_1 = 3;
|
|
497
|
-
suspendResult = readBuffer(this.
|
|
497
|
+
suspendResult = readBuffer(this.l59_1, this);
|
|
498
498
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
499
499
|
return suspendResult;
|
|
500
500
|
}
|
|
@@ -503,20 +503,20 @@
|
|
|
503
503
|
|
|
504
504
|
case 3:
|
|
505
505
|
var ARGUMENT = suspendResult;
|
|
506
|
-
this.
|
|
507
|
-
var ARGUMENT_0 = this.
|
|
506
|
+
this.o59_1.vq(ARGUMENT);
|
|
507
|
+
var ARGUMENT_0 = this.n59_1;
|
|
508
508
|
var tmp_5 = this;
|
|
509
|
-
var tmp2_safe_receiver = this.
|
|
509
|
+
var tmp2_safe_receiver = this.j59_1;
|
|
510
510
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
511
|
-
tmp_5.
|
|
511
|
+
tmp_5.m59_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp3_elvis_lhs);
|
|
512
512
|
this.a9_1 = 4;
|
|
513
513
|
continue $sm;
|
|
514
514
|
case 4:
|
|
515
|
-
return this.
|
|
515
|
+
return this.m59_1;
|
|
516
516
|
case 5:
|
|
517
517
|
var ARGUMENT_1 = suspendResult;
|
|
518
|
-
var tmp0_elvis_lhs = charset(this.
|
|
519
|
-
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
518
|
+
var tmp0_elvis_lhs = charset(this.j59_1);
|
|
519
|
+
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp0_elvis_lhs);
|
|
520
520
|
case 6:
|
|
521
521
|
throw this.d9_1;
|
|
522
522
|
}
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
};
|
|
534
534
|
function BinaryLogBodyFilter$1() {
|
|
535
535
|
}
|
|
536
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
536
|
+
protoOf(BinaryLogBodyFilter$1).q58 = function (contentLength, contentType, headers, body, $completion) {
|
|
537
537
|
var tmp = new $filterAllCOROUTINE$(this, contentLength, contentType, headers, body, $completion);
|
|
538
538
|
tmp.c9_1 = Unit_instance;
|
|
539
539
|
tmp.d9_1 = null;
|
|
@@ -564,9 +564,9 @@
|
|
|
564
564
|
}
|
|
565
565
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
566
566
|
Enum.call(this, name, ordinal);
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
569
|
-
this.
|
|
567
|
+
this.u59_1 = info;
|
|
568
|
+
this.v59_1 = headers;
|
|
569
|
+
this.w59_1 = body;
|
|
570
570
|
}
|
|
571
571
|
function LogLevel_ALL_getInstance() {
|
|
572
572
|
LogLevel_initEntries();
|
|
@@ -590,27 +590,27 @@
|
|
|
590
590
|
}
|
|
591
591
|
function LoggedContent(originalContent, channel) {
|
|
592
592
|
ReadChannelContent.call(this);
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
593
|
+
this.y59_1 = originalContent;
|
|
594
|
+
this.z59_1 = channel;
|
|
595
|
+
this.a5a_1 = this.y59_1.v35();
|
|
596
|
+
this.b5a_1 = this.y59_1.x35();
|
|
597
|
+
this.c5a_1 = this.y59_1.w35();
|
|
598
|
+
this.d5a_1 = this.y59_1.x2z();
|
|
599
599
|
}
|
|
600
|
-
protoOf(LoggedContent).
|
|
601
|
-
return this.
|
|
600
|
+
protoOf(LoggedContent).v35 = function () {
|
|
601
|
+
return this.a5a_1;
|
|
602
602
|
};
|
|
603
|
-
protoOf(LoggedContent).
|
|
604
|
-
return this.
|
|
603
|
+
protoOf(LoggedContent).x35 = function () {
|
|
604
|
+
return this.b5a_1;
|
|
605
605
|
};
|
|
606
|
-
protoOf(LoggedContent).
|
|
607
|
-
return this.
|
|
606
|
+
protoOf(LoggedContent).w35 = function () {
|
|
607
|
+
return this.c5a_1;
|
|
608
608
|
};
|
|
609
|
-
protoOf(LoggedContent).
|
|
610
|
-
return this.
|
|
609
|
+
protoOf(LoggedContent).x2z = function () {
|
|
610
|
+
return this.d5a_1;
|
|
611
611
|
};
|
|
612
|
-
protoOf(LoggedContent).
|
|
613
|
-
return this.
|
|
612
|
+
protoOf(LoggedContent).b36 = function () {
|
|
613
|
+
return this.z59_1;
|
|
614
614
|
};
|
|
615
615
|
function Companion() {
|
|
616
616
|
}
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
}
|
|
624
624
|
function SimpleLogger() {
|
|
625
625
|
}
|
|
626
|
-
protoOf(SimpleLogger).
|
|
626
|
+
protoOf(SimpleLogger).p57 = function (message) {
|
|
627
627
|
println('HttpClient: ' + message);
|
|
628
628
|
};
|
|
629
629
|
var SimpleLogger_instance;
|
|
@@ -648,20 +648,20 @@
|
|
|
648
648
|
function LoggingConfig() {
|
|
649
649
|
var tmp = this;
|
|
650
650
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
651
|
-
tmp.
|
|
651
|
+
tmp.e5a_1 = ArrayList_init_$Create$();
|
|
652
652
|
var tmp_0 = this;
|
|
653
653
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
654
|
-
tmp_0.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
654
|
+
tmp_0.f5a_1 = ArrayList_init_$Create$();
|
|
655
|
+
this.g5a_1 = null;
|
|
656
|
+
this.h5a_1 = LoggingFormat_Default_getInstance();
|
|
657
|
+
this.i5a_1 = LogLevel_HEADERS_getInstance();
|
|
658
|
+
this.j5a_1 = get_BinaryLogBodyFilter();
|
|
659
659
|
}
|
|
660
|
-
protoOf(LoggingConfig).
|
|
661
|
-
this.
|
|
660
|
+
protoOf(LoggingConfig).k5a = function (value) {
|
|
661
|
+
this.g5a_1 = value;
|
|
662
662
|
};
|
|
663
|
-
protoOf(LoggingConfig).
|
|
664
|
-
var tmp0_elvis_lhs = this.
|
|
663
|
+
protoOf(LoggingConfig).l5a = function () {
|
|
664
|
+
var tmp0_elvis_lhs = this.g5a_1;
|
|
665
665
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
666
666
|
};
|
|
667
667
|
var LoggingFormat_Default_instance;
|
|
@@ -677,26 +677,6 @@
|
|
|
677
677
|
function LoggingFormat(name, ordinal) {
|
|
678
678
|
Enum.call(this, name, ordinal);
|
|
679
679
|
}
|
|
680
|
-
function pathQuery(_this__u8e3s4) {
|
|
681
|
-
_init_properties_Logging_kt__66pui5();
|
|
682
|
-
// Inline function 'kotlin.text.buildString' call
|
|
683
|
-
// Inline function 'kotlin.apply' call
|
|
684
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
685
|
-
// Inline function 'kotlin.text.isEmpty' call
|
|
686
|
-
var this_1 = _this__u8e3s4.m34();
|
|
687
|
-
if (charSequenceLength(this_1) === 0) {
|
|
688
|
-
this_0.q('/');
|
|
689
|
-
} else {
|
|
690
|
-
this_0.q(_this__u8e3s4.m34());
|
|
691
|
-
}
|
|
692
|
-
// Inline function 'kotlin.text.isEmpty' call
|
|
693
|
-
var this_2 = _this__u8e3s4.p34();
|
|
694
|
-
if (!(charSequenceLength(this_2) === 0)) {
|
|
695
|
-
this_0.q('?');
|
|
696
|
-
this_0.q(_this__u8e3s4.p34());
|
|
697
|
-
}
|
|
698
|
-
return this_0.toString();
|
|
699
|
-
}
|
|
700
680
|
function computeRequestBodySize(content) {
|
|
701
681
|
_init_properties_Logging_kt__66pui5();
|
|
702
682
|
// Inline function 'kotlin.check' call
|
|
@@ -705,10 +685,10 @@
|
|
|
705
685
|
}
|
|
706
686
|
var tmp;
|
|
707
687
|
if (content instanceof ByteArrayContent) {
|
|
708
|
-
tmp = fromInt(content.
|
|
688
|
+
tmp = fromInt(content.y35().length);
|
|
709
689
|
} else {
|
|
710
690
|
if (content instanceof ContentWrapper) {
|
|
711
|
-
tmp = computeRequestBodySize(content.
|
|
691
|
+
tmp = computeRequestBodySize(content.h36());
|
|
712
692
|
} else {
|
|
713
693
|
if (content instanceof NoContent) {
|
|
714
694
|
tmp = 0n;
|
|
@@ -726,27 +706,27 @@
|
|
|
726
706
|
return tmp;
|
|
727
707
|
}
|
|
728
708
|
function Context(context) {
|
|
729
|
-
this.
|
|
709
|
+
this.m5a_1 = context;
|
|
730
710
|
}
|
|
731
|
-
protoOf(Context).
|
|
732
|
-
return this.
|
|
711
|
+
protoOf(Context).n5a = function (content, $completion) {
|
|
712
|
+
return this.m5a_1.x2q(content, $completion);
|
|
733
713
|
};
|
|
734
|
-
protoOf(Context).
|
|
735
|
-
return this.
|
|
714
|
+
protoOf(Context).o5a = function ($completion) {
|
|
715
|
+
return this.m5a_1.y2q($completion);
|
|
736
716
|
};
|
|
737
717
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
738
|
-
this.
|
|
718
|
+
this.x5a_1 = $handler;
|
|
739
719
|
CoroutineImpl.call(this, resultContinuation);
|
|
740
720
|
}
|
|
741
|
-
protoOf(SendHook$install$slambda).
|
|
742
|
-
var tmp = this.
|
|
721
|
+
protoOf(SendHook$install$slambda).j3o = function ($this$intercept, it, $completion) {
|
|
722
|
+
var tmp = this.k3o($this$intercept, it, $completion);
|
|
743
723
|
tmp.c9_1 = Unit_instance;
|
|
744
724
|
tmp.d9_1 = null;
|
|
745
725
|
return tmp.i9();
|
|
746
726
|
};
|
|
747
727
|
protoOf(SendHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
748
728
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
749
|
-
return this.
|
|
729
|
+
return this.j3o(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
750
730
|
};
|
|
751
731
|
protoOf(SendHook$install$slambda).i9 = function () {
|
|
752
732
|
var suspendResult = this.c9_1;
|
|
@@ -757,7 +737,7 @@
|
|
|
757
737
|
case 0:
|
|
758
738
|
this.b9_1 = 2;
|
|
759
739
|
this.a9_1 = 1;
|
|
760
|
-
suspendResult = this.
|
|
740
|
+
suspendResult = this.x5a_1(new Context(this.y5a_1), this.y5a_1.t2r_1, this);
|
|
761
741
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
762
742
|
return suspendResult;
|
|
763
743
|
}
|
|
@@ -779,52 +759,52 @@
|
|
|
779
759
|
}
|
|
780
760
|
while (true);
|
|
781
761
|
};
|
|
782
|
-
protoOf(SendHook$install$slambda).
|
|
783
|
-
var i = new SendHook$install$slambda(this.
|
|
784
|
-
i.
|
|
785
|
-
i.
|
|
762
|
+
protoOf(SendHook$install$slambda).k3o = function ($this$intercept, it, completion) {
|
|
763
|
+
var i = new SendHook$install$slambda(this.x5a_1, completion);
|
|
764
|
+
i.y5a_1 = $this$intercept;
|
|
765
|
+
i.z5a_1 = it;
|
|
786
766
|
return i;
|
|
787
767
|
};
|
|
788
768
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
789
769
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
790
770
|
var l = function ($this$intercept, it, $completion) {
|
|
791
|
-
return i.
|
|
771
|
+
return i.j3o($this$intercept, it, $completion);
|
|
792
772
|
};
|
|
793
773
|
l.$arity = 2;
|
|
794
774
|
return l;
|
|
795
775
|
}
|
|
796
776
|
function SendHook() {
|
|
797
777
|
}
|
|
798
|
-
protoOf(SendHook).
|
|
799
|
-
var tmp = Phases_getInstance().
|
|
800
|
-
client.
|
|
778
|
+
protoOf(SendHook).a5b = function (client, handler) {
|
|
779
|
+
var tmp = Phases_getInstance().a3q_1;
|
|
780
|
+
client.s3n_1.x2r(tmp, SendHook$install$slambda_0(handler, null));
|
|
801
781
|
};
|
|
802
|
-
protoOf(SendHook).
|
|
803
|
-
return this.
|
|
782
|
+
protoOf(SendHook).a3x = function (client, handler) {
|
|
783
|
+
return this.a5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
804
784
|
};
|
|
805
785
|
var SendHook_instance;
|
|
806
786
|
function SendHook_getInstance() {
|
|
807
787
|
return SendHook_instance;
|
|
808
788
|
}
|
|
809
789
|
function Context_0(context) {
|
|
810
|
-
this.
|
|
790
|
+
this.b5b_1 = context;
|
|
811
791
|
}
|
|
812
|
-
protoOf(Context_0).
|
|
813
|
-
return this.
|
|
792
|
+
protoOf(Context_0).z4l = function (response, $completion) {
|
|
793
|
+
return this.b5b_1.x2q(response, $completion);
|
|
814
794
|
};
|
|
815
795
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
816
|
-
this.
|
|
796
|
+
this.k5b_1 = $handler;
|
|
817
797
|
CoroutineImpl.call(this, resultContinuation);
|
|
818
798
|
}
|
|
819
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
820
|
-
var tmp = this.
|
|
799
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).m3x = function ($this$intercept, it, $completion) {
|
|
800
|
+
var tmp = this.n3x($this$intercept, it, $completion);
|
|
821
801
|
tmp.c9_1 = Unit_instance;
|
|
822
802
|
tmp.d9_1 = null;
|
|
823
803
|
return tmp.i9();
|
|
824
804
|
};
|
|
825
805
|
protoOf(ResponseAfterEncodingHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
826
806
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
827
|
-
return this.
|
|
807
|
+
return this.m3x(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
828
808
|
};
|
|
829
809
|
protoOf(ResponseAfterEncodingHook$install$slambda).i9 = function () {
|
|
830
810
|
var suspendResult = this.c9_1;
|
|
@@ -835,7 +815,7 @@
|
|
|
835
815
|
case 0:
|
|
836
816
|
this.b9_1 = 2;
|
|
837
817
|
this.a9_1 = 1;
|
|
838
|
-
suspendResult = this.
|
|
818
|
+
suspendResult = this.k5b_1(new Context_0(this.l5b_1), this.l5b_1.w2q(), this);
|
|
839
819
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
840
820
|
return suspendResult;
|
|
841
821
|
}
|
|
@@ -857,53 +837,53 @@
|
|
|
857
837
|
}
|
|
858
838
|
while (true);
|
|
859
839
|
};
|
|
860
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
861
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
862
|
-
i.
|
|
863
|
-
i.
|
|
840
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).n3x = function ($this$intercept, it, completion) {
|
|
841
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.k5b_1, completion);
|
|
842
|
+
i.l5b_1 = $this$intercept;
|
|
843
|
+
i.m5b_1 = it;
|
|
864
844
|
return i;
|
|
865
845
|
};
|
|
866
846
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
867
847
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
868
848
|
var l = function ($this$intercept, it, $completion) {
|
|
869
|
-
return i.
|
|
849
|
+
return i.m3x($this$intercept, it, $completion);
|
|
870
850
|
};
|
|
871
851
|
l.$arity = 2;
|
|
872
852
|
return l;
|
|
873
853
|
}
|
|
874
854
|
function ResponseAfterEncodingHook() {
|
|
875
855
|
}
|
|
876
|
-
protoOf(ResponseAfterEncodingHook).
|
|
856
|
+
protoOf(ResponseAfterEncodingHook).n5b = function (client, handler) {
|
|
877
857
|
var afterState = new PipelinePhase('AfterState');
|
|
878
|
-
client.
|
|
879
|
-
client.
|
|
858
|
+
client.t3n_1.u2r(Phases_getInstance_0().q3x_1, afterState);
|
|
859
|
+
client.t3n_1.x2r(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
880
860
|
};
|
|
881
|
-
protoOf(ResponseAfterEncodingHook).
|
|
882
|
-
return this.
|
|
861
|
+
protoOf(ResponseAfterEncodingHook).a3x = function (client, handler) {
|
|
862
|
+
return this.n5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
883
863
|
};
|
|
884
864
|
var ResponseAfterEncodingHook_instance;
|
|
885
865
|
function ResponseAfterEncodingHook_getInstance() {
|
|
886
866
|
return ResponseAfterEncodingHook_instance;
|
|
887
867
|
}
|
|
888
868
|
function Context_1(context) {
|
|
889
|
-
this.
|
|
869
|
+
this.o5b_1 = context;
|
|
890
870
|
}
|
|
891
|
-
protoOf(Context_1).
|
|
892
|
-
return this.
|
|
871
|
+
protoOf(Context_1).p5b = function ($completion) {
|
|
872
|
+
return this.o5b_1.y2q($completion);
|
|
893
873
|
};
|
|
894
874
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
895
|
-
this.
|
|
875
|
+
this.y5b_1 = $handler;
|
|
896
876
|
CoroutineImpl.call(this, resultContinuation);
|
|
897
877
|
}
|
|
898
|
-
protoOf(ResponseHook$install$slambda).
|
|
899
|
-
var tmp = this.
|
|
878
|
+
protoOf(ResponseHook$install$slambda).m3x = function ($this$intercept, it, $completion) {
|
|
879
|
+
var tmp = this.n3x($this$intercept, it, $completion);
|
|
900
880
|
tmp.c9_1 = Unit_instance;
|
|
901
881
|
tmp.d9_1 = null;
|
|
902
882
|
return tmp.i9();
|
|
903
883
|
};
|
|
904
884
|
protoOf(ResponseHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
905
885
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
906
|
-
return this.
|
|
886
|
+
return this.m3x(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
907
887
|
};
|
|
908
888
|
protoOf(ResponseHook$install$slambda).i9 = function () {
|
|
909
889
|
var suspendResult = this.c9_1;
|
|
@@ -914,7 +894,7 @@
|
|
|
914
894
|
case 0:
|
|
915
895
|
this.b9_1 = 2;
|
|
916
896
|
this.a9_1 = 1;
|
|
917
|
-
suspendResult = this.
|
|
897
|
+
suspendResult = this.y5b_1(new Context_1(this.z5b_1), this.z5b_1.w2q(), this);
|
|
918
898
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
919
899
|
return suspendResult;
|
|
920
900
|
}
|
|
@@ -936,52 +916,52 @@
|
|
|
936
916
|
}
|
|
937
917
|
while (true);
|
|
938
918
|
};
|
|
939
|
-
protoOf(ResponseHook$install$slambda).
|
|
940
|
-
var i = new ResponseHook$install$slambda(this.
|
|
941
|
-
i.
|
|
942
|
-
i.
|
|
919
|
+
protoOf(ResponseHook$install$slambda).n3x = function ($this$intercept, it, completion) {
|
|
920
|
+
var i = new ResponseHook$install$slambda(this.y5b_1, completion);
|
|
921
|
+
i.z5b_1 = $this$intercept;
|
|
922
|
+
i.a5c_1 = it;
|
|
943
923
|
return i;
|
|
944
924
|
};
|
|
945
925
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
946
926
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
947
927
|
var l = function ($this$intercept, it, $completion) {
|
|
948
|
-
return i.
|
|
928
|
+
return i.m3x($this$intercept, it, $completion);
|
|
949
929
|
};
|
|
950
930
|
l.$arity = 2;
|
|
951
931
|
return l;
|
|
952
932
|
}
|
|
953
933
|
function ResponseHook() {
|
|
954
934
|
}
|
|
955
|
-
protoOf(ResponseHook).
|
|
956
|
-
var tmp = Phases_getInstance_0().
|
|
957
|
-
client.
|
|
935
|
+
protoOf(ResponseHook).b5c = function (client, handler) {
|
|
936
|
+
var tmp = Phases_getInstance_0().q3x_1;
|
|
937
|
+
client.t3n_1.x2r(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
958
938
|
};
|
|
959
|
-
protoOf(ResponseHook).
|
|
960
|
-
return this.
|
|
939
|
+
protoOf(ResponseHook).a3x = function (client, handler) {
|
|
940
|
+
return this.b5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
961
941
|
};
|
|
962
942
|
var ResponseHook_instance;
|
|
963
943
|
function ResponseHook_getInstance() {
|
|
964
944
|
return ResponseHook_instance;
|
|
965
945
|
}
|
|
966
946
|
function Context_2(context) {
|
|
967
|
-
this.
|
|
947
|
+
this.c5c_1 = context;
|
|
968
948
|
}
|
|
969
|
-
protoOf(Context_2).
|
|
970
|
-
return this.
|
|
949
|
+
protoOf(Context_2).d5c = function ($completion) {
|
|
950
|
+
return this.c5c_1.y2q($completion);
|
|
971
951
|
};
|
|
972
952
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
973
|
-
this.
|
|
953
|
+
this.m5c_1 = $handler;
|
|
974
954
|
CoroutineImpl.call(this, resultContinuation);
|
|
975
955
|
}
|
|
976
|
-
protoOf(ReceiveHook$install$slambda).
|
|
977
|
-
var tmp = this.
|
|
956
|
+
protoOf(ReceiveHook$install$slambda).e3p = function ($this$intercept, it, $completion) {
|
|
957
|
+
var tmp = this.f3p($this$intercept, it, $completion);
|
|
978
958
|
tmp.c9_1 = Unit_instance;
|
|
979
959
|
tmp.d9_1 = null;
|
|
980
960
|
return tmp.i9();
|
|
981
961
|
};
|
|
982
962
|
protoOf(ReceiveHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
983
963
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
984
|
-
return this.
|
|
964
|
+
return this.e3p(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
985
965
|
};
|
|
986
966
|
protoOf(ReceiveHook$install$slambda).i9 = function () {
|
|
987
967
|
var suspendResult = this.c9_1;
|
|
@@ -992,7 +972,7 @@
|
|
|
992
972
|
case 0:
|
|
993
973
|
this.b9_1 = 2;
|
|
994
974
|
this.a9_1 = 1;
|
|
995
|
-
suspendResult = this.
|
|
975
|
+
suspendResult = this.m5c_1(new Context_2(this.n5c_1), this.n5c_1.t2r_1, this);
|
|
996
976
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
997
977
|
return suspendResult;
|
|
998
978
|
}
|
|
@@ -1014,28 +994,28 @@
|
|
|
1014
994
|
}
|
|
1015
995
|
while (true);
|
|
1016
996
|
};
|
|
1017
|
-
protoOf(ReceiveHook$install$slambda).
|
|
1018
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
1019
|
-
i.
|
|
1020
|
-
i.
|
|
997
|
+
protoOf(ReceiveHook$install$slambda).f3p = function ($this$intercept, it, completion) {
|
|
998
|
+
var i = new ReceiveHook$install$slambda(this.m5c_1, completion);
|
|
999
|
+
i.n5c_1 = $this$intercept;
|
|
1000
|
+
i.o5c_1 = it;
|
|
1021
1001
|
return i;
|
|
1022
1002
|
};
|
|
1023
1003
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
1024
1004
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
1025
1005
|
var l = function ($this$intercept, it, $completion) {
|
|
1026
|
-
return i.
|
|
1006
|
+
return i.e3p($this$intercept, it, $completion);
|
|
1027
1007
|
};
|
|
1028
1008
|
l.$arity = 2;
|
|
1029
1009
|
return l;
|
|
1030
1010
|
}
|
|
1031
1011
|
function ReceiveHook() {
|
|
1032
1012
|
}
|
|
1033
|
-
protoOf(ReceiveHook).
|
|
1034
|
-
var tmp = Phases_getInstance_1().
|
|
1035
|
-
client.
|
|
1013
|
+
protoOf(ReceiveHook).p5c = function (client, handler) {
|
|
1014
|
+
var tmp = Phases_getInstance_1().o3q_1;
|
|
1015
|
+
client.r3n_1.x2r(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
1036
1016
|
};
|
|
1037
|
-
protoOf(ReceiveHook).
|
|
1038
|
-
return this.
|
|
1017
|
+
protoOf(ReceiveHook).a3x = function (client, handler) {
|
|
1018
|
+
return this.p5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1039
1019
|
};
|
|
1040
1020
|
var ReceiveHook_instance;
|
|
1041
1021
|
function ReceiveHook_getInstance() {
|
|
@@ -1050,27 +1030,27 @@
|
|
|
1050
1030
|
}
|
|
1051
1031
|
function Logging$lambda($this$createClientPlugin) {
|
|
1052
1032
|
_init_properties_Logging_kt__66pui5();
|
|
1053
|
-
var logger = $this$createClientPlugin.
|
|
1054
|
-
var level = $this$createClientPlugin.
|
|
1055
|
-
var filters = $this$createClientPlugin.
|
|
1056
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
1057
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
1058
|
-
var bodyFilter = $this$createClientPlugin.
|
|
1033
|
+
var logger = $this$createClientPlugin.u3x_1.l5a();
|
|
1034
|
+
var level = $this$createClientPlugin.u3x_1.i5a_1;
|
|
1035
|
+
var filters = $this$createClientPlugin.u3x_1.e5a_1;
|
|
1036
|
+
var sanitizedHeaders = $this$createClientPlugin.u3x_1.f5a_1;
|
|
1037
|
+
var okHttpFormat = $this$createClientPlugin.u3x_1.h5a_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1038
|
+
var bodyFilter = $this$createClientPlugin.u3x_1.j5a_1;
|
|
1059
1039
|
var tmp = SendHook_instance;
|
|
1060
|
-
$this$createClientPlugin.
|
|
1040
|
+
$this$createClientPlugin.x3x(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
1061
1041
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
1062
|
-
$this$createClientPlugin.
|
|
1042
|
+
$this$createClientPlugin.x3x(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
1063
1043
|
var tmp_1 = ResponseHook_instance;
|
|
1064
|
-
$this$createClientPlugin.
|
|
1044
|
+
$this$createClientPlugin.x3x(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
1065
1045
|
var tmp_2 = ReceiveHook_instance;
|
|
1066
|
-
$this$createClientPlugin.
|
|
1046
|
+
$this$createClientPlugin.x3x(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, logger, null));
|
|
1067
1047
|
if (okHttpFormat)
|
|
1068
1048
|
return Unit_instance;
|
|
1069
|
-
if (!level.
|
|
1049
|
+
if (!level.w59_1)
|
|
1070
1050
|
return Unit_instance;
|
|
1071
1051
|
var tmp_3 = get_ResponseObserver();
|
|
1072
|
-
var responseObserver = tmp_3.
|
|
1073
|
-
get_ResponseObserver().
|
|
1052
|
+
var responseObserver = tmp_3.v3q(Logging$lambda$lambda(level));
|
|
1053
|
+
get_ResponseObserver().w3q(responseObserver, $this$createClientPlugin.t3x_1);
|
|
1074
1054
|
return Unit_instance;
|
|
1075
1055
|
}
|
|
1076
1056
|
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
@@ -1078,18 +1058,18 @@
|
|
|
1078
1058
|
return it;
|
|
1079
1059
|
}
|
|
1080
1060
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1061
|
+
this.y5c_1 = $content;
|
|
1062
|
+
this.z5c_1 = $channel;
|
|
1083
1063
|
CoroutineImpl.call(this, resultContinuation);
|
|
1084
1064
|
}
|
|
1085
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1086
|
-
var tmp = this.
|
|
1065
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).t1w = function ($this$launch, $completion) {
|
|
1066
|
+
var tmp = this.u1w($this$launch, $completion);
|
|
1087
1067
|
tmp.c9_1 = Unit_instance;
|
|
1088
1068
|
tmp.d9_1 = null;
|
|
1089
1069
|
return tmp.i9();
|
|
1090
1070
|
};
|
|
1091
1071
|
protoOf(Logging$lambda$logOutgoingContent$slambda).u9 = function (p1, $completion) {
|
|
1092
|
-
return this.
|
|
1072
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1093
1073
|
};
|
|
1094
1074
|
protoOf(Logging$lambda$logOutgoingContent$slambda).i9 = function () {
|
|
1095
1075
|
var suspendResult = this.c9_1;
|
|
@@ -1100,14 +1080,14 @@
|
|
|
1100
1080
|
case 0:
|
|
1101
1081
|
this.b9_1 = 2;
|
|
1102
1082
|
this.a9_1 = 1;
|
|
1103
|
-
suspendResult = this.
|
|
1083
|
+
suspendResult = this.y5c_1.d36(this.z5c_1, this);
|
|
1104
1084
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1105
1085
|
return suspendResult;
|
|
1106
1086
|
}
|
|
1107
1087
|
|
|
1108
1088
|
continue $sm;
|
|
1109
1089
|
case 1:
|
|
1110
|
-
this.
|
|
1090
|
+
this.z5c_1.l4();
|
|
1111
1091
|
return Unit_instance;
|
|
1112
1092
|
case 2:
|
|
1113
1093
|
throw this.d9_1;
|
|
@@ -1123,22 +1103,22 @@
|
|
|
1123
1103
|
}
|
|
1124
1104
|
while (true);
|
|
1125
1105
|
};
|
|
1126
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1127
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1128
|
-
i.
|
|
1106
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).u1w = function ($this$launch, completion) {
|
|
1107
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.y5c_1, this.z5c_1, completion);
|
|
1108
|
+
i.a5d_1 = $this$launch;
|
|
1129
1109
|
return i;
|
|
1130
1110
|
};
|
|
1131
1111
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1132
1112
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1133
1113
|
var l = function ($this$launch, $completion) {
|
|
1134
|
-
return i.
|
|
1114
|
+
return i.t1w($this$launch, $completion);
|
|
1135
1115
|
};
|
|
1136
1116
|
l.$arity = 1;
|
|
1137
1117
|
return l;
|
|
1138
1118
|
}
|
|
1139
1119
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1140
1120
|
_init_properties_Logging_kt__66pui5();
|
|
1141
|
-
return GZipEncoder_getInstance().
|
|
1121
|
+
return GZipEncoder_getInstance().p2n(channel);
|
|
1142
1122
|
}
|
|
1143
1123
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1144
1124
|
return function ($this$replaceResponse) {
|
|
@@ -1146,20 +1126,20 @@
|
|
|
1146
1126
|
};
|
|
1147
1127
|
}
|
|
1148
1128
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1149
|
-
this.
|
|
1150
|
-
this.
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1129
|
+
this.j5d_1 = $channel;
|
|
1130
|
+
this.k5d_1 = $charset;
|
|
1131
|
+
this.l5d_1 = $requestLog;
|
|
1132
|
+
this.m5d_1 = $logger;
|
|
1153
1133
|
CoroutineImpl.call(this, resultContinuation);
|
|
1154
1134
|
}
|
|
1155
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1156
|
-
var tmp = this.
|
|
1135
|
+
protoOf(Logging$lambda$logRequestBody$slambda).t1w = function ($this$launch, $completion) {
|
|
1136
|
+
var tmp = this.u1w($this$launch, $completion);
|
|
1157
1137
|
tmp.c9_1 = Unit_instance;
|
|
1158
1138
|
tmp.d9_1 = null;
|
|
1159
1139
|
return tmp.i9();
|
|
1160
1140
|
};
|
|
1161
1141
|
protoOf(Logging$lambda$logRequestBody$slambda).u9 = function (p1, $completion) {
|
|
1162
|
-
return this.
|
|
1142
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1163
1143
|
};
|
|
1164
1144
|
protoOf(Logging$lambda$logRequestBody$slambda).i9 = function () {
|
|
1165
1145
|
var suspendResult = this.c9_1;
|
|
@@ -1173,8 +1153,8 @@
|
|
|
1173
1153
|
continue $sm;
|
|
1174
1154
|
case 1:
|
|
1175
1155
|
this.b9_1 = 6;
|
|
1176
|
-
var tmp0 = this.
|
|
1177
|
-
this.
|
|
1156
|
+
var tmp0 = this.j5d_1;
|
|
1157
|
+
this.q5d_1 = this.k5d_1;
|
|
1178
1158
|
this.b9_1 = 3;
|
|
1179
1159
|
this.a9_1 = 2;
|
|
1180
1160
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1185,7 +1165,7 @@
|
|
|
1185
1165
|
continue $sm;
|
|
1186
1166
|
case 2:
|
|
1187
1167
|
var ARGUMENT = suspendResult;
|
|
1188
|
-
this.
|
|
1168
|
+
this.p5d_1 = readText(ARGUMENT, this.q5d_1);
|
|
1189
1169
|
this.b9_1 = 6;
|
|
1190
1170
|
this.a9_1 = 4;
|
|
1191
1171
|
continue $sm;
|
|
@@ -1195,7 +1175,7 @@
|
|
|
1195
1175
|
if (tmp_0 instanceof Error) {
|
|
1196
1176
|
var cause = this.d9_1;
|
|
1197
1177
|
var tmp_1 = this;
|
|
1198
|
-
tmp_1.
|
|
1178
|
+
tmp_1.p5d_1 = null;
|
|
1199
1179
|
this.a9_1 = 4;
|
|
1200
1180
|
continue $sm;
|
|
1201
1181
|
} else {
|
|
@@ -1204,27 +1184,27 @@
|
|
|
1204
1184
|
|
|
1205
1185
|
case 4:
|
|
1206
1186
|
this.b9_1 = 6;
|
|
1207
|
-
var tmp0_elvis_lhs = this.
|
|
1187
|
+
var tmp0_elvis_lhs = this.p5d_1;
|
|
1208
1188
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1209
|
-
var tmp0_0 = this.
|
|
1189
|
+
var tmp0_0 = this.l5d_1;
|
|
1210
1190
|
var value = 'BODY START';
|
|
1211
1191
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1192
|
+
this.l5d_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1193
|
+
this.o5d_1 = this.l5d_1.q('BODY END');
|
|
1214
1194
|
this.b9_1 = 7;
|
|
1215
1195
|
this.a9_1 = 5;
|
|
1216
1196
|
continue $sm;
|
|
1217
1197
|
case 5:
|
|
1218
|
-
this.
|
|
1198
|
+
this.o5d_1;
|
|
1219
1199
|
this.b9_1 = 7;
|
|
1220
|
-
this.
|
|
1221
|
-
this.
|
|
1200
|
+
this.m5d_1.j58(this.l5d_1.toString());
|
|
1201
|
+
this.m5d_1.n58();
|
|
1222
1202
|
return Unit_instance;
|
|
1223
1203
|
case 6:
|
|
1224
1204
|
this.b9_1 = 7;
|
|
1225
1205
|
var t = this.d9_1;
|
|
1226
|
-
this.
|
|
1227
|
-
this.
|
|
1206
|
+
this.m5d_1.j58(this.l5d_1.toString());
|
|
1207
|
+
this.m5d_1.n58();
|
|
1228
1208
|
throw t;
|
|
1229
1209
|
case 7:
|
|
1230
1210
|
throw this.d9_1;
|
|
@@ -1240,15 +1220,15 @@
|
|
|
1240
1220
|
}
|
|
1241
1221
|
while (true);
|
|
1242
1222
|
};
|
|
1243
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1244
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1245
|
-
i.
|
|
1223
|
+
protoOf(Logging$lambda$logRequestBody$slambda).u1w = function ($this$launch, completion) {
|
|
1224
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.j5d_1, this.k5d_1, this.l5d_1, this.m5d_1, completion);
|
|
1225
|
+
i.n5d_1 = $this$launch;
|
|
1246
1226
|
return i;
|
|
1247
1227
|
};
|
|
1248
1228
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1249
1229
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1250
1230
|
var l = function ($this$launch, $completion) {
|
|
1251
|
-
return i.
|
|
1231
|
+
return i.t1w($this$launch, $completion);
|
|
1252
1232
|
};
|
|
1253
1233
|
l.$arity = 1;
|
|
1254
1234
|
return l;
|
|
@@ -1337,47 +1317,47 @@
|
|
|
1337
1317
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1338
1318
|
var requestLog = StringBuilder_init_$Create$();
|
|
1339
1319
|
// Inline function 'kotlin.text.appendLine' call
|
|
1340
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1320
|
+
var value = 'BODY Content-Type: ' + toString_0(content.v35());
|
|
1341
1321
|
// Inline function 'kotlin.text.appendLine' call
|
|
1342
1322
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1343
|
-
var tmp0_safe_receiver = content.
|
|
1323
|
+
var tmp0_safe_receiver = content.v35();
|
|
1344
1324
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1345
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
1325
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp1_elvis_lhs;
|
|
1346
1326
|
var channel = new ByteChannel();
|
|
1347
1327
|
var tmp = GlobalScope_instance;
|
|
1348
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1328
|
+
var tmp_0 = Dispatchers_getInstance().e15_1.yg(MDCContext());
|
|
1349
1329
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1350
1330
|
return observe(content, channel, $completion);
|
|
1351
1331
|
}
|
|
1352
1332
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1353
|
-
if (level.
|
|
1354
|
-
logger.
|
|
1333
|
+
if (level.u59_1) {
|
|
1334
|
+
logger.p57('REQUEST ' + Url(context.q3p_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1355
1335
|
}
|
|
1356
1336
|
}
|
|
1357
1337
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1358
|
-
var tmp = request.
|
|
1338
|
+
var tmp = request.t3p_1;
|
|
1359
1339
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1360
1340
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1361
|
-
request.
|
|
1341
|
+
request.v3p_1.r2j(get_ClientCallLogger(), callLogger);
|
|
1362
1342
|
// Inline function 'kotlin.text.buildString' call
|
|
1363
1343
|
// Inline function 'kotlin.apply' call
|
|
1364
1344
|
var this_0 = StringBuilder_init_$Create$();
|
|
1365
|
-
if (level.
|
|
1345
|
+
if (level.u59_1) {
|
|
1366
1346
|
// Inline function 'kotlin.text.appendLine' call
|
|
1367
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1347
|
+
var value = 'REQUEST: ' + Url(request.q3p_1).toString();
|
|
1368
1348
|
// Inline function 'kotlin.text.appendLine' call
|
|
1369
1349
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1370
1350
|
// Inline function 'kotlin.text.appendLine' call
|
|
1371
|
-
var value_0 = 'METHOD: ' + request.
|
|
1351
|
+
var value_0 = 'METHOD: ' + request.r3p_1.toString();
|
|
1372
1352
|
// Inline function 'kotlin.text.appendLine' call
|
|
1373
1353
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1374
1354
|
}
|
|
1375
|
-
if (level.
|
|
1355
|
+
if (level.v59_1) {
|
|
1376
1356
|
// Inline function 'kotlin.text.appendLine' call
|
|
1377
1357
|
var value_1 = 'COMMON HEADERS';
|
|
1378
1358
|
// Inline function 'kotlin.text.appendLine' call
|
|
1379
1359
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1380
|
-
logHeaders(this_0, request.
|
|
1360
|
+
logHeaders(this_0, request.s3p_1.c2o(), sanitizedHeaders);
|
|
1381
1361
|
// Inline function 'kotlin.text.appendLine' call
|
|
1382
1362
|
var value_2 = 'CONTENT HEADERS';
|
|
1383
1363
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -1388,7 +1368,7 @@
|
|
|
1388
1368
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1389
1369
|
while (_iterator__ex2g4s.u()) {
|
|
1390
1370
|
var element = _iterator__ex2g4s.v();
|
|
1391
|
-
if (element.
|
|
1371
|
+
if (element.q5g_1('Content-Length')) {
|
|
1392
1372
|
tmp$ret$11 = element;
|
|
1393
1373
|
break $l$block;
|
|
1394
1374
|
}
|
|
@@ -1396,14 +1376,14 @@
|
|
|
1396
1376
|
tmp$ret$11 = null;
|
|
1397
1377
|
}
|
|
1398
1378
|
var tmp0_safe_receiver = tmp$ret$11;
|
|
1399
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1379
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p5g_1;
|
|
1400
1380
|
var tmp$ret$13;
|
|
1401
1381
|
$l$block_0: {
|
|
1402
1382
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1403
1383
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1404
1384
|
while (_iterator__ex2g4s_0.u()) {
|
|
1405
1385
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1406
|
-
if (element_0.
|
|
1386
|
+
if (element_0.q5g_1('Content-Type')) {
|
|
1407
1387
|
tmp$ret$13 = element_0;
|
|
1408
1388
|
break $l$block_0;
|
|
1409
1389
|
}
|
|
@@ -1411,65 +1391,65 @@
|
|
|
1411
1391
|
tmp$ret$13 = null;
|
|
1412
1392
|
}
|
|
1413
1393
|
var tmp1_safe_receiver = tmp$ret$13;
|
|
1414
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1415
|
-
var tmp2_safe_receiver = content.
|
|
1394
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p5g_1;
|
|
1395
|
+
var tmp2_safe_receiver = content.x35();
|
|
1416
1396
|
if (tmp2_safe_receiver == null)
|
|
1417
1397
|
null;
|
|
1418
1398
|
else {
|
|
1419
1399
|
// Inline function 'kotlin.let' call
|
|
1420
1400
|
logHeader(this_0, 'Content-Length', contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1421
1401
|
}
|
|
1422
|
-
var tmp3_safe_receiver = content.
|
|
1402
|
+
var tmp3_safe_receiver = content.v35();
|
|
1423
1403
|
if (tmp3_safe_receiver == null)
|
|
1424
1404
|
null;
|
|
1425
1405
|
else {
|
|
1426
1406
|
// Inline function 'kotlin.let' call
|
|
1427
1407
|
logHeader(this_0, 'Content-Type', contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1428
1408
|
}
|
|
1429
|
-
logHeaders(this_0, content.
|
|
1409
|
+
logHeaders(this_0, content.x2z().c2o(), sanitizedHeaders);
|
|
1430
1410
|
}
|
|
1431
1411
|
var message = this_0.toString();
|
|
1432
1412
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1433
1413
|
if (charSequenceLength(message) > 0) {
|
|
1434
|
-
callLogger.
|
|
1414
|
+
callLogger.j58(message);
|
|
1435
1415
|
}
|
|
1436
1416
|
var tmp_0;
|
|
1437
1417
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1438
1418
|
if (charSequenceLength(message) === 0) {
|
|
1439
1419
|
tmp_0 = true;
|
|
1440
1420
|
} else {
|
|
1441
|
-
tmp_0 = !level.
|
|
1421
|
+
tmp_0 = !level.w59_1;
|
|
1442
1422
|
}
|
|
1443
1423
|
if (tmp_0) {
|
|
1444
|
-
callLogger.
|
|
1424
|
+
callLogger.n58();
|
|
1445
1425
|
return null;
|
|
1446
1426
|
}
|
|
1447
1427
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1448
1428
|
}
|
|
1449
1429
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1450
|
-
if (!level.
|
|
1430
|
+
if (!level.u59_1)
|
|
1451
1431
|
return Unit_instance;
|
|
1452
|
-
log.q('RESPONSE ' + request.
|
|
1432
|
+
log.q('RESPONSE ' + request.h3r().toString() + ' failed with exception: ' + cause.toString());
|
|
1453
1433
|
}
|
|
1454
1434
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1455
|
-
this.
|
|
1456
|
-
this.
|
|
1457
|
-
this.
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1435
|
+
this.z5g_1 = $okHttpFormat;
|
|
1436
|
+
this.a5h_1 = $logger;
|
|
1437
|
+
this.b5h_1 = $filters;
|
|
1438
|
+
this.c5h_1 = $sanitizedHeaders;
|
|
1439
|
+
this.d5h_1 = $level;
|
|
1440
|
+
this.e5h_1 = $this_createClientPlugin;
|
|
1441
|
+
this.f5h_1 = $bodyFilter;
|
|
1462
1442
|
CoroutineImpl.call(this, resultContinuation);
|
|
1463
1443
|
}
|
|
1464
|
-
protoOf(Logging$lambda$slambda).
|
|
1465
|
-
var tmp = this.
|
|
1444
|
+
protoOf(Logging$lambda$slambda).o5h = function ($this$on, request, $completion) {
|
|
1445
|
+
var tmp = this.p5h($this$on, request, $completion);
|
|
1466
1446
|
tmp.c9_1 = Unit_instance;
|
|
1467
1447
|
tmp.d9_1 = null;
|
|
1468
1448
|
return tmp.i9();
|
|
1469
1449
|
};
|
|
1470
1450
|
protoOf(Logging$lambda$slambda).v9 = function (p1, p2, $completion) {
|
|
1471
1451
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1472
|
-
return this.
|
|
1452
|
+
return this.o5h(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1473
1453
|
};
|
|
1474
1454
|
protoOf(Logging$lambda$slambda).i9 = function () {
|
|
1475
1455
|
var suspendResult = this.c9_1;
|
|
@@ -1479,16 +1459,16 @@
|
|
|
1479
1459
|
switch (tmp) {
|
|
1480
1460
|
case 0:
|
|
1481
1461
|
this.b9_1 = 16;
|
|
1482
|
-
if (!invoke$shouldBeLogged(this.
|
|
1483
|
-
this.
|
|
1462
|
+
if (!invoke$shouldBeLogged(this.b5h_1, this.h5h_1)) {
|
|
1463
|
+
this.h5h_1.v3p_1.r2j(get_DisableLogging(), Unit_instance);
|
|
1484
1464
|
return Unit_instance;
|
|
1485
1465
|
}
|
|
1486
1466
|
|
|
1487
|
-
if (this.
|
|
1467
|
+
if (this.z5g_1) {
|
|
1488
1468
|
var tmp_0 = this;
|
|
1489
|
-
tmp_0.
|
|
1469
|
+
tmp_0.k5h_1 = ArrayList_init_$Create$();
|
|
1490
1470
|
this.a9_1 = 10;
|
|
1491
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1471
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.c5h_1, this.d5h_1, this.e5h_1, this.f5h_1, this.h5h_1, this.k5h_1, this);
|
|
1492
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1493
1473
|
return suspendResult;
|
|
1494
1474
|
}
|
|
@@ -1501,14 +1481,14 @@
|
|
|
1501
1481
|
case 1:
|
|
1502
1482
|
this.b9_1 = 3;
|
|
1503
1483
|
this.a9_1 = 2;
|
|
1504
|
-
suspendResult = invoke$logRequest(this.
|
|
1484
|
+
suspendResult = invoke$logRequest(this.a5h_1, this.d5h_1, this.c5h_1, this.h5h_1, this);
|
|
1505
1485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1506
1486
|
return suspendResult;
|
|
1507
1487
|
}
|
|
1508
1488
|
|
|
1509
1489
|
continue $sm;
|
|
1510
1490
|
case 2:
|
|
1511
|
-
this.
|
|
1491
|
+
this.n5h_1 = suspendResult;
|
|
1512
1492
|
this.b9_1 = 16;
|
|
1513
1493
|
this.a9_1 = 4;
|
|
1514
1494
|
continue $sm;
|
|
@@ -1518,7 +1498,7 @@
|
|
|
1518
1498
|
if (tmp_1 instanceof Error) {
|
|
1519
1499
|
var _unused_var__etf5q3 = this.d9_1;
|
|
1520
1500
|
var tmp_2 = this;
|
|
1521
|
-
tmp_2.
|
|
1501
|
+
tmp_2.n5h_1 = null;
|
|
1522
1502
|
this.a9_1 = 4;
|
|
1523
1503
|
continue $sm;
|
|
1524
1504
|
} else {
|
|
@@ -1527,23 +1507,23 @@
|
|
|
1527
1507
|
|
|
1528
1508
|
case 4:
|
|
1529
1509
|
this.b9_1 = 16;
|
|
1530
|
-
this.
|
|
1531
|
-
this.
|
|
1510
|
+
this.m5h_1 = this.n5h_1;
|
|
1511
|
+
this.l5h_1 = Unit_instance;
|
|
1532
1512
|
this.a9_1 = 5;
|
|
1533
1513
|
continue $sm;
|
|
1534
1514
|
case 5:
|
|
1535
1515
|
this.b9_1 = 8;
|
|
1536
1516
|
this.b9_1 = 7;
|
|
1537
1517
|
this.a9_1 = 6;
|
|
1538
|
-
var tmp0_elvis_lhs = this.
|
|
1539
|
-
suspendResult = this.
|
|
1518
|
+
var tmp0_elvis_lhs = this.m5h_1;
|
|
1519
|
+
suspendResult = this.g5h_1.n5a(tmp0_elvis_lhs == null ? this.h5h_1.t3p_1 : tmp0_elvis_lhs, this);
|
|
1540
1520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1541
1521
|
return suspendResult;
|
|
1542
1522
|
}
|
|
1543
1523
|
|
|
1544
1524
|
continue $sm;
|
|
1545
1525
|
case 6:
|
|
1546
|
-
this.
|
|
1526
|
+
this.l5h_1 = suspendResult;
|
|
1547
1527
|
this.b9_1 = 16;
|
|
1548
1528
|
this.a9_1 = 9;
|
|
1549
1529
|
continue $sm;
|
|
@@ -1553,7 +1533,7 @@
|
|
|
1553
1533
|
if (tmp_3 instanceof Error) {
|
|
1554
1534
|
var cause = this.d9_1;
|
|
1555
1535
|
var tmp_4 = this;
|
|
1556
|
-
invoke$logRequestException(this.
|
|
1536
|
+
invoke$logRequestException(this.d5h_1, this.a5h_1, this.h5h_1, cause);
|
|
1557
1537
|
throw cause;
|
|
1558
1538
|
} else {
|
|
1559
1539
|
throw this.d9_1;
|
|
@@ -1564,26 +1544,26 @@
|
|
|
1564
1544
|
var t = this.d9_1;
|
|
1565
1545
|
throw t;
|
|
1566
1546
|
case 9:
|
|
1567
|
-
this.
|
|
1547
|
+
this.l5h_1;
|
|
1568
1548
|
this.b9_1 = 16;
|
|
1569
1549
|
return Unit_instance;
|
|
1570
1550
|
case 10:
|
|
1571
1551
|
var content = suspendResult;
|
|
1572
|
-
if (this.
|
|
1573
|
-
this.
|
|
1552
|
+
if (this.k5h_1.l1() > 0) {
|
|
1553
|
+
this.a5h_1.p57(joinToString(this.k5h_1, '\n'));
|
|
1574
1554
|
}
|
|
1575
1555
|
|
|
1576
1556
|
this.b9_1 = 14;
|
|
1577
1557
|
if (!(content == null)) {
|
|
1578
1558
|
this.a9_1 = 12;
|
|
1579
|
-
suspendResult = this.
|
|
1559
|
+
suspendResult = this.g5h_1.n5a(content, this);
|
|
1580
1560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1581
1561
|
return suspendResult;
|
|
1582
1562
|
}
|
|
1583
1563
|
continue $sm;
|
|
1584
1564
|
} else {
|
|
1585
1565
|
this.a9_1 = 11;
|
|
1586
|
-
suspendResult = this.
|
|
1566
|
+
suspendResult = this.g5h_1.o5a(this);
|
|
1587
1567
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1588
1568
|
return suspendResult;
|
|
1589
1569
|
}
|
|
@@ -1591,15 +1571,15 @@
|
|
|
1591
1571
|
}
|
|
1592
1572
|
|
|
1593
1573
|
case 11:
|
|
1594
|
-
this.
|
|
1574
|
+
this.j5h_1 = suspendResult;
|
|
1595
1575
|
this.a9_1 = 13;
|
|
1596
1576
|
continue $sm;
|
|
1597
1577
|
case 12:
|
|
1598
|
-
this.
|
|
1578
|
+
this.j5h_1 = suspendResult;
|
|
1599
1579
|
this.a9_1 = 13;
|
|
1600
1580
|
continue $sm;
|
|
1601
1581
|
case 13:
|
|
1602
|
-
this.
|
|
1582
|
+
this.i5h_1 = this.j5h_1;
|
|
1603
1583
|
this.b9_1 = 16;
|
|
1604
1584
|
this.a9_1 = 15;
|
|
1605
1585
|
continue $sm;
|
|
@@ -1609,7 +1589,7 @@
|
|
|
1609
1589
|
if (tmp_5 instanceof Error) {
|
|
1610
1590
|
var cause_0 = this.d9_1;
|
|
1611
1591
|
var tmp_6 = this;
|
|
1612
|
-
this.
|
|
1592
|
+
this.a5h_1.p57('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1613
1593
|
throw cause_0;
|
|
1614
1594
|
} else {
|
|
1615
1595
|
throw this.d9_1;
|
|
@@ -1632,37 +1612,37 @@
|
|
|
1632
1612
|
}
|
|
1633
1613
|
while (true);
|
|
1634
1614
|
};
|
|
1635
|
-
protoOf(Logging$lambda$slambda).
|
|
1636
|
-
var i = new Logging$lambda$slambda(this.
|
|
1637
|
-
i.
|
|
1638
|
-
i.
|
|
1615
|
+
protoOf(Logging$lambda$slambda).p5h = function ($this$on, request, completion) {
|
|
1616
|
+
var i = new Logging$lambda$slambda(this.z5g_1, this.a5h_1, this.b5h_1, this.c5h_1, this.d5h_1, this.e5h_1, this.f5h_1, completion);
|
|
1617
|
+
i.g5h_1 = $this$on;
|
|
1618
|
+
i.h5h_1 = request;
|
|
1639
1619
|
return i;
|
|
1640
1620
|
};
|
|
1641
1621
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1642
1622
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1643
1623
|
var l = function ($this$on, request, $completion) {
|
|
1644
|
-
return i.
|
|
1624
|
+
return i.o5h($this$on, request, $completion);
|
|
1645
1625
|
};
|
|
1646
1626
|
l.$arity = 2;
|
|
1647
1627
|
return l;
|
|
1648
1628
|
}
|
|
1649
1629
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1630
|
+
this.y5h_1 = $okHttpFormat;
|
|
1631
|
+
this.z5h_1 = $logger;
|
|
1632
|
+
this.a5i_1 = $sanitizedHeaders;
|
|
1633
|
+
this.b5i_1 = $level;
|
|
1634
|
+
this.c5i_1 = $bodyFilter;
|
|
1655
1635
|
CoroutineImpl.call(this, resultContinuation);
|
|
1656
1636
|
}
|
|
1657
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1658
|
-
var tmp = this.
|
|
1637
|
+
protoOf(Logging$lambda$slambda_1).g5i = function ($this$on, response, $completion) {
|
|
1638
|
+
var tmp = this.h5i($this$on, response, $completion);
|
|
1659
1639
|
tmp.c9_1 = Unit_instance;
|
|
1660
1640
|
tmp.d9_1 = null;
|
|
1661
1641
|
return tmp.i9();
|
|
1662
1642
|
};
|
|
1663
1643
|
protoOf(Logging$lambda$slambda_1).v9 = function (p1, p2, $completion) {
|
|
1664
1644
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1665
|
-
return this.
|
|
1645
|
+
return this.g5i(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1666
1646
|
};
|
|
1667
1647
|
protoOf(Logging$lambda$slambda_1).i9 = function () {
|
|
1668
1648
|
var suspendResult = this.c9_1;
|
|
@@ -1672,11 +1652,11 @@
|
|
|
1672
1652
|
switch (tmp) {
|
|
1673
1653
|
case 0:
|
|
1674
1654
|
this.b9_1 = 5;
|
|
1675
|
-
if (this.
|
|
1655
|
+
if (this.y5h_1) {
|
|
1676
1656
|
var tmp_0 = this;
|
|
1677
|
-
tmp_0.
|
|
1657
|
+
tmp_0.f5i_1 = ArrayList_init_$Create$();
|
|
1678
1658
|
this.a9_1 = 1;
|
|
1679
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1659
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.a5i_1, this.b5i_1, this.c5i_1, this.e5i_1, this.f5i_1, this);
|
|
1680
1660
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1681
1661
|
return suspendResult;
|
|
1682
1662
|
}
|
|
@@ -1688,13 +1668,13 @@
|
|
|
1688
1668
|
|
|
1689
1669
|
case 1:
|
|
1690
1670
|
var newResponse = suspendResult;
|
|
1691
|
-
if (this.
|
|
1692
|
-
this.
|
|
1671
|
+
if (this.f5i_1.l1() > 0) {
|
|
1672
|
+
this.z5h_1.p57(joinToString(this.f5i_1, '\n'));
|
|
1693
1673
|
}
|
|
1694
1674
|
|
|
1695
|
-
if (!equals(newResponse, this.
|
|
1675
|
+
if (!equals(newResponse, this.e5i_1)) {
|
|
1696
1676
|
this.a9_1 = 2;
|
|
1697
|
-
suspendResult = this.
|
|
1677
|
+
suspendResult = this.d5i_1.z4l(newResponse, this);
|
|
1698
1678
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1699
1679
|
return suspendResult;
|
|
1700
1680
|
}
|
|
@@ -1726,35 +1706,35 @@
|
|
|
1726
1706
|
}
|
|
1727
1707
|
while (true);
|
|
1728
1708
|
};
|
|
1729
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1730
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1731
|
-
i.
|
|
1732
|
-
i.
|
|
1709
|
+
protoOf(Logging$lambda$slambda_1).h5i = function ($this$on, response, completion) {
|
|
1710
|
+
var i = new Logging$lambda$slambda_1(this.y5h_1, this.z5h_1, this.a5i_1, this.b5i_1, this.c5i_1, completion);
|
|
1711
|
+
i.d5i_1 = $this$on;
|
|
1712
|
+
i.e5i_1 = response;
|
|
1733
1713
|
return i;
|
|
1734
1714
|
};
|
|
1735
1715
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1736
1716
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1737
1717
|
var l = function ($this$on, response, $completion) {
|
|
1738
|
-
return i.
|
|
1718
|
+
return i.g5i($this$on, response, $completion);
|
|
1739
1719
|
};
|
|
1740
1720
|
l.$arity = 2;
|
|
1741
1721
|
return l;
|
|
1742
1722
|
}
|
|
1743
1723
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1744
|
-
this.
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1724
|
+
this.q5i_1 = $okHttpFormat;
|
|
1725
|
+
this.r5i_1 = $level;
|
|
1726
|
+
this.s5i_1 = $sanitizedHeaders;
|
|
1747
1727
|
CoroutineImpl.call(this, resultContinuation);
|
|
1748
1728
|
}
|
|
1749
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1750
|
-
var tmp = this.
|
|
1729
|
+
protoOf(Logging$lambda$slambda_3).b5j = function ($this$on, response, $completion) {
|
|
1730
|
+
var tmp = this.c5j($this$on, response, $completion);
|
|
1751
1731
|
tmp.c9_1 = Unit_instance;
|
|
1752
1732
|
tmp.d9_1 = null;
|
|
1753
1733
|
return tmp.i9();
|
|
1754
1734
|
};
|
|
1755
1735
|
protoOf(Logging$lambda$slambda_3).v9 = function (p1, p2, $completion) {
|
|
1756
1736
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1757
|
-
return this.
|
|
1737
|
+
return this.b5j(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1758
1738
|
};
|
|
1759
1739
|
protoOf(Logging$lambda$slambda_3).i9 = function () {
|
|
1760
1740
|
var suspendResult = this.c9_1;
|
|
@@ -1764,28 +1744,28 @@
|
|
|
1764
1744
|
switch (tmp) {
|
|
1765
1745
|
case 0:
|
|
1766
1746
|
this.b9_1 = 14;
|
|
1767
|
-
if (this.
|
|
1747
|
+
if (this.q5i_1)
|
|
1768
1748
|
return Unit_instance;
|
|
1769
|
-
if (this.
|
|
1749
|
+
if (this.r5i_1.equals(LogLevel_NONE_getInstance()) || this.u5i_1.f3r().z3q().q2j(get_DisableLogging()))
|
|
1770
1750
|
return Unit_instance;
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1773
|
-
this.
|
|
1751
|
+
this.w5i_1 = this.u5i_1.f3r().z3q().o2j(get_ClientCallLogger());
|
|
1752
|
+
this.y5i_1 = StringBuilder_init_$Create$();
|
|
1753
|
+
this.x5i_1 = false;
|
|
1774
1754
|
this.a9_1 = 1;
|
|
1775
1755
|
continue $sm;
|
|
1776
1756
|
case 1:
|
|
1777
1757
|
this.b9_1 = 4;
|
|
1778
1758
|
this.b9_1 = 3;
|
|
1779
|
-
logResponseHeader(this.
|
|
1759
|
+
logResponseHeader(this.y5i_1, this.u5i_1.f3r().q3o(), this.r5i_1, this.s5i_1);
|
|
1780
1760
|
this.a9_1 = 2;
|
|
1781
|
-
suspendResult = this.
|
|
1761
|
+
suspendResult = this.t5i_1.p5b(this);
|
|
1782
1762
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1783
1763
|
return suspendResult;
|
|
1784
1764
|
}
|
|
1785
1765
|
|
|
1786
1766
|
continue $sm;
|
|
1787
1767
|
case 2:
|
|
1788
|
-
this.
|
|
1768
|
+
this.z5i_1 = suspendResult;
|
|
1789
1769
|
this.b9_1 = 14;
|
|
1790
1770
|
this.a9_1 = 9;
|
|
1791
1771
|
continue $sm;
|
|
@@ -1795,8 +1775,8 @@
|
|
|
1795
1775
|
if (tmp_0 instanceof Error) {
|
|
1796
1776
|
var cause = this.d9_1;
|
|
1797
1777
|
var tmp_1 = this;
|
|
1798
|
-
invoke$logResponseException(this.
|
|
1799
|
-
this.
|
|
1778
|
+
invoke$logResponseException(this.r5i_1, this.y5i_1, this.u5i_1.f3r().y3q(), cause);
|
|
1779
|
+
this.x5i_1 = true;
|
|
1800
1780
|
throw cause;
|
|
1801
1781
|
} else {
|
|
1802
1782
|
throw this.d9_1;
|
|
@@ -1804,19 +1784,19 @@
|
|
|
1804
1784
|
|
|
1805
1785
|
case 4:
|
|
1806
1786
|
this.b9_1 = 14;
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1809
|
-
if (this.
|
|
1787
|
+
this.a5j_1 = this.d9_1;
|
|
1788
|
+
this.w5i_1.k58(this.y5i_1.toString());
|
|
1789
|
+
if (this.x5i_1 || !this.r5i_1.w59_1) {
|
|
1810
1790
|
this.a9_1 = 7;
|
|
1811
|
-
suspendResult = this.
|
|
1791
|
+
suspendResult = this.w5i_1.o58(this);
|
|
1812
1792
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1813
1793
|
return suspendResult;
|
|
1814
1794
|
}
|
|
1815
1795
|
continue $sm;
|
|
1816
1796
|
} else {
|
|
1817
|
-
if (this.
|
|
1797
|
+
if (this.r5i_1.w59_1 && get_isSaved(this.u5i_1)) {
|
|
1818
1798
|
this.a9_1 = 5;
|
|
1819
|
-
suspendResult = logResponseBody(this.
|
|
1799
|
+
suspendResult = logResponseBody(this.w5i_1, this.u5i_1, this);
|
|
1820
1800
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1821
1801
|
return suspendResult;
|
|
1822
1802
|
}
|
|
@@ -1829,7 +1809,7 @@
|
|
|
1829
1809
|
|
|
1830
1810
|
case 5:
|
|
1831
1811
|
this.a9_1 = 6;
|
|
1832
|
-
suspendResult = this.
|
|
1812
|
+
suspendResult = this.w5i_1.o58(this);
|
|
1833
1813
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1834
1814
|
return suspendResult;
|
|
1835
1815
|
}
|
|
@@ -1842,22 +1822,22 @@
|
|
|
1842
1822
|
this.a9_1 = 8;
|
|
1843
1823
|
continue $sm;
|
|
1844
1824
|
case 8:
|
|
1845
|
-
throw this.
|
|
1825
|
+
throw this.a5j_1;
|
|
1846
1826
|
case 9:
|
|
1847
|
-
this.
|
|
1827
|
+
this.v5i_1 = this.z5i_1;
|
|
1848
1828
|
this.b9_1 = 14;
|
|
1849
|
-
this.
|
|
1850
|
-
if (this.
|
|
1829
|
+
this.w5i_1.k58(this.y5i_1.toString());
|
|
1830
|
+
if (this.x5i_1 || !this.r5i_1.w59_1) {
|
|
1851
1831
|
this.a9_1 = 12;
|
|
1852
|
-
suspendResult = this.
|
|
1832
|
+
suspendResult = this.w5i_1.o58(this);
|
|
1853
1833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1854
1834
|
return suspendResult;
|
|
1855
1835
|
}
|
|
1856
1836
|
continue $sm;
|
|
1857
1837
|
} else {
|
|
1858
|
-
if (this.
|
|
1838
|
+
if (this.r5i_1.w59_1 && get_isSaved(this.u5i_1)) {
|
|
1859
1839
|
this.a9_1 = 10;
|
|
1860
|
-
suspendResult = logResponseBody(this.
|
|
1840
|
+
suspendResult = logResponseBody(this.w5i_1, this.u5i_1, this);
|
|
1861
1841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1862
1842
|
return suspendResult;
|
|
1863
1843
|
}
|
|
@@ -1870,7 +1850,7 @@
|
|
|
1870
1850
|
|
|
1871
1851
|
case 10:
|
|
1872
1852
|
this.a9_1 = 11;
|
|
1873
|
-
suspendResult = this.
|
|
1853
|
+
suspendResult = this.w5i_1.o58(this);
|
|
1874
1854
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1875
1855
|
return suspendResult;
|
|
1876
1856
|
}
|
|
@@ -1898,34 +1878,35 @@
|
|
|
1898
1878
|
}
|
|
1899
1879
|
while (true);
|
|
1900
1880
|
};
|
|
1901
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1902
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1903
|
-
i.
|
|
1904
|
-
i.
|
|
1881
|
+
protoOf(Logging$lambda$slambda_3).c5j = function ($this$on, response, completion) {
|
|
1882
|
+
var i = new Logging$lambda$slambda_3(this.q5i_1, this.r5i_1, this.s5i_1, completion);
|
|
1883
|
+
i.t5i_1 = $this$on;
|
|
1884
|
+
i.u5i_1 = response;
|
|
1905
1885
|
return i;
|
|
1906
1886
|
};
|
|
1907
1887
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1908
1888
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1909
1889
|
var l = function ($this$on, response, $completion) {
|
|
1910
|
-
return i.
|
|
1890
|
+
return i.b5j($this$on, response, $completion);
|
|
1911
1891
|
};
|
|
1912
1892
|
l.$arity = 2;
|
|
1913
1893
|
return l;
|
|
1914
1894
|
}
|
|
1915
|
-
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1916
|
-
this.
|
|
1917
|
-
this.
|
|
1895
|
+
function Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation) {
|
|
1896
|
+
this.l5j_1 = $okHttpFormat;
|
|
1897
|
+
this.m5j_1 = $level;
|
|
1898
|
+
this.n5j_1 = $logger;
|
|
1918
1899
|
CoroutineImpl.call(this, resultContinuation);
|
|
1919
1900
|
}
|
|
1920
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1921
|
-
var tmp = this.
|
|
1901
|
+
protoOf(Logging$lambda$slambda_5).t5j = function ($this$on, call, $completion) {
|
|
1902
|
+
var tmp = this.u5j($this$on, call, $completion);
|
|
1922
1903
|
tmp.c9_1 = Unit_instance;
|
|
1923
1904
|
tmp.d9_1 = null;
|
|
1924
1905
|
return tmp.i9();
|
|
1925
1906
|
};
|
|
1926
1907
|
protoOf(Logging$lambda$slambda_5).v9 = function (p1, p2, $completion) {
|
|
1927
1908
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1928
|
-
return this.
|
|
1909
|
+
return this.t5j(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1929
1910
|
};
|
|
1930
1911
|
protoOf(Logging$lambda$slambda_5).i9 = function () {
|
|
1931
1912
|
var suspendResult = this.c9_1;
|
|
@@ -1935,22 +1916,22 @@
|
|
|
1935
1916
|
switch (tmp) {
|
|
1936
1917
|
case 0:
|
|
1937
1918
|
this.b9_1 = 6;
|
|
1938
|
-
if (this.
|
|
1919
|
+
if (this.l5j_1)
|
|
1939
1920
|
return Unit_instance;
|
|
1940
|
-
if (this.
|
|
1921
|
+
if (this.m5j_1.equals(LogLevel_NONE_getInstance()) || this.p5j_1.z3q().q2j(get_DisableLogging())) {
|
|
1941
1922
|
return Unit_instance;
|
|
1942
1923
|
}
|
|
1943
1924
|
|
|
1944
1925
|
this.b9_1 = 2;
|
|
1945
1926
|
this.a9_1 = 1;
|
|
1946
|
-
suspendResult = this.
|
|
1927
|
+
suspendResult = this.o5j_1.d5c(this);
|
|
1947
1928
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1948
1929
|
return suspendResult;
|
|
1949
1930
|
}
|
|
1950
1931
|
|
|
1951
1932
|
continue $sm;
|
|
1952
1933
|
case 1:
|
|
1953
|
-
this.
|
|
1934
|
+
this.q5j_1 = suspendResult;
|
|
1954
1935
|
this.b9_1 = 6;
|
|
1955
1936
|
this.a9_1 = 5;
|
|
1956
1937
|
continue $sm;
|
|
@@ -1958,12 +1939,22 @@
|
|
|
1958
1939
|
this.b9_1 = 6;
|
|
1959
1940
|
var tmp_0 = this.d9_1;
|
|
1960
1941
|
if (tmp_0 instanceof Error) {
|
|
1961
|
-
this.
|
|
1942
|
+
this.r5j_1 = this.d9_1;
|
|
1962
1943
|
var log = StringBuilder_init_$Create$();
|
|
1963
|
-
|
|
1964
|
-
|
|
1944
|
+
var tmp_1 = this;
|
|
1945
|
+
var tmp0_elvis_lhs = this.p5j_1.z3q().p2j(get_ClientCallLogger());
|
|
1946
|
+
var tmp_2;
|
|
1947
|
+
if (tmp0_elvis_lhs == null) {
|
|
1948
|
+
var this_0 = new HttpClientCallLogger(this.n5j_1);
|
|
1949
|
+
this_0.n58();
|
|
1950
|
+
tmp_2 = this_0;
|
|
1951
|
+
} else {
|
|
1952
|
+
tmp_2 = tmp0_elvis_lhs;
|
|
1953
|
+
}
|
|
1954
|
+
tmp_1.s5j_1 = tmp_2;
|
|
1955
|
+
invoke$logResponseException(this.m5j_1, log, this.p5j_1.y3q(), this.r5j_1);
|
|
1965
1956
|
this.a9_1 = 3;
|
|
1966
|
-
suspendResult = this.
|
|
1957
|
+
suspendResult = this.s5j_1.l58(log.toString(), this);
|
|
1967
1958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1968
1959
|
return suspendResult;
|
|
1969
1960
|
}
|
|
@@ -1974,15 +1965,15 @@
|
|
|
1974
1965
|
|
|
1975
1966
|
case 3:
|
|
1976
1967
|
this.a9_1 = 4;
|
|
1977
|
-
suspendResult = this.
|
|
1968
|
+
suspendResult = this.s5j_1.o58(this);
|
|
1978
1969
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1979
1970
|
return suspendResult;
|
|
1980
1971
|
}
|
|
1981
1972
|
|
|
1982
1973
|
continue $sm;
|
|
1983
1974
|
case 4:
|
|
1984
|
-
var
|
|
1985
|
-
throw this.
|
|
1975
|
+
var tmp_3 = this;
|
|
1976
|
+
throw this.r5j_1;
|
|
1986
1977
|
case 5:
|
|
1987
1978
|
this.b9_1 = 6;
|
|
1988
1979
|
return Unit_instance;
|
|
@@ -2000,36 +1991,36 @@
|
|
|
2000
1991
|
}
|
|
2001
1992
|
while (true);
|
|
2002
1993
|
};
|
|
2003
|
-
protoOf(Logging$lambda$slambda_5).
|
|
2004
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
2005
|
-
i.
|
|
2006
|
-
i.
|
|
1994
|
+
protoOf(Logging$lambda$slambda_5).u5j = function ($this$on, call, completion) {
|
|
1995
|
+
var i = new Logging$lambda$slambda_5(this.l5j_1, this.m5j_1, this.n5j_1, completion);
|
|
1996
|
+
i.o5j_1 = $this$on;
|
|
1997
|
+
i.p5j_1 = call;
|
|
2007
1998
|
return i;
|
|
2008
1999
|
};
|
|
2009
|
-
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
2010
|
-
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
2000
|
+
function Logging$lambda$slambda_6($okHttpFormat, $level, $logger, resultContinuation) {
|
|
2001
|
+
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation);
|
|
2011
2002
|
var l = function ($this$on, call, $completion) {
|
|
2012
|
-
return i.
|
|
2003
|
+
return i.t5j($this$on, call, $completion);
|
|
2013
2004
|
};
|
|
2014
2005
|
l.$arity = 2;
|
|
2015
2006
|
return l;
|
|
2016
2007
|
}
|
|
2017
2008
|
function Logging$lambda$lambda$lambda(it) {
|
|
2018
2009
|
_init_properties_Logging_kt__66pui5();
|
|
2019
|
-
return !get_isSaved(it.
|
|
2010
|
+
return !get_isSaved(it.q3o());
|
|
2020
2011
|
}
|
|
2021
2012
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
2022
|
-
this.
|
|
2013
|
+
this.d5k_1 = $level;
|
|
2023
2014
|
CoroutineImpl.call(this, resultContinuation);
|
|
2024
2015
|
}
|
|
2025
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2026
|
-
var tmp = this.
|
|
2016
|
+
protoOf(Logging$lambda$lambda$slambda).h40 = function (response, $completion) {
|
|
2017
|
+
var tmp = this.u3y(response, $completion);
|
|
2027
2018
|
tmp.c9_1 = Unit_instance;
|
|
2028
2019
|
tmp.d9_1 = null;
|
|
2029
2020
|
return tmp.i9();
|
|
2030
2021
|
};
|
|
2031
2022
|
protoOf(Logging$lambda$lambda$slambda).u9 = function (p1, $completion) {
|
|
2032
|
-
return this.
|
|
2023
|
+
return this.h40(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
2033
2024
|
};
|
|
2034
2025
|
protoOf(Logging$lambda$lambda$slambda).i9 = function () {
|
|
2035
2026
|
var suspendResult = this.c9_1;
|
|
@@ -2039,11 +2030,11 @@
|
|
|
2039
2030
|
switch (tmp) {
|
|
2040
2031
|
case 0:
|
|
2041
2032
|
this.b9_1 = 3;
|
|
2042
|
-
if (this.
|
|
2033
|
+
if (this.d5k_1.equals(LogLevel_NONE_getInstance()) || this.e5k_1.f3r().z3q().q2j(get_DisableLogging()))
|
|
2043
2034
|
return Unit_instance;
|
|
2044
|
-
this.
|
|
2035
|
+
this.f5k_1 = this.e5k_1.f3r().z3q().o2j(get_ClientCallLogger());
|
|
2045
2036
|
this.a9_1 = 1;
|
|
2046
|
-
suspendResult = logResponseBody(this.
|
|
2037
|
+
suspendResult = logResponseBody(this.f5k_1, this.e5k_1, this);
|
|
2047
2038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2048
2039
|
return suspendResult;
|
|
2049
2040
|
}
|
|
@@ -2051,7 +2042,7 @@
|
|
|
2051
2042
|
continue $sm;
|
|
2052
2043
|
case 1:
|
|
2053
2044
|
this.a9_1 = 2;
|
|
2054
|
-
suspendResult = this.
|
|
2045
|
+
suspendResult = this.f5k_1.o58(this);
|
|
2055
2046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2056
2047
|
return suspendResult;
|
|
2057
2048
|
}
|
|
@@ -2073,36 +2064,36 @@
|
|
|
2073
2064
|
}
|
|
2074
2065
|
while (true);
|
|
2075
2066
|
};
|
|
2076
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2077
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
2078
|
-
i.
|
|
2067
|
+
protoOf(Logging$lambda$lambda$slambda).u3y = function (response, completion) {
|
|
2068
|
+
var i = new Logging$lambda$lambda$slambda(this.d5k_1, completion);
|
|
2069
|
+
i.e5k_1 = response;
|
|
2079
2070
|
return i;
|
|
2080
2071
|
};
|
|
2081
2072
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
2082
2073
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
2083
2074
|
var l = function (response, $completion) {
|
|
2084
|
-
return i.
|
|
2075
|
+
return i.h40(response, $completion);
|
|
2085
2076
|
};
|
|
2086
2077
|
l.$arity = 1;
|
|
2087
2078
|
return l;
|
|
2088
2079
|
}
|
|
2089
2080
|
function Logging$lambda$lambda($level) {
|
|
2090
2081
|
return function ($this$prepare) {
|
|
2091
|
-
$this$prepare.
|
|
2092
|
-
$this$prepare.
|
|
2082
|
+
$this$prepare.x4l(Logging$lambda$lambda$lambda);
|
|
2083
|
+
$this$prepare.w4l(Logging$lambda$lambda$slambda_0($level, null));
|
|
2093
2084
|
return Unit_instance;
|
|
2094
2085
|
};
|
|
2095
2086
|
}
|
|
2096
2087
|
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2097
2088
|
CoroutineImpl.call(this, resultContinuation);
|
|
2098
|
-
this.
|
|
2099
|
-
this.
|
|
2100
|
-
this.
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2103
|
-
this.
|
|
2104
|
-
this.
|
|
2105
|
-
this.
|
|
2089
|
+
this.z5d_1 = bodyFilter;
|
|
2090
|
+
this.a5e_1 = url;
|
|
2091
|
+
this.b5e_1 = content;
|
|
2092
|
+
this.c5e_1 = contentLength;
|
|
2093
|
+
this.d5e_1 = headers;
|
|
2094
|
+
this.e5e_1 = method;
|
|
2095
|
+
this.f5e_1 = logLines;
|
|
2096
|
+
this.g5e_1 = body;
|
|
2106
2097
|
}
|
|
2107
2098
|
protoOf($invoke$logRequestBodyCOROUTINE$).i9 = function () {
|
|
2108
2099
|
var suspendResult = this.c9_1;
|
|
@@ -2113,7 +2104,7 @@
|
|
|
2113
2104
|
case 0:
|
|
2114
2105
|
this.b9_1 = 2;
|
|
2115
2106
|
this.a9_1 = 1;
|
|
2116
|
-
suspendResult = this.
|
|
2107
|
+
suspendResult = this.z5d_1.p58(this.a5e_1, this.c5e_1, this.b5e_1.v35(), this.d5e_1, this.g5e_1, this);
|
|
2117
2108
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2118
2109
|
return suspendResult;
|
|
2119
2110
|
}
|
|
@@ -2122,29 +2113,29 @@
|
|
|
2122
2113
|
case 1:
|
|
2123
2114
|
var filteredBody = suspendResult;
|
|
2124
2115
|
if (filteredBody instanceof Empty) {
|
|
2125
|
-
this.
|
|
2116
|
+
this.f5e_1.j1('--> END ' + this.e5e_1.i30_1 + ' (0-byte body)');
|
|
2126
2117
|
} else {
|
|
2127
2118
|
if (filteredBody instanceof Skip) {
|
|
2128
2119
|
var this_0 = StringBuilder_init_$Create$();
|
|
2129
|
-
this_0.q('--> END ' + this.
|
|
2130
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2120
|
+
this_0.q('--> END ' + this.e5e_1.i30_1 + ' (');
|
|
2121
|
+
var tmp0_safe_receiver = filteredBody.t58_1;
|
|
2131
2122
|
if (tmp0_safe_receiver == null)
|
|
2132
2123
|
null;
|
|
2133
2124
|
else {
|
|
2134
2125
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2135
2126
|
}
|
|
2136
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2127
|
+
var tmp1_safe_receiver = filteredBody.u58_1;
|
|
2137
2128
|
if (tmp1_safe_receiver == null)
|
|
2138
2129
|
null;
|
|
2139
2130
|
else {
|
|
2140
2131
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2141
2132
|
}
|
|
2142
2133
|
this_0.q('body omitted)');
|
|
2143
|
-
this.
|
|
2134
|
+
this.f5e_1.j1(this_0.toString());
|
|
2144
2135
|
} else {
|
|
2145
2136
|
if (isInterface(filteredBody, Content)) {
|
|
2146
|
-
this.
|
|
2147
|
-
this.
|
|
2137
|
+
this.f5e_1.j1(filteredBody.v58());
|
|
2138
|
+
this.f5e_1.j1('--> END ' + this.e5e_1.i30_1 + ' (' + toString_0(filteredBody.s58()) + '-byte body)');
|
|
2148
2139
|
} else {
|
|
2149
2140
|
noWhenBranchMatchedException();
|
|
2150
2141
|
}
|
|
@@ -2168,14 +2159,14 @@
|
|
|
2168
2159
|
};
|
|
2169
2160
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2170
2161
|
CoroutineImpl.call(this, resultContinuation);
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2177
|
-
this.
|
|
2178
|
-
this.
|
|
2162
|
+
this.p5e_1 = $this_createClientPlugin;
|
|
2163
|
+
this.q5e_1 = bodyFilter;
|
|
2164
|
+
this.r5e_1 = url;
|
|
2165
|
+
this.s5e_1 = content;
|
|
2166
|
+
this.t5e_1 = method;
|
|
2167
|
+
this.u5e_1 = headers;
|
|
2168
|
+
this.v5e_1 = logLines;
|
|
2169
|
+
this.w5e_1 = process;
|
|
2179
2170
|
}
|
|
2180
2171
|
protoOf($invoke$logOutgoingContentCOROUTINE$).i9 = function () {
|
|
2181
2172
|
var suspendResult = this.c9_1;
|
|
@@ -2185,10 +2176,10 @@
|
|
|
2185
2176
|
switch (tmp) {
|
|
2186
2177
|
case 0:
|
|
2187
2178
|
this.b9_1 = 7;
|
|
2188
|
-
var tmp0_subject = this.
|
|
2179
|
+
var tmp0_subject = this.s5e_1;
|
|
2189
2180
|
if (tmp0_subject instanceof ObservableContent) {
|
|
2190
2181
|
this.a9_1 = 5;
|
|
2191
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2182
|
+
suspendResult = invoke$logOutgoingContent(this.p5e_1, this.q5e_1, this.r5e_1, this.s5e_1.q3t_1, this.t5e_1, this.u5e_1, this.v5e_1, this.w5e_1, this);
|
|
2192
2183
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2193
2184
|
return suspendResult;
|
|
2194
2185
|
}
|
|
@@ -2196,41 +2187,41 @@
|
|
|
2196
2187
|
} else {
|
|
2197
2188
|
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2198
2189
|
var tmp_0 = this;
|
|
2199
|
-
var _iterator__ex2g4s = this.
|
|
2190
|
+
var _iterator__ex2g4s = this.s5e_1.h5k_1.t();
|
|
2200
2191
|
while (_iterator__ex2g4s.u()) {
|
|
2201
2192
|
var part = _iterator__ex2g4s.v();
|
|
2202
|
-
this.
|
|
2203
|
-
var _iterator__ex2g4s_0 = part.
|
|
2193
|
+
this.v5e_1.j1('--' + this.s5e_1.i5k_1);
|
|
2194
|
+
var _iterator__ex2g4s_0 = part.j5k_1.c2o().t();
|
|
2204
2195
|
while (_iterator__ex2g4s_0.u()) {
|
|
2205
2196
|
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2206
2197
|
var key = _destruct__k2r9zo.r1();
|
|
2207
2198
|
var values = _destruct__k2r9zo.s1();
|
|
2208
|
-
this.
|
|
2199
|
+
this.v5e_1.j1(key + ': ' + joinToString(values, '; '));
|
|
2209
2200
|
}
|
|
2210
2201
|
if (part instanceof FormItem) {
|
|
2211
|
-
this.
|
|
2212
|
-
this.
|
|
2213
|
-
this.
|
|
2202
|
+
this.v5e_1.j1('Content-Length: ' + part.l5k_1.length);
|
|
2203
|
+
this.v5e_1.j1('');
|
|
2204
|
+
this.v5e_1.j1(part.l5k_1);
|
|
2214
2205
|
} else {
|
|
2215
|
-
this.
|
|
2216
|
-
var contentLength = part.
|
|
2206
|
+
this.v5e_1.j1('');
|
|
2207
|
+
var contentLength = part.j5k_1.l2n('Content-Length');
|
|
2217
2208
|
if (!(contentLength == null)) {
|
|
2218
|
-
this.
|
|
2209
|
+
this.v5e_1.j1('binary ' + contentLength + '-byte body omitted');
|
|
2219
2210
|
} else {
|
|
2220
|
-
this.
|
|
2211
|
+
this.v5e_1.j1('binary body omitted');
|
|
2221
2212
|
}
|
|
2222
2213
|
}
|
|
2223
2214
|
}
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
tmp_0.
|
|
2215
|
+
this.v5e_1.j1('--' + this.s5e_1.i5k_1 + '--');
|
|
2216
|
+
this.v5e_1.j1('--> END ' + this.t5e_1.i30_1);
|
|
2217
|
+
tmp_0.x5e_1 = null;
|
|
2227
2218
|
this.a9_1 = 6;
|
|
2228
2219
|
continue $sm;
|
|
2229
2220
|
} else {
|
|
2230
2221
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2231
|
-
var bytes = this.
|
|
2222
|
+
var bytes = this.s5e_1.y35();
|
|
2232
2223
|
this.a9_1 = 4;
|
|
2233
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2224
|
+
suspendResult = invoke$logRequestBody(this.q5e_1, this.r5e_1, this.s5e_1, fromInt(bytes.length), this.u5e_1, this.t5e_1, this.v5e_1, ByteReadChannel(bytes), this);
|
|
2234
2225
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2235
2226
|
return suspendResult;
|
|
2236
2227
|
}
|
|
@@ -2238,7 +2229,7 @@
|
|
|
2238
2229
|
} else {
|
|
2239
2230
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2240
2231
|
this.a9_1 = 3;
|
|
2241
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2232
|
+
suspendResult = invoke$logOutgoingContent(this.p5e_1, this.q5e_1, this.r5e_1, this.s5e_1.h36(), this.t5e_1, this.u5e_1, this.v5e_1, this.w5e_1, this);
|
|
2242
2233
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2243
2234
|
return suspendResult;
|
|
2244
2235
|
}
|
|
@@ -2246,24 +2237,24 @@
|
|
|
2246
2237
|
} else {
|
|
2247
2238
|
if (tmp0_subject instanceof NoContent) {
|
|
2248
2239
|
var tmp_1 = this;
|
|
2249
|
-
this.
|
|
2250
|
-
tmp_1.
|
|
2240
|
+
this.v5e_1.j1('--> END ' + this.t5e_1.i30_1);
|
|
2241
|
+
tmp_1.x5e_1 = null;
|
|
2251
2242
|
this.a9_1 = 6;
|
|
2252
2243
|
continue $sm;
|
|
2253
2244
|
} else {
|
|
2254
2245
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2255
2246
|
var tmp_2 = this;
|
|
2256
|
-
this.
|
|
2257
|
-
tmp_2.
|
|
2247
|
+
this.v5e_1.j1('--> END ' + this.t5e_1.i30_1);
|
|
2248
|
+
tmp_2.x5e_1 = null;
|
|
2258
2249
|
this.a9_1 = 6;
|
|
2259
2250
|
continue $sm;
|
|
2260
2251
|
} else {
|
|
2261
2252
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2262
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2263
|
-
this.
|
|
2253
|
+
var _destruct__k2r9zo_0 = split(this.s5e_1.b36(), this.p5e_1.t3x_1);
|
|
2254
|
+
this.y5e_1 = _destruct__k2r9zo_0.bg();
|
|
2264
2255
|
var newChannel = _destruct__k2r9zo_0.cg();
|
|
2265
2256
|
this.a9_1 = 2;
|
|
2266
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2257
|
+
suspendResult = invoke$logRequestBody(this.q5e_1, this.r5e_1, this.s5e_1, this.s5e_1.x35(), this.u5e_1, this.t5e_1, this.v5e_1, newChannel, this);
|
|
2267
2258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2268
2259
|
return suspendResult;
|
|
2269
2260
|
}
|
|
@@ -2271,12 +2262,12 @@
|
|
|
2271
2262
|
} else {
|
|
2272
2263
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2273
2264
|
var channel = new ByteChannel();
|
|
2274
|
-
launch(this.
|
|
2275
|
-
var _destruct__k2r9zo_1 = split(channel, this.
|
|
2276
|
-
this.
|
|
2265
|
+
launch(this.p5e_1.t3x_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.s5e_1, channel, null));
|
|
2266
|
+
var _destruct__k2r9zo_1 = split(channel, this.p5e_1.t3x_1);
|
|
2267
|
+
this.z5e_1 = _destruct__k2r9zo_1.bg();
|
|
2277
2268
|
var newChannel_0 = _destruct__k2r9zo_1.cg();
|
|
2278
2269
|
this.a9_1 = 1;
|
|
2279
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2270
|
+
suspendResult = invoke$logRequestBody(this.q5e_1, this.r5e_1, this.s5e_1, this.s5e_1.x35(), this.u5e_1, this.t5e_1, this.v5e_1, newChannel_0, this);
|
|
2280
2271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2281
2272
|
return suspendResult;
|
|
2282
2273
|
}
|
|
@@ -2295,27 +2286,27 @@
|
|
|
2295
2286
|
|
|
2296
2287
|
break;
|
|
2297
2288
|
case 1:
|
|
2298
|
-
this.
|
|
2289
|
+
this.x5e_1 = new LoggedContent(this.s5e_1, this.z5e_1);
|
|
2299
2290
|
this.a9_1 = 6;
|
|
2300
2291
|
continue $sm;
|
|
2301
2292
|
case 2:
|
|
2302
|
-
this.
|
|
2293
|
+
this.x5e_1 = new LoggedContent(this.s5e_1, this.y5e_1);
|
|
2303
2294
|
this.a9_1 = 6;
|
|
2304
2295
|
continue $sm;
|
|
2305
2296
|
case 3:
|
|
2306
|
-
this.
|
|
2297
|
+
this.x5e_1 = suspendResult;
|
|
2307
2298
|
this.a9_1 = 6;
|
|
2308
2299
|
continue $sm;
|
|
2309
2300
|
case 4:
|
|
2310
|
-
this.
|
|
2301
|
+
this.x5e_1 = null;
|
|
2311
2302
|
this.a9_1 = 6;
|
|
2312
2303
|
continue $sm;
|
|
2313
2304
|
case 5:
|
|
2314
|
-
this.
|
|
2305
|
+
this.x5e_1 = suspendResult;
|
|
2315
2306
|
this.a9_1 = 6;
|
|
2316
2307
|
continue $sm;
|
|
2317
2308
|
case 6:
|
|
2318
|
-
return this.
|
|
2309
|
+
return this.x5e_1;
|
|
2319
2310
|
case 7:
|
|
2320
2311
|
throw this.d9_1;
|
|
2321
2312
|
}
|
|
@@ -2332,12 +2323,12 @@
|
|
|
2332
2323
|
};
|
|
2333
2324
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2334
2325
|
CoroutineImpl.call(this, resultContinuation);
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2339
|
-
this.
|
|
2340
|
-
this.
|
|
2326
|
+
this.i5f_1 = sanitizedHeaders;
|
|
2327
|
+
this.j5f_1 = level;
|
|
2328
|
+
this.k5f_1 = $this_createClientPlugin;
|
|
2329
|
+
this.l5f_1 = bodyFilter;
|
|
2330
|
+
this.m5f_1 = request;
|
|
2331
|
+
this.n5f_1 = logLines;
|
|
2341
2332
|
}
|
|
2342
2333
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2343
2334
|
var suspendResult = this.c9_1;
|
|
@@ -2347,22 +2338,22 @@
|
|
|
2347
2338
|
switch (tmp) {
|
|
2348
2339
|
case 0:
|
|
2349
2340
|
this.b9_1 = 4;
|
|
2350
|
-
if (invoke$isNone(this.
|
|
2341
|
+
if (invoke$isNone(this.j5f_1))
|
|
2351
2342
|
return null;
|
|
2352
|
-
var uri =
|
|
2353
|
-
var body = this.
|
|
2343
|
+
var uri = takeFrom(new URLBuilder(), this.m5f_1.q3p_1).s2v().toString();
|
|
2344
|
+
var body = this.m5f_1.t3p_1;
|
|
2354
2345
|
var this_0 = new HeadersBuilder();
|
|
2355
2346
|
var tmp_0;
|
|
2356
2347
|
var tmp_1;
|
|
2357
2348
|
var tmp_2;
|
|
2358
2349
|
if (body instanceof OutgoingContent) {
|
|
2359
|
-
tmp_2 = !this.
|
|
2350
|
+
tmp_2 = !this.m5f_1.r3p_1.equals(Companion_getInstance().y2z_1);
|
|
2360
2351
|
} else {
|
|
2361
2352
|
tmp_2 = false;
|
|
2362
2353
|
}
|
|
2363
2354
|
|
|
2364
2355
|
if (tmp_2) {
|
|
2365
|
-
tmp_1 = !this.
|
|
2356
|
+
tmp_1 = !this.m5f_1.r3p_1.equals(Companion_getInstance().d30_1);
|
|
2366
2357
|
} else {
|
|
2367
2358
|
tmp_1 = false;
|
|
2368
2359
|
}
|
|
@@ -2374,13 +2365,13 @@
|
|
|
2374
2365
|
}
|
|
2375
2366
|
|
|
2376
2367
|
if (tmp_0) {
|
|
2377
|
-
var tmp0_safe_receiver = body.
|
|
2368
|
+
var tmp0_safe_receiver = body.v35();
|
|
2378
2369
|
if (tmp0_safe_receiver == null)
|
|
2379
2370
|
null;
|
|
2380
2371
|
else {
|
|
2381
2372
|
appendIfNameAbsent(this_0, 'Content-Type', tmp0_safe_receiver.toString());
|
|
2382
2373
|
}
|
|
2383
|
-
var tmp1_safe_receiver = body.
|
|
2374
|
+
var tmp1_safe_receiver = body.x35();
|
|
2384
2375
|
if (tmp1_safe_receiver == null)
|
|
2385
2376
|
null;
|
|
2386
2377
|
else {
|
|
@@ -2388,16 +2379,16 @@
|
|
|
2388
2379
|
}
|
|
2389
2380
|
}
|
|
2390
2381
|
|
|
2391
|
-
appendAll(this_0, this.
|
|
2392
|
-
var headers = this_0.
|
|
2393
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2382
|
+
appendAll(this_0, this.m5f_1.s3p_1);
|
|
2383
|
+
var headers = this_0.s2v();
|
|
2384
|
+
var tmp0_safe_receiver_0 = headers.l2n('Content-Length');
|
|
2394
2385
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2395
2386
|
var tmp_3;
|
|
2396
|
-
if (this.
|
|
2397
|
-
tmp_3 = '--> ' + this.
|
|
2387
|
+
if (this.m5f_1.r3p_1.equals(Companion_getInstance().y2z_1) || this.m5f_1.r3p_1.equals(Companion_getInstance().d30_1) || ((invoke$isHeaders(this.j5f_1) || invoke$isBody(this.j5f_1)) && !(contentLength == null)) || (invoke$isHeaders(this.j5f_1) && contentLength == null) || headers.x2m('Content-Encoding')) {
|
|
2388
|
+
tmp_3 = '--> ' + this.m5f_1.r3p_1.i30_1 + ' ' + uri;
|
|
2398
2389
|
} else {
|
|
2399
|
-
if (invoke$isInfo(this.
|
|
2400
|
-
tmp_3 = '--> ' + this.
|
|
2390
|
+
if (invoke$isInfo(this.j5f_1) && !(contentLength == null)) {
|
|
2391
|
+
tmp_3 = '--> ' + this.m5f_1.r3p_1.i30_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2401
2392
|
} else {
|
|
2402
2393
|
var tmp_4;
|
|
2403
2394
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2406,32 +2397,32 @@
|
|
|
2406
2397
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2407
2398
|
}
|
|
2408
2399
|
if (tmp_4) {
|
|
2409
|
-
tmp_3 = '--> ' + this.
|
|
2400
|
+
tmp_3 = '--> ' + this.m5f_1.r3p_1.i30_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2410
2401
|
} else {
|
|
2411
|
-
var size = computeRequestBodySize(this.
|
|
2412
|
-
tmp_3 = '--> ' + this.
|
|
2402
|
+
var size = computeRequestBodySize(this.m5f_1.t3p_1);
|
|
2403
|
+
tmp_3 = '--> ' + this.m5f_1.r3p_1.i30_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2413
2404
|
}
|
|
2414
2405
|
}
|
|
2415
2406
|
}
|
|
2416
2407
|
|
|
2417
2408
|
var startLine = tmp_3;
|
|
2418
|
-
this.
|
|
2419
|
-
if (!invoke$isHeaders(this.
|
|
2409
|
+
this.n5f_1.j1(startLine);
|
|
2410
|
+
if (!invoke$isHeaders(this.j5f_1) && !invoke$isBody(this.j5f_1)) {
|
|
2420
2411
|
return null;
|
|
2421
2412
|
}
|
|
2422
2413
|
|
|
2423
|
-
var _iterator__ex2g4s = headers.
|
|
2414
|
+
var _iterator__ex2g4s = headers.c2o().t();
|
|
2424
2415
|
while (_iterator__ex2g4s.u()) {
|
|
2425
2416
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2426
2417
|
var name = _destruct__k2r9zo.r1();
|
|
2427
2418
|
var values = _destruct__k2r9zo.s1();
|
|
2428
|
-
var tmp0 = this.
|
|
2419
|
+
var tmp0 = this.i5f_1;
|
|
2429
2420
|
var tmp$ret$0 = Unit_instance;
|
|
2430
2421
|
l$ret$1: do {
|
|
2431
2422
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2432
2423
|
while (_iterator__ex2g4s_0.u()) {
|
|
2433
2424
|
var element = _iterator__ex2g4s_0.v();
|
|
2434
|
-
if (element.
|
|
2425
|
+
if (element.q5g_1(name)) {
|
|
2435
2426
|
tmp$ret$0 = element;
|
|
2436
2427
|
break l$ret$1;
|
|
2437
2428
|
}
|
|
@@ -2440,35 +2431,35 @@
|
|
|
2440
2431
|
}
|
|
2441
2432
|
while (false);
|
|
2442
2433
|
if (tmp$ret$0 == null) {
|
|
2443
|
-
this.
|
|
2434
|
+
this.n5f_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2444
2435
|
} else {
|
|
2445
|
-
this.
|
|
2436
|
+
this.n5f_1.j1(name + ': \u2588\u2588');
|
|
2446
2437
|
}
|
|
2447
2438
|
}
|
|
2448
2439
|
|
|
2449
|
-
if (!invoke$isBody(this.
|
|
2450
|
-
this.
|
|
2440
|
+
if (!invoke$isBody(this.j5f_1) || this.m5f_1.r3p_1.equals(Companion_getInstance().y2z_1) || this.m5f_1.r3p_1.equals(Companion_getInstance().d30_1)) {
|
|
2441
|
+
this.n5f_1.j1('--> END ' + this.m5f_1.r3p_1.i30_1);
|
|
2451
2442
|
return null;
|
|
2452
2443
|
}
|
|
2453
2444
|
|
|
2454
|
-
this.
|
|
2445
|
+
this.n5f_1.j1('');
|
|
2455
2446
|
if (!(body instanceof OutgoingContent)) {
|
|
2456
|
-
this.
|
|
2447
|
+
this.n5f_1.j1('--> END ' + this.m5f_1.r3p_1.i30_1);
|
|
2457
2448
|
return null;
|
|
2458
2449
|
}
|
|
2459
2450
|
|
|
2460
|
-
if (this.
|
|
2451
|
+
if (this.m5f_1.s3p_1.l2n('Content-Encoding') === 'gzip') {
|
|
2461
2452
|
this.a9_1 = 2;
|
|
2462
|
-
var tmp_5 = this.
|
|
2463
|
-
var tmp_6 = this.
|
|
2464
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2453
|
+
var tmp_5 = this.m5f_1.q3p_1.s2v();
|
|
2454
|
+
var tmp_6 = this.m5f_1.r3p_1;
|
|
2455
|
+
suspendResult = invoke$logOutgoingContent(this.k5f_1, this.l5f_1, tmp_5, body, tmp_6, headers, this.n5f_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2465
2456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2466
2457
|
return suspendResult;
|
|
2467
2458
|
}
|
|
2468
2459
|
continue $sm;
|
|
2469
2460
|
} else {
|
|
2470
2461
|
this.a9_1 = 1;
|
|
2471
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2462
|
+
suspendResult = invoke$logOutgoingContent(this.k5f_1, this.l5f_1, this.m5f_1.q3p_1.s2v(), body, this.m5f_1.r3p_1, headers, this.n5f_1, VOID, this);
|
|
2472
2463
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2473
2464
|
return suspendResult;
|
|
2474
2465
|
}
|
|
@@ -2476,15 +2467,15 @@
|
|
|
2476
2467
|
}
|
|
2477
2468
|
|
|
2478
2469
|
case 1:
|
|
2479
|
-
this.
|
|
2470
|
+
this.o5f_1 = suspendResult;
|
|
2480
2471
|
this.a9_1 = 3;
|
|
2481
2472
|
continue $sm;
|
|
2482
2473
|
case 2:
|
|
2483
|
-
this.
|
|
2474
|
+
this.o5f_1 = suspendResult;
|
|
2484
2475
|
this.a9_1 = 3;
|
|
2485
2476
|
continue $sm;
|
|
2486
2477
|
case 3:
|
|
2487
|
-
var newContent = this.
|
|
2478
|
+
var newContent = this.o5f_1;
|
|
2488
2479
|
return newContent;
|
|
2489
2480
|
case 4:
|
|
2490
2481
|
throw this.d9_1;
|
|
@@ -2502,10 +2493,10 @@
|
|
|
2502
2493
|
};
|
|
2503
2494
|
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2504
2495
|
CoroutineImpl.call(this, resultContinuation);
|
|
2505
|
-
this.
|
|
2506
|
-
this.
|
|
2507
|
-
this.
|
|
2508
|
-
this.
|
|
2496
|
+
this.x5f_1 = bodyFilter;
|
|
2497
|
+
this.y5f_1 = response;
|
|
2498
|
+
this.z5f_1 = body;
|
|
2499
|
+
this.a5g_1 = logLines;
|
|
2509
2500
|
}
|
|
2510
2501
|
protoOf($invoke$logResponseBodyCOROUTINE$).i9 = function () {
|
|
2511
2502
|
var suspendResult = this.c9_1;
|
|
@@ -2515,9 +2506,9 @@
|
|
|
2515
2506
|
switch (tmp) {
|
|
2516
2507
|
case 0:
|
|
2517
2508
|
this.b9_1 = 2;
|
|
2518
|
-
this.
|
|
2509
|
+
this.a5g_1.j1('');
|
|
2519
2510
|
this.a9_1 = 1;
|
|
2520
|
-
suspendResult = this.
|
|
2511
|
+
suspendResult = this.x5f_1.r58(this.y5f_1.f3r().y3q().h3r(), contentLength(this.y5f_1), contentType(this.y5f_1), this.y5f_1.x2z(), this.z5f_1, this);
|
|
2521
2512
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2522
2513
|
return suspendResult;
|
|
2523
2514
|
}
|
|
@@ -2525,33 +2516,33 @@
|
|
|
2525
2516
|
continue $sm;
|
|
2526
2517
|
case 1:
|
|
2527
2518
|
var filteredBody = suspendResult;
|
|
2528
|
-
var duration = subtract(this.
|
|
2519
|
+
var duration = subtract(this.y5f_1.r3r().r2p_1, this.y5f_1.q3r().r2p_1);
|
|
2529
2520
|
if (filteredBody instanceof Empty) {
|
|
2530
|
-
this.
|
|
2521
|
+
this.a5g_1.j1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2531
2522
|
} else {
|
|
2532
2523
|
if (filteredBody instanceof Skip) {
|
|
2533
2524
|
var this_0 = StringBuilder_init_$Create$();
|
|
2534
2525
|
this_0.q('<-- END HTTP (');
|
|
2535
2526
|
this_0.nc(duration);
|
|
2536
2527
|
this_0.q('ms, ');
|
|
2537
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2528
|
+
var tmp0_safe_receiver = filteredBody.t58_1;
|
|
2538
2529
|
if (tmp0_safe_receiver == null)
|
|
2539
2530
|
null;
|
|
2540
2531
|
else {
|
|
2541
2532
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2542
2533
|
}
|
|
2543
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2534
|
+
var tmp1_safe_receiver = filteredBody.u58_1;
|
|
2544
2535
|
if (tmp1_safe_receiver == null)
|
|
2545
2536
|
null;
|
|
2546
2537
|
else {
|
|
2547
2538
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2548
2539
|
}
|
|
2549
2540
|
this_0.q('body omitted)');
|
|
2550
|
-
this.
|
|
2541
|
+
this.a5g_1.j1(this_0.toString());
|
|
2551
2542
|
} else {
|
|
2552
2543
|
if (isInterface(filteredBody, Content)) {
|
|
2553
|
-
this.
|
|
2554
|
-
this.
|
|
2544
|
+
this.a5g_1.j1(filteredBody.v58());
|
|
2545
|
+
this.a5g_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.s58()) + '-byte body)');
|
|
2555
2546
|
} else {
|
|
2556
2547
|
noWhenBranchMatchedException();
|
|
2557
2548
|
}
|
|
@@ -2575,11 +2566,11 @@
|
|
|
2575
2566
|
};
|
|
2576
2567
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2577
2568
|
CoroutineImpl.call(this, resultContinuation);
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2581
|
-
this.
|
|
2582
|
-
this.
|
|
2569
|
+
this.j5g_1 = sanitizedHeaders;
|
|
2570
|
+
this.k5g_1 = level;
|
|
2571
|
+
this.l5g_1 = bodyFilter;
|
|
2572
|
+
this.m5g_1 = response;
|
|
2573
|
+
this.n5g_1 = logLines;
|
|
2583
2574
|
}
|
|
2584
2575
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2585
2576
|
var suspendResult = this.c9_1;
|
|
@@ -2589,30 +2580,30 @@
|
|
|
2589
2580
|
switch (tmp) {
|
|
2590
2581
|
case 0:
|
|
2591
2582
|
this.b9_1 = 4;
|
|
2592
|
-
if (invoke$isNone(this.
|
|
2593
|
-
return this.
|
|
2594
|
-
var tmp0_safe_receiver = this.
|
|
2583
|
+
if (invoke$isNone(this.k5g_1))
|
|
2584
|
+
return this.m5g_1;
|
|
2585
|
+
var tmp0_safe_receiver = this.m5g_1.x2z().l2n('Content-Length');
|
|
2595
2586
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2596
|
-
var request = get_request(this.
|
|
2597
|
-
var duration = subtract(this.
|
|
2598
|
-
var startLine = this.
|
|
2599
|
-
this.
|
|
2600
|
-
if (!invoke$isHeaders(this.
|
|
2601
|
-
return this.
|
|
2587
|
+
var request = get_request(this.m5g_1);
|
|
2588
|
+
var duration = subtract(this.m5g_1.r3r().r2p_1, this.m5g_1.q3r().r2p_1);
|
|
2589
|
+
var startLine = this.m5g_1.x2z().l2n('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.k5g_1) || invoke$isHeaders(this.k5g_1)) ? '<-- ' + this.m5g_1.w35().toString() + ' ' + request.h3r().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.k5g_1) && !(contentLength == null) ? '<-- ' + this.m5g_1.w35().toString() + ' ' + request.h3r().toString() + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.k5g_1) || (invoke$isInfo(this.k5g_1) && contentLength == null) || (invoke$isHeaders(this.k5g_1) && !(contentLength == null)) || this.m5g_1.x2z().l2n('Content-Encoding') === 'gzip' ? '<-- ' + this.m5g_1.w35().toString() + ' ' + request.h3r().toString() + ' (' + duration.toString() + 'ms)' : '<-- ' + this.m5g_1.w35().toString() + ' ' + request.h3r().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2590
|
+
this.n5g_1.j1(startLine);
|
|
2591
|
+
if (!invoke$isHeaders(this.k5g_1) && !invoke$isBody(this.k5g_1)) {
|
|
2592
|
+
return this.m5g_1;
|
|
2602
2593
|
}
|
|
2603
2594
|
|
|
2604
|
-
var _iterator__ex2g4s = this.
|
|
2595
|
+
var _iterator__ex2g4s = this.m5g_1.x2z().c2o().t();
|
|
2605
2596
|
while (_iterator__ex2g4s.u()) {
|
|
2606
2597
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2607
2598
|
var name = _destruct__k2r9zo.r1();
|
|
2608
2599
|
var values = _destruct__k2r9zo.s1();
|
|
2609
|
-
var tmp0 = this.
|
|
2600
|
+
var tmp0 = this.j5g_1;
|
|
2610
2601
|
var tmp$ret$0 = Unit_instance;
|
|
2611
2602
|
l$ret$1: do {
|
|
2612
2603
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2613
2604
|
while (_iterator__ex2g4s_0.u()) {
|
|
2614
2605
|
var element = _iterator__ex2g4s_0.v();
|
|
2615
|
-
if (element.
|
|
2606
|
+
if (element.q5g_1(name)) {
|
|
2616
2607
|
tmp$ret$0 = element;
|
|
2617
2608
|
break l$ret$1;
|
|
2618
2609
|
}
|
|
@@ -2621,30 +2612,30 @@
|
|
|
2621
2612
|
}
|
|
2622
2613
|
while (false);
|
|
2623
2614
|
if (tmp$ret$0 == null) {
|
|
2624
|
-
this.
|
|
2615
|
+
this.n5g_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2625
2616
|
} else {
|
|
2626
|
-
this.
|
|
2617
|
+
this.n5g_1.j1(name + ': \u2588\u2588');
|
|
2627
2618
|
}
|
|
2628
2619
|
}
|
|
2629
2620
|
|
|
2630
|
-
if (!invoke$isBody(this.
|
|
2631
|
-
this.
|
|
2632
|
-
return this.
|
|
2621
|
+
if (!invoke$isBody(this.k5g_1)) {
|
|
2622
|
+
this.n5g_1.j1('<-- END HTTP');
|
|
2623
|
+
return this.m5g_1;
|
|
2633
2624
|
}
|
|
2634
2625
|
|
|
2635
2626
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2636
|
-
this.
|
|
2637
|
-
return this.
|
|
2627
|
+
this.n5g_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2628
|
+
return this.m5g_1;
|
|
2638
2629
|
}
|
|
2639
2630
|
|
|
2640
|
-
if (equals(contentType(this.
|
|
2641
|
-
this.
|
|
2642
|
-
return this.
|
|
2631
|
+
if (equals(contentType(this.m5g_1), Text_getInstance().g2v_1)) {
|
|
2632
|
+
this.n5g_1.j1('<-- END HTTP (streaming)');
|
|
2633
|
+
return this.m5g_1;
|
|
2643
2634
|
}
|
|
2644
2635
|
|
|
2645
|
-
if (get_isSaved(this.
|
|
2636
|
+
if (get_isSaved(this.m5g_1)) {
|
|
2646
2637
|
this.a9_1 = 3;
|
|
2647
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2638
|
+
suspendResult = invoke$logResponseBody(this.l5g_1, this.m5g_1, this.m5g_1.o3r(), this.n5g_1, this);
|
|
2648
2639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2649
2640
|
return suspendResult;
|
|
2650
2641
|
}
|
|
@@ -2655,22 +2646,22 @@
|
|
|
2655
2646
|
}
|
|
2656
2647
|
|
|
2657
2648
|
case 1:
|
|
2658
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2659
|
-
this.
|
|
2649
|
+
var _destruct__k2r9zo_0 = split(this.m5g_1.o3r(), this.m5g_1);
|
|
2650
|
+
this.o5g_1 = _destruct__k2r9zo_0.bg();
|
|
2660
2651
|
var newChannel = _destruct__k2r9zo_0.cg();
|
|
2661
2652
|
this.a9_1 = 2;
|
|
2662
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2653
|
+
suspendResult = invoke$logResponseBody(this.l5g_1, this.m5g_1, newChannel, this.n5g_1, this);
|
|
2663
2654
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2664
2655
|
return suspendResult;
|
|
2665
2656
|
}
|
|
2666
2657
|
|
|
2667
2658
|
continue $sm;
|
|
2668
2659
|
case 2:
|
|
2669
|
-
var tmp_0 = this.
|
|
2670
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2671
|
-
return call.
|
|
2660
|
+
var tmp_0 = this.m5g_1.f3r();
|
|
2661
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.o5g_1));
|
|
2662
|
+
return call.q3o();
|
|
2672
2663
|
case 3:
|
|
2673
|
-
return this.
|
|
2664
|
+
return this.m5g_1;
|
|
2674
2665
|
case 4:
|
|
2675
2666
|
throw this.d9_1;
|
|
2676
2667
|
}
|
|
@@ -2764,7 +2755,7 @@
|
|
|
2764
2755
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2765
2756
|
while (_iterator__ex2g4s_0.u()) {
|
|
2766
2757
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2767
|
-
if (element_0.
|
|
2758
|
+
if (element_0.q5g_1(key)) {
|
|
2768
2759
|
tmp$ret$6 = element_0;
|
|
2769
2760
|
break $l$block;
|
|
2770
2761
|
}
|
|
@@ -2772,7 +2763,7 @@
|
|
|
2772
2763
|
tmp$ret$6 = null;
|
|
2773
2764
|
}
|
|
2774
2765
|
var tmp0_safe_receiver = tmp$ret$6;
|
|
2775
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2766
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p5g_1;
|
|
2776
2767
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2777
2768
|
}
|
|
2778
2769
|
}
|
|
@@ -2784,26 +2775,26 @@
|
|
|
2784
2775
|
}
|
|
2785
2776
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2786
2777
|
// Inline function 'kotlin.with' call
|
|
2787
|
-
if (level.
|
|
2778
|
+
if (level.u59_1) {
|
|
2788
2779
|
// Inline function 'kotlin.text.appendLine' call
|
|
2789
|
-
var value = 'RESPONSE: ' + response.
|
|
2780
|
+
var value = 'RESPONSE: ' + response.w35().toString();
|
|
2790
2781
|
// Inline function 'kotlin.text.appendLine' call
|
|
2791
2782
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2792
2783
|
// Inline function 'kotlin.text.appendLine' call
|
|
2793
|
-
var value_0 = 'METHOD: ' + response.
|
|
2784
|
+
var value_0 = 'METHOD: ' + response.f3r().y3q().g3r().toString();
|
|
2794
2785
|
// Inline function 'kotlin.text.appendLine' call
|
|
2795
2786
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2796
2787
|
// Inline function 'kotlin.text.appendLine' call
|
|
2797
|
-
var value_1 = 'FROM: ' + response.
|
|
2788
|
+
var value_1 = 'FROM: ' + response.f3r().y3q().h3r().toString();
|
|
2798
2789
|
// Inline function 'kotlin.text.appendLine' call
|
|
2799
2790
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2800
2791
|
}
|
|
2801
|
-
if (level.
|
|
2792
|
+
if (level.v59_1) {
|
|
2802
2793
|
// Inline function 'kotlin.text.appendLine' call
|
|
2803
2794
|
var value_2 = 'COMMON HEADERS';
|
|
2804
2795
|
// Inline function 'kotlin.text.appendLine' call
|
|
2805
2796
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2806
|
-
logHeaders(log, response.
|
|
2797
|
+
logHeaders(log, response.x2z().c2o(), sanitizedHeaders);
|
|
2807
2798
|
}
|
|
2808
2799
|
}
|
|
2809
2800
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2819,16 +2810,16 @@
|
|
|
2819
2810
|
return tmp.i9();
|
|
2820
2811
|
}
|
|
2821
2812
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2822
|
-
this.
|
|
2813
|
+
this.l5l_1 = function_0;
|
|
2823
2814
|
}
|
|
2824
2815
|
protoOf(sam$kotlin_Comparator$0).wd = function (a, b) {
|
|
2825
|
-
return this.
|
|
2816
|
+
return this.l5l_1(a, b);
|
|
2826
2817
|
};
|
|
2827
2818
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2828
2819
|
return this.wd(a, b);
|
|
2829
2820
|
};
|
|
2830
2821
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2831
|
-
return this.
|
|
2822
|
+
return this.l5l_1;
|
|
2832
2823
|
};
|
|
2833
2824
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2834
2825
|
var tmp;
|
|
@@ -2856,8 +2847,8 @@
|
|
|
2856
2847
|
}
|
|
2857
2848
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2858
2849
|
CoroutineImpl.call(this, resultContinuation);
|
|
2859
|
-
this.
|
|
2860
|
-
this.
|
|
2850
|
+
this.u5k_1 = _this__u8e3s4;
|
|
2851
|
+
this.v5k_1 = response;
|
|
2861
2852
|
}
|
|
2862
2853
|
protoOf($logResponseBodyCOROUTINE$_0).i9 = function () {
|
|
2863
2854
|
var suspendResult = this.c9_1;
|
|
@@ -2867,14 +2858,14 @@
|
|
|
2867
2858
|
switch (tmp) {
|
|
2868
2859
|
case 0:
|
|
2869
2860
|
this.b9_1 = 8;
|
|
2870
|
-
this.
|
|
2861
|
+
this.w5k_1 = StringBuilder_init_$Create$();
|
|
2871
2862
|
this.a9_1 = 1;
|
|
2872
2863
|
continue $sm;
|
|
2873
2864
|
case 1:
|
|
2874
2865
|
this.b9_1 = 4;
|
|
2875
2866
|
this.b9_1 = 3;
|
|
2876
2867
|
this.a9_1 = 2;
|
|
2877
|
-
suspendResult = appendResponseBody(this.
|
|
2868
|
+
suspendResult = appendResponseBody(this.w5k_1, contentType(this.v5k_1), this.v5k_1.o3r(), this);
|
|
2878
2869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2879
2870
|
return suspendResult;
|
|
2880
2871
|
}
|
|
@@ -2898,22 +2889,22 @@
|
|
|
2898
2889
|
|
|
2899
2890
|
case 4:
|
|
2900
2891
|
this.b9_1 = 8;
|
|
2901
|
-
this.
|
|
2892
|
+
this.x5k_1 = this.d9_1;
|
|
2902
2893
|
this.a9_1 = 5;
|
|
2903
|
-
var this_0 = this.
|
|
2904
|
-
suspendResult = this.
|
|
2894
|
+
var this_0 = this.w5k_1.toString();
|
|
2895
|
+
suspendResult = this.u5k_1.m58(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2905
2896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2906
2897
|
return suspendResult;
|
|
2907
2898
|
}
|
|
2908
2899
|
|
|
2909
2900
|
continue $sm;
|
|
2910
2901
|
case 5:
|
|
2911
|
-
throw this.
|
|
2902
|
+
throw this.x5k_1;
|
|
2912
2903
|
case 6:
|
|
2913
2904
|
this.b9_1 = 8;
|
|
2914
2905
|
this.a9_1 = 7;
|
|
2915
|
-
var this_1 = this.
|
|
2916
|
-
suspendResult = this.
|
|
2906
|
+
var this_1 = this.w5k_1.toString();
|
|
2907
|
+
suspendResult = this.u5k_1.m58(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2917
2908
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2918
2909
|
return suspendResult;
|
|
2919
2910
|
}
|
|
@@ -2937,9 +2928,9 @@
|
|
|
2937
2928
|
};
|
|
2938
2929
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2939
2930
|
CoroutineImpl.call(this, resultContinuation);
|
|
2940
|
-
this.
|
|
2941
|
-
this.
|
|
2942
|
-
this.
|
|
2931
|
+
this.g5l_1 = _this__u8e3s4;
|
|
2932
|
+
this.h5l_1 = contentType;
|
|
2933
|
+
this.i5l_1 = content;
|
|
2943
2934
|
}
|
|
2944
2935
|
protoOf($appendResponseBodyCOROUTINE$).i9 = function () {
|
|
2945
2936
|
var suspendResult = this.c9_1;
|
|
@@ -2949,16 +2940,16 @@
|
|
|
2949
2940
|
switch (tmp) {
|
|
2950
2941
|
case 0:
|
|
2951
2942
|
this.b9_1 = 3;
|
|
2952
|
-
var tmp0 = this.
|
|
2953
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2943
|
+
var tmp0 = this.g5l_1;
|
|
2944
|
+
var value = 'BODY Content-Type: ' + toString_0(this.h5l_1);
|
|
2954
2945
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2955
|
-
var tmp0_0 = this.
|
|
2946
|
+
var tmp0_0 = this.g5l_1;
|
|
2956
2947
|
var value_0 = 'BODY START';
|
|
2957
2948
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2958
|
-
var tmp0_1 = this.
|
|
2959
|
-
var tmp0_safe_receiver = this.
|
|
2949
|
+
var tmp0_1 = this.i5l_1;
|
|
2950
|
+
var tmp0_safe_receiver = this.h5l_1;
|
|
2960
2951
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2961
|
-
this.
|
|
2952
|
+
this.k5l_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp1_elvis_lhs;
|
|
2962
2953
|
this.b9_1 = 2;
|
|
2963
2954
|
this.a9_1 = 1;
|
|
2964
2955
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2969,7 +2960,7 @@
|
|
|
2969
2960
|
continue $sm;
|
|
2970
2961
|
case 1:
|
|
2971
2962
|
var ARGUMENT = suspendResult;
|
|
2972
|
-
this.
|
|
2963
|
+
this.j5l_1 = readText(ARGUMENT, this.k5l_1);
|
|
2973
2964
|
this.b9_1 = 3;
|
|
2974
2965
|
this.a9_1 = 4;
|
|
2975
2966
|
continue $sm;
|
|
@@ -2979,7 +2970,7 @@
|
|
|
2979
2970
|
if (tmp_0 instanceof Error) {
|
|
2980
2971
|
var cause = this.d9_1;
|
|
2981
2972
|
var tmp_1 = this;
|
|
2982
|
-
tmp_1.
|
|
2973
|
+
tmp_1.j5l_1 = null;
|
|
2983
2974
|
this.a9_1 = 4;
|
|
2984
2975
|
continue $sm;
|
|
2985
2976
|
} else {
|
|
@@ -2990,10 +2981,10 @@
|
|
|
2990
2981
|
throw this.d9_1;
|
|
2991
2982
|
case 4:
|
|
2992
2983
|
this.b9_1 = 3;
|
|
2993
|
-
var tmp2_elvis_lhs = this.
|
|
2984
|
+
var tmp2_elvis_lhs = this.j5l_1;
|
|
2994
2985
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2995
|
-
this.
|
|
2996
|
-
this.
|
|
2986
|
+
this.g5l_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2987
|
+
this.g5l_1.q('BODY END');
|
|
2997
2988
|
return Unit_instance;
|
|
2998
2989
|
}
|
|
2999
2990
|
} catch ($p) {
|
|
@@ -3015,21 +3006,21 @@
|
|
|
3015
3006
|
}
|
|
3016
3007
|
function toReadChannel(_this__u8e3s4) {
|
|
3017
3008
|
var tmp = GlobalScope_instance;
|
|
3018
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
3019
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3009
|
+
var tmp_0 = Dispatchers_getInstance().e15_1;
|
|
3010
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).l1v_1;
|
|
3020
3011
|
}
|
|
3021
3012
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3022
|
-
this.
|
|
3013
|
+
this.g5m_1 = $this_toReadChannel;
|
|
3023
3014
|
CoroutineImpl.call(this, resultContinuation);
|
|
3024
3015
|
}
|
|
3025
|
-
protoOf(toReadChannel$slambda).
|
|
3026
|
-
var tmp = this.
|
|
3016
|
+
protoOf(toReadChannel$slambda).c3b = function ($this$writer, $completion) {
|
|
3017
|
+
var tmp = this.d3b($this$writer, $completion);
|
|
3027
3018
|
tmp.c9_1 = Unit_instance;
|
|
3028
3019
|
tmp.d9_1 = null;
|
|
3029
3020
|
return tmp.i9();
|
|
3030
3021
|
};
|
|
3031
3022
|
protoOf(toReadChannel$slambda).u9 = function (p1, $completion) {
|
|
3032
|
-
return this.
|
|
3023
|
+
return this.c3b(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3033
3024
|
};
|
|
3034
3025
|
protoOf(toReadChannel$slambda).i9 = function () {
|
|
3035
3026
|
var suspendResult = this.c9_1;
|
|
@@ -3040,7 +3031,7 @@
|
|
|
3040
3031
|
case 0:
|
|
3041
3032
|
this.b9_1 = 2;
|
|
3042
3033
|
this.a9_1 = 1;
|
|
3043
|
-
suspendResult = this.
|
|
3034
|
+
suspendResult = this.g5m_1.d36(this.h5m_1.n1v_1, this);
|
|
3044
3035
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3045
3036
|
return suspendResult;
|
|
3046
3037
|
}
|
|
@@ -3062,23 +3053,23 @@
|
|
|
3062
3053
|
}
|
|
3063
3054
|
while (true);
|
|
3064
3055
|
};
|
|
3065
|
-
protoOf(toReadChannel$slambda).
|
|
3066
|
-
var i = new toReadChannel$slambda(this.
|
|
3067
|
-
i.
|
|
3056
|
+
protoOf(toReadChannel$slambda).d3b = function ($this$writer, completion) {
|
|
3057
|
+
var i = new toReadChannel$slambda(this.g5m_1, completion);
|
|
3058
|
+
i.h5m_1 = $this$writer;
|
|
3068
3059
|
return i;
|
|
3069
3060
|
};
|
|
3070
3061
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3071
3062
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3072
3063
|
var l = function ($this$writer, $completion) {
|
|
3073
|
-
return i.
|
|
3064
|
+
return i.c3b($this$writer, $completion);
|
|
3074
3065
|
};
|
|
3075
3066
|
l.$arity = 1;
|
|
3076
3067
|
return l;
|
|
3077
3068
|
}
|
|
3078
3069
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3079
3070
|
CoroutineImpl.call(this, resultContinuation);
|
|
3080
|
-
this.
|
|
3081
|
-
this.
|
|
3071
|
+
this.u5l_1 = _this__u8e3s4;
|
|
3072
|
+
this.v5l_1 = log;
|
|
3082
3073
|
}
|
|
3083
3074
|
protoOf($observeCOROUTINE$).i9 = function () {
|
|
3084
3075
|
var suspendResult = this.c9_1;
|
|
@@ -3088,10 +3079,10 @@
|
|
|
3088
3079
|
switch (tmp) {
|
|
3089
3080
|
case 0:
|
|
3090
3081
|
this.b9_1 = 6;
|
|
3091
|
-
var tmp0_subject = this.
|
|
3082
|
+
var tmp0_subject = this.u5l_1;
|
|
3092
3083
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3093
3084
|
this.a9_1 = 3;
|
|
3094
|
-
suspendResult = writeFully_0(this.
|
|
3085
|
+
suspendResult = writeFully_0(this.v5l_1, this.u5l_1.y35(), VOID, VOID, this);
|
|
3095
3086
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3096
3087
|
return suspendResult;
|
|
3097
3088
|
}
|
|
@@ -3100,25 +3091,25 @@
|
|
|
3100
3091
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3101
3092
|
var tmp_0 = this;
|
|
3102
3093
|
var responseChannel = new ByteChannel();
|
|
3103
|
-
var content = this.
|
|
3104
|
-
copyToBoth(content, this.
|
|
3105
|
-
tmp_0.
|
|
3094
|
+
var content = this.u5l_1.b36();
|
|
3095
|
+
copyToBoth(content, this.v5l_1, responseChannel);
|
|
3096
|
+
tmp_0.w5l_1 = new LoggedContent(this.u5l_1, responseChannel);
|
|
3106
3097
|
this.a9_1 = 5;
|
|
3107
3098
|
continue $sm;
|
|
3108
3099
|
} else {
|
|
3109
3100
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3110
3101
|
var tmp_1 = this;
|
|
3111
3102
|
var responseChannel_0 = new ByteChannel();
|
|
3112
|
-
var content_0 = toReadChannel(this.
|
|
3113
|
-
copyToBoth(content_0, this.
|
|
3114
|
-
tmp_1.
|
|
3103
|
+
var content_0 = toReadChannel(this.u5l_1);
|
|
3104
|
+
copyToBoth(content_0, this.v5l_1, responseChannel_0);
|
|
3105
|
+
tmp_1.w5l_1 = new LoggedContent(this.u5l_1, responseChannel_0);
|
|
3115
3106
|
this.a9_1 = 5;
|
|
3116
3107
|
continue $sm;
|
|
3117
3108
|
} else {
|
|
3118
3109
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3119
|
-
this.
|
|
3110
|
+
this.x5l_1 = this.u5l_1;
|
|
3120
3111
|
this.a9_1 = 2;
|
|
3121
|
-
suspendResult = observe(this.
|
|
3112
|
+
suspendResult = observe(this.u5l_1.h36(), this.v5l_1, this);
|
|
3122
3113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3123
3114
|
return suspendResult;
|
|
3124
3115
|
}
|
|
@@ -3132,7 +3123,7 @@
|
|
|
3132
3123
|
}
|
|
3133
3124
|
if (tmp_2) {
|
|
3134
3125
|
this.a9_1 = 1;
|
|
3135
|
-
suspendResult = this.
|
|
3126
|
+
suspendResult = this.v5l_1.z1n(this);
|
|
3136
3127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3137
3128
|
return suspendResult;
|
|
3138
3129
|
}
|
|
@@ -3148,28 +3139,28 @@
|
|
|
3148
3139
|
|
|
3149
3140
|
break;
|
|
3150
3141
|
case 1:
|
|
3151
|
-
this.
|
|
3142
|
+
this.w5l_1 = this.u5l_1;
|
|
3152
3143
|
this.a9_1 = 5;
|
|
3153
3144
|
continue $sm;
|
|
3154
3145
|
case 2:
|
|
3155
3146
|
var ARGUMENT = suspendResult;
|
|
3156
|
-
this.
|
|
3147
|
+
this.w5l_1 = this.x5l_1.i36(ARGUMENT);
|
|
3157
3148
|
this.a9_1 = 5;
|
|
3158
3149
|
continue $sm;
|
|
3159
3150
|
case 3:
|
|
3160
3151
|
this.a9_1 = 4;
|
|
3161
|
-
suspendResult = this.
|
|
3152
|
+
suspendResult = this.v5l_1.z1n(this);
|
|
3162
3153
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3163
3154
|
return suspendResult;
|
|
3164
3155
|
}
|
|
3165
3156
|
|
|
3166
3157
|
continue $sm;
|
|
3167
3158
|
case 4:
|
|
3168
|
-
this.
|
|
3159
|
+
this.w5l_1 = this.u5l_1;
|
|
3169
3160
|
this.a9_1 = 5;
|
|
3170
3161
|
continue $sm;
|
|
3171
3162
|
case 5:
|
|
3172
|
-
return this.
|
|
3163
|
+
return this.w5l_1;
|
|
3173
3164
|
case 6:
|
|
3174
3165
|
throw this.d9_1;
|
|
3175
3166
|
}
|
|
@@ -3209,9 +3200,9 @@
|
|
|
3209
3200
|
return get_SIMPLE(_this__u8e3s4);
|
|
3210
3201
|
}
|
|
3211
3202
|
//region block: post-declaration
|
|
3212
|
-
protoOf(Empty).
|
|
3213
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3214
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3203
|
+
protoOf(Empty).s58 = get_byteSize;
|
|
3204
|
+
protoOf(BinaryLogBodyFilter$1).p58 = filterRequest;
|
|
3205
|
+
protoOf(BinaryLogBodyFilter$1).r58 = filterResponse;
|
|
3215
3206
|
protoOf(MDCContextElement).n9 = get;
|
|
3216
3207
|
protoOf(MDCContextElement).xg = fold;
|
|
3217
3208
|
protoOf(MDCContextElement).wg = minusKey;
|