@doordeck/doordeck-headless-sdk 0.201.0 → 0.203.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +58 -58
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +12764 -12709
- package/kotlin/kotlin-kotlin-stdlib.js +2784 -2211
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2830 -2752
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core.js +487 -487
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1918 -1918
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1540 -1540
- package/kotlin/ktor-ktor-client-auth.js +461 -461
- package/kotlin/ktor-ktor-client-content-negotiation.js +217 -217
- package/kotlin/ktor-ktor-client-core.js +3364 -3349
- package/kotlin/ktor-ktor-client-logging.js +1128 -1128
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +548 -548
- package/kotlin/ktor-ktor-http.js +834 -832
- package/kotlin/ktor-ktor-io.js +1373 -1181
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +327 -254
- package/kotlin/ktor-ktor-serialization.js +119 -119
- package/kotlin/ktor-ktor-utils.js +1169 -1134
- package/kotlin/ktor-ktor-websockets.js +790 -792
- 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.$_$.s9;
|
|
5
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.hg;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.ub;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.lf;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.jc;
|
|
10
10
|
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
13
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.gc;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.xa;
|
|
14
14
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
15
15
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
18
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
17
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h3;
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.c;
|
|
20
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
21
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
20
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.nb;
|
|
21
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pb;
|
|
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,48 +29,48 @@
|
|
|
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.$_$.va;
|
|
33
|
+
var Enum = kotlin_kotlin.$_$.yf;
|
|
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.$_$.kb;
|
|
36
|
+
var println = kotlin_kotlin.$_$.w9;
|
|
37
37
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
38
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
39
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
40
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
39
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t2;
|
|
40
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.xc;
|
|
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.$_$.da;
|
|
45
45
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
46
|
-
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.
|
|
47
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
46
|
+
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
47
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ob;
|
|
48
48
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
49
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
49
|
+
var isSuspendFunction = kotlin_kotlin.$_$.ac;
|
|
50
50
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
51
|
-
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.
|
|
51
|
+
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
52
52
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
53
53
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.j1;
|
|
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.$_$.r1;
|
|
57
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
57
|
+
var isInterface = kotlin_kotlin.$_$.yb;
|
|
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.$_$.i5;
|
|
61
|
+
var toString_0 = kotlin_kotlin.$_$.kh;
|
|
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.$_$.b2;
|
|
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.$_$.m7;
|
|
69
|
+
var equals = kotlin_kotlin.$_$.bb;
|
|
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.$_$.gh;
|
|
73
|
+
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
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;
|
|
@@ -81,37 +81,37 @@
|
|
|
81
81
|
var HeadersBuilder = kotlin_io_ktor_ktor_http.$_$.a1;
|
|
82
82
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
|
|
83
83
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.n1;
|
|
84
|
-
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.
|
|
85
|
-
var appendAll = kotlin_io_ktor_ktor_utils.$_$.
|
|
86
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
84
|
+
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
85
|
+
var appendAll = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
86
|
+
var toLongOrNull = kotlin_kotlin.$_$.bf;
|
|
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.$_$.ma;
|
|
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.$_$.
|
|
96
|
-
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.
|
|
97
|
-
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.
|
|
98
|
-
var Unit = kotlin_kotlin.$_$.
|
|
93
|
+
var getKClass = kotlin_kotlin.$_$.yc;
|
|
94
|
+
var arrayOf = kotlin_kotlin.$_$.vg;
|
|
95
|
+
var createKType = kotlin_kotlin.$_$.wc;
|
|
96
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
97
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.q;
|
|
98
|
+
var Unit = kotlin_kotlin.$_$.sg;
|
|
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.$_$.
|
|
106
|
-
var writer = kotlin_io_ktor_ktor_io.$_$.
|
|
100
|
+
var toList = kotlin_kotlin.$_$.n8;
|
|
101
|
+
var sortedWith = kotlin_kotlin.$_$.i8;
|
|
102
|
+
var FunctionAdapter = kotlin_kotlin.$_$.oa;
|
|
103
|
+
var Comparator = kotlin_kotlin.$_$.vf;
|
|
104
|
+
var hashCode = kotlin_kotlin.$_$.ib;
|
|
105
|
+
var compareValues = kotlin_kotlin.$_$.z8;
|
|
106
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.y1;
|
|
107
107
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
108
|
-
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.
|
|
108
|
+
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.d1;
|
|
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.$_$.o9;
|
|
111
|
+
var fold = kotlin_kotlin.$_$.n9;
|
|
112
|
+
var minusKey = kotlin_kotlin.$_$.p9;
|
|
113
|
+
var plus = kotlin_kotlin.$_$.r9;
|
|
114
|
+
var Element = kotlin_kotlin.$_$.q9;
|
|
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.l5a(contentLength, contentType, headers, body, $completion);
|
|
123
123
|
}
|
|
124
124
|
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
125
|
-
return this.
|
|
125
|
+
return this.l5a(contentLength, contentType, headers, body, $completion);
|
|
126
126
|
}
|
|
127
127
|
initMetadataForInterface(CommonLogBodyFilter, 'CommonLogBodyFilter', VOID, VOID, VOID, [5, 4]);
|
|
128
128
|
function get_byteSize() {
|
|
@@ -175,177 +175,177 @@
|
|
|
175
175
|
//endregion
|
|
176
176
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
177
177
|
CoroutineImpl.call(this, resultContinuation);
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
178
|
+
this.b59_1 = _this__u8e3s4;
|
|
179
|
+
this.c59_1 = message;
|
|
180
180
|
}
|
|
181
|
-
protoOf($logResponseExceptionCOROUTINE$).
|
|
182
|
-
var suspendResult = this.
|
|
181
|
+
protoOf($logResponseExceptionCOROUTINE$).l9 = function () {
|
|
182
|
+
var suspendResult = this.f9_1;
|
|
183
183
|
$sm: do
|
|
184
184
|
try {
|
|
185
|
-
var tmp = this.
|
|
185
|
+
var tmp = this.d9_1;
|
|
186
186
|
switch (tmp) {
|
|
187
187
|
case 0:
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
suspendResult = this.
|
|
188
|
+
this.e9_1 = 2;
|
|
189
|
+
this.d9_1 = 1;
|
|
190
|
+
suspendResult = this.b59_1.g59_1.wu(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.c59_1;
|
|
198
|
+
this.b59_1.d59_1.k59(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
199
199
|
return Unit_instance;
|
|
200
200
|
case 2:
|
|
201
|
-
throw this.
|
|
201
|
+
throw this.g9_1;
|
|
202
202
|
}
|
|
203
203
|
} catch ($p) {
|
|
204
204
|
var e = $p;
|
|
205
|
-
if (this.
|
|
205
|
+
if (this.e9_1 === 2) {
|
|
206
206
|
throw e;
|
|
207
207
|
} else {
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
208
|
+
this.d9_1 = this.e9_1;
|
|
209
|
+
this.g9_1 = e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
while (true);
|
|
213
213
|
};
|
|
214
214
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
215
215
|
CoroutineImpl.call(this, resultContinuation);
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
216
|
+
this.t59_1 = _this__u8e3s4;
|
|
217
|
+
this.u59_1 = message;
|
|
218
218
|
}
|
|
219
|
-
protoOf($logResponseBodyCOROUTINE$).
|
|
220
|
-
var suspendResult = this.
|
|
219
|
+
protoOf($logResponseBodyCOROUTINE$).l9 = function () {
|
|
220
|
+
var suspendResult = this.f9_1;
|
|
221
221
|
$sm: do
|
|
222
222
|
try {
|
|
223
|
-
var tmp = this.
|
|
223
|
+
var tmp = this.d9_1;
|
|
224
224
|
switch (tmp) {
|
|
225
225
|
case 0:
|
|
226
|
-
this.
|
|
227
|
-
this.
|
|
228
|
-
suspendResult = this.
|
|
226
|
+
this.e9_1 = 2;
|
|
227
|
+
this.d9_1 = 1;
|
|
228
|
+
suspendResult = this.t59_1.h59_1.wu(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.
|
|
235
|
+
this.t59_1.f59_1.q(this.u59_1);
|
|
236
236
|
return Unit_instance;
|
|
237
237
|
case 2:
|
|
238
|
-
throw this.
|
|
238
|
+
throw this.g9_1;
|
|
239
239
|
}
|
|
240
240
|
} catch ($p) {
|
|
241
241
|
var e = $p;
|
|
242
|
-
if (this.
|
|
242
|
+
if (this.e9_1 === 2) {
|
|
243
243
|
throw e;
|
|
244
244
|
} else {
|
|
245
|
-
this.
|
|
246
|
-
this.
|
|
245
|
+
this.d9_1 = this.e9_1;
|
|
246
|
+
this.g9_1 = e;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
while (true);
|
|
250
250
|
};
|
|
251
251
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
252
252
|
CoroutineImpl.call(this, resultContinuation);
|
|
253
|
-
this.
|
|
253
|
+
this.d5a_1 = _this__u8e3s4;
|
|
254
254
|
}
|
|
255
|
-
protoOf($closeResponseLogCOROUTINE$).
|
|
256
|
-
var suspendResult = this.
|
|
255
|
+
protoOf($closeResponseLogCOROUTINE$).l9 = function () {
|
|
256
|
+
var suspendResult = this.f9_1;
|
|
257
257
|
$sm: do
|
|
258
258
|
try {
|
|
259
|
-
var tmp = this.
|
|
259
|
+
var tmp = this.d9_1;
|
|
260
260
|
switch (tmp) {
|
|
261
261
|
case 0:
|
|
262
|
-
this.
|
|
263
|
-
if (!this.
|
|
262
|
+
this.e9_1 = 2;
|
|
263
|
+
if (!this.d5a_1.j59_1.atomicfu$compareAndSet(false, true))
|
|
264
264
|
return Unit_instance;
|
|
265
|
-
this.
|
|
266
|
-
suspendResult = this.
|
|
265
|
+
this.d9_1 = 1;
|
|
266
|
+
suspendResult = this.d5a_1.g59_1.wu(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.d5a_1.f59_1));
|
|
274
274
|
if (charSequenceLength(message) > 0) {
|
|
275
|
-
this.
|
|
275
|
+
this.d5a_1.d59_1.k59(message);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
return Unit_instance;
|
|
279
279
|
case 2:
|
|
280
|
-
throw this.
|
|
280
|
+
throw this.g9_1;
|
|
281
281
|
}
|
|
282
282
|
} catch ($p) {
|
|
283
283
|
var e = $p;
|
|
284
|
-
if (this.
|
|
284
|
+
if (this.e9_1 === 2) {
|
|
285
285
|
throw e;
|
|
286
286
|
} else {
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
287
|
+
this.d9_1 = this.e9_1;
|
|
288
|
+
this.g9_1 = e;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
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.d59_1 = logger;
|
|
295
|
+
this.e59_1 = StringBuilder_init_$Create$();
|
|
296
|
+
this.f59_1 = StringBuilder_init_$Create$();
|
|
297
|
+
this.g59_1 = Job();
|
|
298
|
+
this.h59_1 = Job();
|
|
299
|
+
this.i59_1 = atomic$boolean$1(false);
|
|
300
|
+
this.j59_1 = atomic$boolean$1(false);
|
|
301
|
+
}
|
|
302
|
+
protoOf(HttpClientCallLogger).e5a = function (message) {
|
|
303
|
+
var tmp0 = this.e59_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).f5a = function (message) {
|
|
311
|
+
var tmp0 = this.f59_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.h59_1.a12();
|
|
318
318
|
};
|
|
319
|
-
protoOf(HttpClientCallLogger).
|
|
319
|
+
protoOf(HttpClientCallLogger).g5a = function (message, $completion) {
|
|
320
320
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
321
|
-
tmp.
|
|
322
|
-
tmp.
|
|
323
|
-
return tmp.
|
|
321
|
+
tmp.f9_1 = Unit_instance;
|
|
322
|
+
tmp.g9_1 = null;
|
|
323
|
+
return tmp.l9();
|
|
324
324
|
};
|
|
325
|
-
protoOf(HttpClientCallLogger).
|
|
325
|
+
protoOf(HttpClientCallLogger).h5a = function (message, $completion) {
|
|
326
326
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
327
|
-
tmp.
|
|
328
|
-
tmp.
|
|
329
|
-
return tmp.
|
|
327
|
+
tmp.f9_1 = Unit_instance;
|
|
328
|
+
tmp.g9_1 = null;
|
|
329
|
+
return tmp.l9();
|
|
330
330
|
};
|
|
331
|
-
protoOf(HttpClientCallLogger).
|
|
332
|
-
if (!this.
|
|
331
|
+
protoOf(HttpClientCallLogger).i5a = function () {
|
|
332
|
+
if (!this.i59_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.e59_1));
|
|
336
336
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
337
337
|
if (charSequenceLength(message) > 0) {
|
|
338
|
-
this.
|
|
338
|
+
this.d59_1.k59(message);
|
|
339
339
|
}
|
|
340
340
|
}finally {
|
|
341
|
-
this.
|
|
341
|
+
this.g59_1.a12();
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
protoOf(HttpClientCallLogger).
|
|
344
|
+
protoOf(HttpClientCallLogger).j5a = function ($completion) {
|
|
345
345
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
346
|
-
tmp.
|
|
347
|
-
tmp.
|
|
348
|
-
return tmp.
|
|
346
|
+
tmp.f9_1 = Unit_instance;
|
|
347
|
+
tmp.g9_1 = null;
|
|
348
|
+
return tmp.l9();
|
|
349
349
|
};
|
|
350
350
|
function get_BinaryLogBodyFilter() {
|
|
351
351
|
_init_properties_LogBodyFilter_kt__oen9w();
|
|
@@ -363,75 +363,75 @@
|
|
|
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.o5a_1 = reason;
|
|
367
|
+
this.p5a_1 = byteSize;
|
|
368
368
|
}
|
|
369
|
-
protoOf(Skip).
|
|
370
|
-
return this.
|
|
369
|
+
protoOf(Skip).n5a = function () {
|
|
370
|
+
return this.p5a_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.r5a_1 = buffer;
|
|
377
|
+
this.s5a_1 = charset;
|
|
378
|
+
this.t5a_1 = byteSize;
|
|
379
379
|
}
|
|
380
|
-
protoOf(BufferContent).
|
|
381
|
-
return this.
|
|
380
|
+
protoOf(BufferContent).n5a = function () {
|
|
381
|
+
return this.t5a_1;
|
|
382
382
|
};
|
|
383
|
-
protoOf(BufferContent).
|
|
384
|
-
return readText(this.
|
|
383
|
+
protoOf(BufferContent).q5a = function () {
|
|
384
|
+
return readText(this.r5a_1, this.s5a_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.
|
|
395
|
-
}
|
|
396
|
-
protoOf($filterAllCOROUTINE$).
|
|
397
|
-
var suspendResult = this.
|
|
390
|
+
this.c5b_1 = _this__u8e3s4;
|
|
391
|
+
this.d5b_1 = contentLength;
|
|
392
|
+
this.e5b_1 = contentType;
|
|
393
|
+
this.f5b_1 = headers;
|
|
394
|
+
this.g5b_1 = body;
|
|
395
|
+
}
|
|
396
|
+
protoOf($filterAllCOROUTINE$).l9 = function () {
|
|
397
|
+
var suspendResult = this.f9_1;
|
|
398
398
|
$sm: do
|
|
399
399
|
try {
|
|
400
|
-
var tmp = this.
|
|
400
|
+
var tmp = this.d9_1;
|
|
401
401
|
switch (tmp) {
|
|
402
402
|
case 0:
|
|
403
|
-
this.
|
|
404
|
-
if (this.
|
|
405
|
-
return new Skip('encoded', this.
|
|
403
|
+
this.e9_1 = 6;
|
|
404
|
+
if (this.f5b_1.b2o('Content-Encoding')) {
|
|
405
|
+
return new Skip('encoded', this.d5b_1);
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
if (!(this.
|
|
409
|
-
this.
|
|
410
|
-
suspendResult = readBuffer(this.
|
|
408
|
+
if (!(this.e5b_1 == null) && isTextType(this.e5b_1)) {
|
|
409
|
+
this.d9_1 = 5;
|
|
410
|
+
suspendResult = readBuffer(this.g5b_1, this);
|
|
411
411
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
412
412
|
return suspendResult;
|
|
413
413
|
}
|
|
414
414
|
continue $sm;
|
|
415
415
|
} else {
|
|
416
|
-
this.
|
|
416
|
+
this.d9_1 = 1;
|
|
417
417
|
continue $sm;
|
|
418
418
|
}
|
|
419
419
|
|
|
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.e5b_1 == null)) {
|
|
424
|
+
var tmp1_elvis_lhs = charset(this.e5b_1);
|
|
425
|
+
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().v1y_1 : tmp1_elvis_lhs;
|
|
426
426
|
} else {
|
|
427
|
-
tmp_1 = Charsets_getInstance().
|
|
427
|
+
tmp_1 = Charsets_getInstance().v1y_1;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
tmp_0.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
suspendResult = readAvailable(this.
|
|
430
|
+
tmp_0.m5b_1 = tmp_1;
|
|
431
|
+
this.l5b_1 = false;
|
|
432
|
+
this.k5b_1 = new Int8Array(1024);
|
|
433
|
+
this.d9_1 = 2;
|
|
434
|
+
suspendResult = readAvailable(this.g5b_1, this.k5b_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.k5b_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.m5b_1.y1y(), 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.l5b_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.l5b_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.l5b_1 = true;
|
|
482
482
|
break $l$loop;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
if (this.
|
|
487
|
+
if (this.l5b_1) {
|
|
488
488
|
var tmp_4 = this;
|
|
489
|
-
tmp_4.
|
|
490
|
-
this.
|
|
489
|
+
tmp_4.h5b_1 = new Skip('binary', this.d5b_1);
|
|
490
|
+
this.d9_1 = 4;
|
|
491
491
|
continue $sm;
|
|
492
492
|
} else {
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
writeFully(this.
|
|
496
|
-
this.
|
|
497
|
-
suspendResult = readBuffer(this.
|
|
493
|
+
this.i5b_1 = new Buffer();
|
|
494
|
+
this.j5b_1 = this.i5b_1;
|
|
495
|
+
writeFully(this.j5b_1, this.k5b_1, 0, firstReadSize);
|
|
496
|
+
this.d9_1 = 3;
|
|
497
|
+
suspendResult = readBuffer(this.g5b_1, this);
|
|
498
498
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
499
499
|
return suspendResult;
|
|
500
500
|
}
|
|
@@ -503,41 +503,41 @@
|
|
|
503
503
|
|
|
504
504
|
case 3:
|
|
505
505
|
var ARGUMENT = suspendResult;
|
|
506
|
-
this.
|
|
507
|
-
var ARGUMENT_0 = this.
|
|
506
|
+
this.j5b_1.xr(ARGUMENT);
|
|
507
|
+
var ARGUMENT_0 = this.i5b_1;
|
|
508
508
|
var tmp_5 = this;
|
|
509
|
-
var tmp2_safe_receiver = this.
|
|
509
|
+
var tmp2_safe_receiver = this.e5b_1;
|
|
510
510
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
511
|
-
tmp_5.
|
|
512
|
-
this.
|
|
511
|
+
tmp_5.h5b_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().v1y_1 : tmp3_elvis_lhs);
|
|
512
|
+
this.d9_1 = 4;
|
|
513
513
|
continue $sm;
|
|
514
514
|
case 4:
|
|
515
|
-
return this.
|
|
515
|
+
return this.h5b_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.e5b_1);
|
|
519
|
+
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().v1y_1 : tmp0_elvis_lhs);
|
|
520
520
|
case 6:
|
|
521
|
-
throw this.
|
|
521
|
+
throw this.g9_1;
|
|
522
522
|
}
|
|
523
523
|
} catch ($p) {
|
|
524
524
|
var e = $p;
|
|
525
|
-
if (this.
|
|
525
|
+
if (this.e9_1 === 6) {
|
|
526
526
|
throw e;
|
|
527
527
|
} else {
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
528
|
+
this.d9_1 = this.e9_1;
|
|
529
|
+
this.g9_1 = e;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
while (true);
|
|
533
533
|
};
|
|
534
534
|
function BinaryLogBodyFilter$1() {
|
|
535
535
|
}
|
|
536
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
536
|
+
protoOf(BinaryLogBodyFilter$1).l5a = function (contentLength, contentType, headers, body, $completion) {
|
|
537
537
|
var tmp = new $filterAllCOROUTINE$(this, contentLength, contentType, headers, body, $completion);
|
|
538
|
-
tmp.
|
|
539
|
-
tmp.
|
|
540
|
-
return tmp.
|
|
538
|
+
tmp.f9_1 = Unit_instance;
|
|
539
|
+
tmp.g9_1 = null;
|
|
540
|
+
return tmp.l9();
|
|
541
541
|
};
|
|
542
542
|
var properties_initialized_LogBodyFilter_kt_tiz4du;
|
|
543
543
|
function _init_properties_LogBodyFilter_kt__oen9w() {
|
|
@@ -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.p5b_1 = info;
|
|
568
|
+
this.q5b_1 = headers;
|
|
569
|
+
this.r5b_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.t5b_1 = originalContent;
|
|
594
|
+
this.u5b_1 = channel;
|
|
595
|
+
this.v5b_1 = this.t5b_1.n37();
|
|
596
|
+
this.w5b_1 = this.t5b_1.p37();
|
|
597
|
+
this.x5b_1 = this.t5b_1.o37();
|
|
598
|
+
this.y5b_1 = this.t5b_1.p31();
|
|
599
599
|
}
|
|
600
|
-
protoOf(LoggedContent).
|
|
601
|
-
return this.
|
|
600
|
+
protoOf(LoggedContent).n37 = function () {
|
|
601
|
+
return this.v5b_1;
|
|
602
602
|
};
|
|
603
|
-
protoOf(LoggedContent).
|
|
604
|
-
return this.
|
|
603
|
+
protoOf(LoggedContent).p37 = function () {
|
|
604
|
+
return this.w5b_1;
|
|
605
605
|
};
|
|
606
|
-
protoOf(LoggedContent).
|
|
607
|
-
return this.
|
|
606
|
+
protoOf(LoggedContent).o37 = function () {
|
|
607
|
+
return this.x5b_1;
|
|
608
608
|
};
|
|
609
|
-
protoOf(LoggedContent).
|
|
610
|
-
return this.
|
|
609
|
+
protoOf(LoggedContent).p31 = function () {
|
|
610
|
+
return this.y5b_1;
|
|
611
611
|
};
|
|
612
|
-
protoOf(LoggedContent).
|
|
613
|
-
return this.
|
|
612
|
+
protoOf(LoggedContent).t37 = function () {
|
|
613
|
+
return this.u5b_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).k59 = 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.z5b_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.a5c_1 = ArrayList_init_$Create$();
|
|
655
|
+
this.b5c_1 = null;
|
|
656
|
+
this.c5c_1 = LoggingFormat_Default_getInstance();
|
|
657
|
+
this.d5c_1 = LogLevel_HEADERS_getInstance();
|
|
658
|
+
this.e5c_1 = get_BinaryLogBodyFilter();
|
|
659
659
|
}
|
|
660
|
-
protoOf(LoggingConfig).
|
|
661
|
-
this.
|
|
660
|
+
protoOf(LoggingConfig).f5c = function (value) {
|
|
661
|
+
this.b5c_1 = value;
|
|
662
662
|
};
|
|
663
|
-
protoOf(LoggingConfig).
|
|
664
|
-
var tmp0_elvis_lhs = this.
|
|
663
|
+
protoOf(LoggingConfig).g5c = function () {
|
|
664
|
+
var tmp0_elvis_lhs = this.b5c_1;
|
|
665
665
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
666
666
|
};
|
|
667
667
|
var LoggingFormat_Default_instance;
|
|
@@ -685,10 +685,10 @@
|
|
|
685
685
|
}
|
|
686
686
|
var tmp;
|
|
687
687
|
if (content instanceof ByteArrayContent) {
|
|
688
|
-
tmp = fromInt(content.
|
|
688
|
+
tmp = fromInt(content.q37().length);
|
|
689
689
|
} else {
|
|
690
690
|
if (content instanceof ContentWrapper) {
|
|
691
|
-
tmp = computeRequestBodySize(content.
|
|
691
|
+
tmp = computeRequestBodySize(content.z37());
|
|
692
692
|
} else {
|
|
693
693
|
if (content instanceof NoContent) {
|
|
694
694
|
tmp = 0n;
|
|
@@ -706,38 +706,38 @@
|
|
|
706
706
|
return tmp;
|
|
707
707
|
}
|
|
708
708
|
function Context(context) {
|
|
709
|
-
this.
|
|
709
|
+
this.h5c_1 = context;
|
|
710
710
|
}
|
|
711
|
-
protoOf(Context).
|
|
712
|
-
return this.
|
|
711
|
+
protoOf(Context).i5c = function (content, $completion) {
|
|
712
|
+
return this.h5c_1.b2s(content, $completion);
|
|
713
713
|
};
|
|
714
|
-
protoOf(Context).
|
|
715
|
-
return this.
|
|
714
|
+
protoOf(Context).j5c = function ($completion) {
|
|
715
|
+
return this.h5c_1.c2s($completion);
|
|
716
716
|
};
|
|
717
717
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
718
|
-
this.
|
|
718
|
+
this.s5c_1 = $handler;
|
|
719
719
|
CoroutineImpl.call(this, resultContinuation);
|
|
720
720
|
}
|
|
721
|
-
protoOf(SendHook$install$slambda).
|
|
722
|
-
var tmp = this.
|
|
723
|
-
tmp.
|
|
724
|
-
tmp.
|
|
725
|
-
return tmp.
|
|
721
|
+
protoOf(SendHook$install$slambda).g3q = function ($this$intercept, it, $completion) {
|
|
722
|
+
var tmp = this.h3q($this$intercept, it, $completion);
|
|
723
|
+
tmp.f9_1 = Unit_instance;
|
|
724
|
+
tmp.g9_1 = null;
|
|
725
|
+
return tmp.l9();
|
|
726
726
|
};
|
|
727
|
-
protoOf(SendHook$install$slambda).
|
|
727
|
+
protoOf(SendHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
728
728
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
729
|
-
return this.
|
|
729
|
+
return this.g3q(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
730
730
|
};
|
|
731
|
-
protoOf(SendHook$install$slambda).
|
|
732
|
-
var suspendResult = this.
|
|
731
|
+
protoOf(SendHook$install$slambda).l9 = function () {
|
|
732
|
+
var suspendResult = this.f9_1;
|
|
733
733
|
$sm: do
|
|
734
734
|
try {
|
|
735
|
-
var tmp = this.
|
|
735
|
+
var tmp = this.d9_1;
|
|
736
736
|
switch (tmp) {
|
|
737
737
|
case 0:
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
740
|
-
suspendResult = this.
|
|
738
|
+
this.e9_1 = 2;
|
|
739
|
+
this.d9_1 = 1;
|
|
740
|
+
suspendResult = this.s5c_1(new Context(this.t5c_1), this.t5c_1.x2s_1, this);
|
|
741
741
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
742
742
|
return suspendResult;
|
|
743
743
|
}
|
|
@@ -746,76 +746,76 @@
|
|
|
746
746
|
case 1:
|
|
747
747
|
return Unit_instance;
|
|
748
748
|
case 2:
|
|
749
|
-
throw this.
|
|
749
|
+
throw this.g9_1;
|
|
750
750
|
}
|
|
751
751
|
} catch ($p) {
|
|
752
752
|
var e = $p;
|
|
753
|
-
if (this.
|
|
753
|
+
if (this.e9_1 === 2) {
|
|
754
754
|
throw e;
|
|
755
755
|
} else {
|
|
756
|
-
this.
|
|
757
|
-
this.
|
|
756
|
+
this.d9_1 = this.e9_1;
|
|
757
|
+
this.g9_1 = e;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
while (true);
|
|
761
761
|
};
|
|
762
|
-
protoOf(SendHook$install$slambda).
|
|
763
|
-
var i = new SendHook$install$slambda(this.
|
|
764
|
-
i.
|
|
765
|
-
i.
|
|
762
|
+
protoOf(SendHook$install$slambda).h3q = function ($this$intercept, it, completion) {
|
|
763
|
+
var i = new SendHook$install$slambda(this.s5c_1, completion);
|
|
764
|
+
i.t5c_1 = $this$intercept;
|
|
765
|
+
i.u5c_1 = it;
|
|
766
766
|
return i;
|
|
767
767
|
};
|
|
768
768
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
769
769
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
770
770
|
var l = function ($this$intercept, it, $completion) {
|
|
771
|
-
return i.
|
|
771
|
+
return i.g3q($this$intercept, it, $completion);
|
|
772
772
|
};
|
|
773
773
|
l.$arity = 2;
|
|
774
774
|
return l;
|
|
775
775
|
}
|
|
776
776
|
function SendHook() {
|
|
777
777
|
}
|
|
778
|
-
protoOf(SendHook).
|
|
779
|
-
var tmp = Phases_getInstance().
|
|
780
|
-
client.
|
|
778
|
+
protoOf(SendHook).v5c = function (client, handler) {
|
|
779
|
+
var tmp = Phases_getInstance().x3r_1;
|
|
780
|
+
client.k3p_1.b2t(tmp, SendHook$install$slambda_0(handler, null));
|
|
781
781
|
};
|
|
782
|
-
protoOf(SendHook).
|
|
783
|
-
return this.
|
|
782
|
+
protoOf(SendHook).t3y = function (client, handler) {
|
|
783
|
+
return this.v5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
784
784
|
};
|
|
785
785
|
var SendHook_instance;
|
|
786
786
|
function SendHook_getInstance() {
|
|
787
787
|
return SendHook_instance;
|
|
788
788
|
}
|
|
789
789
|
function Context_0(context) {
|
|
790
|
-
this.
|
|
790
|
+
this.w5c_1 = context;
|
|
791
791
|
}
|
|
792
|
-
protoOf(Context_0).
|
|
793
|
-
return this.
|
|
792
|
+
protoOf(Context_0).r4n = function (response, $completion) {
|
|
793
|
+
return this.w5c_1.b2s(response, $completion);
|
|
794
794
|
};
|
|
795
795
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
796
|
-
this.
|
|
796
|
+
this.f5d_1 = $handler;
|
|
797
797
|
CoroutineImpl.call(this, resultContinuation);
|
|
798
798
|
}
|
|
799
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
800
|
-
var tmp = this.
|
|
801
|
-
tmp.
|
|
802
|
-
tmp.
|
|
803
|
-
return tmp.
|
|
799
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).f3z = function ($this$intercept, it, $completion) {
|
|
800
|
+
var tmp = this.g3z($this$intercept, it, $completion);
|
|
801
|
+
tmp.f9_1 = Unit_instance;
|
|
802
|
+
tmp.g9_1 = null;
|
|
803
|
+
return tmp.l9();
|
|
804
804
|
};
|
|
805
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
805
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
806
806
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
807
|
-
return this.
|
|
807
|
+
return this.f3z(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
808
808
|
};
|
|
809
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
810
|
-
var suspendResult = this.
|
|
809
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).l9 = function () {
|
|
810
|
+
var suspendResult = this.f9_1;
|
|
811
811
|
$sm: do
|
|
812
812
|
try {
|
|
813
|
-
var tmp = this.
|
|
813
|
+
var tmp = this.d9_1;
|
|
814
814
|
switch (tmp) {
|
|
815
815
|
case 0:
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
818
|
-
suspendResult = this.
|
|
816
|
+
this.e9_1 = 2;
|
|
817
|
+
this.d9_1 = 1;
|
|
818
|
+
suspendResult = this.f5d_1(new Context_0(this.g5d_1), this.g5d_1.a2s(), this);
|
|
819
819
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
820
820
|
return suspendResult;
|
|
821
821
|
}
|
|
@@ -824,77 +824,77 @@
|
|
|
824
824
|
case 1:
|
|
825
825
|
return Unit_instance;
|
|
826
826
|
case 2:
|
|
827
|
-
throw this.
|
|
827
|
+
throw this.g9_1;
|
|
828
828
|
}
|
|
829
829
|
} catch ($p) {
|
|
830
830
|
var e = $p;
|
|
831
|
-
if (this.
|
|
831
|
+
if (this.e9_1 === 2) {
|
|
832
832
|
throw e;
|
|
833
833
|
} else {
|
|
834
|
-
this.
|
|
835
|
-
this.
|
|
834
|
+
this.d9_1 = this.e9_1;
|
|
835
|
+
this.g9_1 = e;
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
838
|
while (true);
|
|
839
839
|
};
|
|
840
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
841
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
842
|
-
i.
|
|
843
|
-
i.
|
|
840
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).g3z = function ($this$intercept, it, completion) {
|
|
841
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.f5d_1, completion);
|
|
842
|
+
i.g5d_1 = $this$intercept;
|
|
843
|
+
i.h5d_1 = it;
|
|
844
844
|
return i;
|
|
845
845
|
};
|
|
846
846
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
847
847
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
848
848
|
var l = function ($this$intercept, it, $completion) {
|
|
849
|
-
return i.
|
|
849
|
+
return i.f3z($this$intercept, it, $completion);
|
|
850
850
|
};
|
|
851
851
|
l.$arity = 2;
|
|
852
852
|
return l;
|
|
853
853
|
}
|
|
854
854
|
function ResponseAfterEncodingHook() {
|
|
855
855
|
}
|
|
856
|
-
protoOf(ResponseAfterEncodingHook).
|
|
856
|
+
protoOf(ResponseAfterEncodingHook).i5d = function (client, handler) {
|
|
857
857
|
var afterState = new PipelinePhase('AfterState');
|
|
858
|
-
client.
|
|
859
|
-
client.
|
|
858
|
+
client.l3p_1.y2s(Phases_getInstance_0().j3z_1, afterState);
|
|
859
|
+
client.l3p_1.b2t(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
860
860
|
};
|
|
861
|
-
protoOf(ResponseAfterEncodingHook).
|
|
862
|
-
return this.
|
|
861
|
+
protoOf(ResponseAfterEncodingHook).t3y = function (client, handler) {
|
|
862
|
+
return this.i5d(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
863
863
|
};
|
|
864
864
|
var ResponseAfterEncodingHook_instance;
|
|
865
865
|
function ResponseAfterEncodingHook_getInstance() {
|
|
866
866
|
return ResponseAfterEncodingHook_instance;
|
|
867
867
|
}
|
|
868
868
|
function Context_1(context) {
|
|
869
|
-
this.
|
|
869
|
+
this.j5d_1 = context;
|
|
870
870
|
}
|
|
871
|
-
protoOf(Context_1).
|
|
872
|
-
return this.
|
|
871
|
+
protoOf(Context_1).k5d = function ($completion) {
|
|
872
|
+
return this.j5d_1.c2s($completion);
|
|
873
873
|
};
|
|
874
874
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
875
|
-
this.
|
|
875
|
+
this.t5d_1 = $handler;
|
|
876
876
|
CoroutineImpl.call(this, resultContinuation);
|
|
877
877
|
}
|
|
878
|
-
protoOf(ResponseHook$install$slambda).
|
|
879
|
-
var tmp = this.
|
|
880
|
-
tmp.
|
|
881
|
-
tmp.
|
|
882
|
-
return tmp.
|
|
878
|
+
protoOf(ResponseHook$install$slambda).f3z = function ($this$intercept, it, $completion) {
|
|
879
|
+
var tmp = this.g3z($this$intercept, it, $completion);
|
|
880
|
+
tmp.f9_1 = Unit_instance;
|
|
881
|
+
tmp.g9_1 = null;
|
|
882
|
+
return tmp.l9();
|
|
883
883
|
};
|
|
884
|
-
protoOf(ResponseHook$install$slambda).
|
|
884
|
+
protoOf(ResponseHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
885
885
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
886
|
-
return this.
|
|
886
|
+
return this.f3z(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
887
887
|
};
|
|
888
|
-
protoOf(ResponseHook$install$slambda).
|
|
889
|
-
var suspendResult = this.
|
|
888
|
+
protoOf(ResponseHook$install$slambda).l9 = function () {
|
|
889
|
+
var suspendResult = this.f9_1;
|
|
890
890
|
$sm: do
|
|
891
891
|
try {
|
|
892
|
-
var tmp = this.
|
|
892
|
+
var tmp = this.d9_1;
|
|
893
893
|
switch (tmp) {
|
|
894
894
|
case 0:
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
897
|
-
suspendResult = this.
|
|
895
|
+
this.e9_1 = 2;
|
|
896
|
+
this.d9_1 = 1;
|
|
897
|
+
suspendResult = this.t5d_1(new Context_1(this.u5d_1), this.u5d_1.a2s(), this);
|
|
898
898
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
899
899
|
return suspendResult;
|
|
900
900
|
}
|
|
@@ -903,76 +903,76 @@
|
|
|
903
903
|
case 1:
|
|
904
904
|
return Unit_instance;
|
|
905
905
|
case 2:
|
|
906
|
-
throw this.
|
|
906
|
+
throw this.g9_1;
|
|
907
907
|
}
|
|
908
908
|
} catch ($p) {
|
|
909
909
|
var e = $p;
|
|
910
|
-
if (this.
|
|
910
|
+
if (this.e9_1 === 2) {
|
|
911
911
|
throw e;
|
|
912
912
|
} else {
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
913
|
+
this.d9_1 = this.e9_1;
|
|
914
|
+
this.g9_1 = e;
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
while (true);
|
|
918
918
|
};
|
|
919
|
-
protoOf(ResponseHook$install$slambda).
|
|
920
|
-
var i = new ResponseHook$install$slambda(this.
|
|
921
|
-
i.
|
|
922
|
-
i.
|
|
919
|
+
protoOf(ResponseHook$install$slambda).g3z = function ($this$intercept, it, completion) {
|
|
920
|
+
var i = new ResponseHook$install$slambda(this.t5d_1, completion);
|
|
921
|
+
i.u5d_1 = $this$intercept;
|
|
922
|
+
i.v5d_1 = it;
|
|
923
923
|
return i;
|
|
924
924
|
};
|
|
925
925
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
926
926
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
927
927
|
var l = function ($this$intercept, it, $completion) {
|
|
928
|
-
return i.
|
|
928
|
+
return i.f3z($this$intercept, it, $completion);
|
|
929
929
|
};
|
|
930
930
|
l.$arity = 2;
|
|
931
931
|
return l;
|
|
932
932
|
}
|
|
933
933
|
function ResponseHook() {
|
|
934
934
|
}
|
|
935
|
-
protoOf(ResponseHook).
|
|
936
|
-
var tmp = Phases_getInstance_0().
|
|
937
|
-
client.
|
|
935
|
+
protoOf(ResponseHook).w5d = function (client, handler) {
|
|
936
|
+
var tmp = Phases_getInstance_0().j3z_1;
|
|
937
|
+
client.l3p_1.b2t(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
938
938
|
};
|
|
939
|
-
protoOf(ResponseHook).
|
|
940
|
-
return this.
|
|
939
|
+
protoOf(ResponseHook).t3y = function (client, handler) {
|
|
940
|
+
return this.w5d(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
941
941
|
};
|
|
942
942
|
var ResponseHook_instance;
|
|
943
943
|
function ResponseHook_getInstance() {
|
|
944
944
|
return ResponseHook_instance;
|
|
945
945
|
}
|
|
946
946
|
function Context_2(context) {
|
|
947
|
-
this.
|
|
947
|
+
this.x5d_1 = context;
|
|
948
948
|
}
|
|
949
|
-
protoOf(Context_2).
|
|
950
|
-
return this.
|
|
949
|
+
protoOf(Context_2).y5d = function ($completion) {
|
|
950
|
+
return this.x5d_1.c2s($completion);
|
|
951
951
|
};
|
|
952
952
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
953
|
-
this.
|
|
953
|
+
this.h5e_1 = $handler;
|
|
954
954
|
CoroutineImpl.call(this, resultContinuation);
|
|
955
955
|
}
|
|
956
|
-
protoOf(ReceiveHook$install$slambda).
|
|
957
|
-
var tmp = this.
|
|
958
|
-
tmp.
|
|
959
|
-
tmp.
|
|
960
|
-
return tmp.
|
|
956
|
+
protoOf(ReceiveHook$install$slambda).b3r = function ($this$intercept, it, $completion) {
|
|
957
|
+
var tmp = this.c3r($this$intercept, it, $completion);
|
|
958
|
+
tmp.f9_1 = Unit_instance;
|
|
959
|
+
tmp.g9_1 = null;
|
|
960
|
+
return tmp.l9();
|
|
961
961
|
};
|
|
962
|
-
protoOf(ReceiveHook$install$slambda).
|
|
962
|
+
protoOf(ReceiveHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
963
963
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
964
|
-
return this.
|
|
964
|
+
return this.b3r(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
965
965
|
};
|
|
966
|
-
protoOf(ReceiveHook$install$slambda).
|
|
967
|
-
var suspendResult = this.
|
|
966
|
+
protoOf(ReceiveHook$install$slambda).l9 = function () {
|
|
967
|
+
var suspendResult = this.f9_1;
|
|
968
968
|
$sm: do
|
|
969
969
|
try {
|
|
970
|
-
var tmp = this.
|
|
970
|
+
var tmp = this.d9_1;
|
|
971
971
|
switch (tmp) {
|
|
972
972
|
case 0:
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
975
|
-
suspendResult = this.
|
|
973
|
+
this.e9_1 = 2;
|
|
974
|
+
this.d9_1 = 1;
|
|
975
|
+
suspendResult = this.h5e_1(new Context_2(this.i5e_1), this.i5e_1.x2s_1, this);
|
|
976
976
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
977
977
|
return suspendResult;
|
|
978
978
|
}
|
|
@@ -981,41 +981,41 @@
|
|
|
981
981
|
case 1:
|
|
982
982
|
return Unit_instance;
|
|
983
983
|
case 2:
|
|
984
|
-
throw this.
|
|
984
|
+
throw this.g9_1;
|
|
985
985
|
}
|
|
986
986
|
} catch ($p) {
|
|
987
987
|
var e = $p;
|
|
988
|
-
if (this.
|
|
988
|
+
if (this.e9_1 === 2) {
|
|
989
989
|
throw e;
|
|
990
990
|
} else {
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
991
|
+
this.d9_1 = this.e9_1;
|
|
992
|
+
this.g9_1 = e;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
while (true);
|
|
996
996
|
};
|
|
997
|
-
protoOf(ReceiveHook$install$slambda).
|
|
998
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
999
|
-
i.
|
|
1000
|
-
i.
|
|
997
|
+
protoOf(ReceiveHook$install$slambda).c3r = function ($this$intercept, it, completion) {
|
|
998
|
+
var i = new ReceiveHook$install$slambda(this.h5e_1, completion);
|
|
999
|
+
i.i5e_1 = $this$intercept;
|
|
1000
|
+
i.j5e_1 = it;
|
|
1001
1001
|
return i;
|
|
1002
1002
|
};
|
|
1003
1003
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
1004
1004
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
1005
1005
|
var l = function ($this$intercept, it, $completion) {
|
|
1006
|
-
return i.
|
|
1006
|
+
return i.b3r($this$intercept, it, $completion);
|
|
1007
1007
|
};
|
|
1008
1008
|
l.$arity = 2;
|
|
1009
1009
|
return l;
|
|
1010
1010
|
}
|
|
1011
1011
|
function ReceiveHook() {
|
|
1012
1012
|
}
|
|
1013
|
-
protoOf(ReceiveHook).
|
|
1014
|
-
var tmp = Phases_getInstance_1().
|
|
1015
|
-
client.
|
|
1013
|
+
protoOf(ReceiveHook).k5e = function (client, handler) {
|
|
1014
|
+
var tmp = Phases_getInstance_1().l3s_1;
|
|
1015
|
+
client.j3p_1.b2t(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
1016
1016
|
};
|
|
1017
|
-
protoOf(ReceiveHook).
|
|
1018
|
-
return this.
|
|
1017
|
+
protoOf(ReceiveHook).t3y = function (client, handler) {
|
|
1018
|
+
return this.k5e(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1019
1019
|
};
|
|
1020
1020
|
var ReceiveHook_instance;
|
|
1021
1021
|
function ReceiveHook_getInstance() {
|
|
@@ -1030,27 +1030,27 @@
|
|
|
1030
1030
|
}
|
|
1031
1031
|
function Logging$lambda($this$createClientPlugin) {
|
|
1032
1032
|
_init_properties_Logging_kt__66pui5();
|
|
1033
|
-
var logger = $this$createClientPlugin.
|
|
1034
|
-
var level = $this$createClientPlugin.
|
|
1035
|
-
var filters = $this$createClientPlugin.
|
|
1036
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
1037
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
1038
|
-
var bodyFilter = $this$createClientPlugin.
|
|
1033
|
+
var logger = $this$createClientPlugin.n3z_1.g5c();
|
|
1034
|
+
var level = $this$createClientPlugin.n3z_1.d5c_1;
|
|
1035
|
+
var filters = $this$createClientPlugin.n3z_1.z5b_1;
|
|
1036
|
+
var sanitizedHeaders = $this$createClientPlugin.n3z_1.a5c_1;
|
|
1037
|
+
var okHttpFormat = $this$createClientPlugin.n3z_1.c5c_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1038
|
+
var bodyFilter = $this$createClientPlugin.n3z_1.e5c_1;
|
|
1039
1039
|
var tmp = SendHook_instance;
|
|
1040
|
-
$this$createClientPlugin.
|
|
1040
|
+
$this$createClientPlugin.q3z(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
1041
1041
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
1042
|
-
$this$createClientPlugin.
|
|
1042
|
+
$this$createClientPlugin.q3z(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
1043
1043
|
var tmp_1 = ResponseHook_instance;
|
|
1044
|
-
$this$createClientPlugin.
|
|
1044
|
+
$this$createClientPlugin.q3z(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
1045
1045
|
var tmp_2 = ReceiveHook_instance;
|
|
1046
|
-
$this$createClientPlugin.
|
|
1046
|
+
$this$createClientPlugin.q3z(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, logger, null));
|
|
1047
1047
|
if (okHttpFormat)
|
|
1048
1048
|
return Unit_instance;
|
|
1049
|
-
if (!level.
|
|
1049
|
+
if (!level.r5b_1)
|
|
1050
1050
|
return Unit_instance;
|
|
1051
1051
|
var tmp_3 = get_ResponseObserver();
|
|
1052
|
-
var responseObserver = tmp_3.
|
|
1053
|
-
get_ResponseObserver().
|
|
1052
|
+
var responseObserver = tmp_3.s3s(Logging$lambda$lambda(level));
|
|
1053
|
+
get_ResponseObserver().t3s(responseObserver, $this$createClientPlugin.m3z_1);
|
|
1054
1054
|
return Unit_instance;
|
|
1055
1055
|
}
|
|
1056
1056
|
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
@@ -1058,67 +1058,67 @@
|
|
|
1058
1058
|
return it;
|
|
1059
1059
|
}
|
|
1060
1060
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1061
|
+
this.t5e_1 = $content;
|
|
1062
|
+
this.u5e_1 = $channel;
|
|
1063
1063
|
CoroutineImpl.call(this, resultContinuation);
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1066
|
-
var tmp = this.
|
|
1067
|
-
tmp.
|
|
1068
|
-
tmp.
|
|
1069
|
-
return tmp.
|
|
1065
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).v1x = function ($this$launch, $completion) {
|
|
1066
|
+
var tmp = this.w1x($this$launch, $completion);
|
|
1067
|
+
tmp.f9_1 = Unit_instance;
|
|
1068
|
+
tmp.g9_1 = null;
|
|
1069
|
+
return tmp.l9();
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1072
|
-
return this.
|
|
1071
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).y9 = function (p1, $completion) {
|
|
1072
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1073
1073
|
};
|
|
1074
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1075
|
-
var suspendResult = this.
|
|
1074
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).l9 = function () {
|
|
1075
|
+
var suspendResult = this.f9_1;
|
|
1076
1076
|
$sm: do
|
|
1077
1077
|
try {
|
|
1078
|
-
var tmp = this.
|
|
1078
|
+
var tmp = this.d9_1;
|
|
1079
1079
|
switch (tmp) {
|
|
1080
1080
|
case 0:
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1083
|
-
suspendResult = this.
|
|
1081
|
+
this.e9_1 = 2;
|
|
1082
|
+
this.d9_1 = 1;
|
|
1083
|
+
suspendResult = this.t5e_1.v37(this.u5e_1, this);
|
|
1084
1084
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1085
1085
|
return suspendResult;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
1088
|
continue $sm;
|
|
1089
1089
|
case 1:
|
|
1090
|
-
this.
|
|
1090
|
+
this.u5e_1.o4();
|
|
1091
1091
|
return Unit_instance;
|
|
1092
1092
|
case 2:
|
|
1093
|
-
throw this.
|
|
1093
|
+
throw this.g9_1;
|
|
1094
1094
|
}
|
|
1095
1095
|
} catch ($p) {
|
|
1096
1096
|
var e = $p;
|
|
1097
|
-
if (this.
|
|
1097
|
+
if (this.e9_1 === 2) {
|
|
1098
1098
|
throw e;
|
|
1099
1099
|
} else {
|
|
1100
|
-
this.
|
|
1101
|
-
this.
|
|
1100
|
+
this.d9_1 = this.e9_1;
|
|
1101
|
+
this.g9_1 = e;
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
while (true);
|
|
1105
1105
|
};
|
|
1106
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1107
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1108
|
-
i.
|
|
1106
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).w1x = function ($this$launch, completion) {
|
|
1107
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.t5e_1, this.u5e_1, completion);
|
|
1108
|
+
i.v5e_1 = $this$launch;
|
|
1109
1109
|
return i;
|
|
1110
1110
|
};
|
|
1111
1111
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1112
1112
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1113
1113
|
var l = function ($this$launch, $completion) {
|
|
1114
|
-
return i.
|
|
1114
|
+
return i.v1x($this$launch, $completion);
|
|
1115
1115
|
};
|
|
1116
1116
|
l.$arity = 1;
|
|
1117
1117
|
return l;
|
|
1118
1118
|
}
|
|
1119
1119
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1120
1120
|
_init_properties_Logging_kt__66pui5();
|
|
1121
|
-
return GZipEncoder_getInstance().
|
|
1121
|
+
return GZipEncoder_getInstance().t2o(channel);
|
|
1122
1122
|
}
|
|
1123
1123
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1124
1124
|
return function ($this$replaceResponse) {
|
|
@@ -1126,37 +1126,37 @@
|
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
1128
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1131
|
-
this.
|
|
1132
|
-
this.
|
|
1129
|
+
this.e5f_1 = $channel;
|
|
1130
|
+
this.f5f_1 = $charset;
|
|
1131
|
+
this.g5f_1 = $requestLog;
|
|
1132
|
+
this.h5f_1 = $logger;
|
|
1133
1133
|
CoroutineImpl.call(this, resultContinuation);
|
|
1134
1134
|
}
|
|
1135
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1136
|
-
var tmp = this.
|
|
1137
|
-
tmp.
|
|
1138
|
-
tmp.
|
|
1139
|
-
return tmp.
|
|
1135
|
+
protoOf(Logging$lambda$logRequestBody$slambda).v1x = function ($this$launch, $completion) {
|
|
1136
|
+
var tmp = this.w1x($this$launch, $completion);
|
|
1137
|
+
tmp.f9_1 = Unit_instance;
|
|
1138
|
+
tmp.g9_1 = null;
|
|
1139
|
+
return tmp.l9();
|
|
1140
1140
|
};
|
|
1141
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1142
|
-
return this.
|
|
1141
|
+
protoOf(Logging$lambda$logRequestBody$slambda).y9 = function (p1, $completion) {
|
|
1142
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1143
1143
|
};
|
|
1144
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1145
|
-
var suspendResult = this.
|
|
1144
|
+
protoOf(Logging$lambda$logRequestBody$slambda).l9 = function () {
|
|
1145
|
+
var suspendResult = this.f9_1;
|
|
1146
1146
|
$sm: do
|
|
1147
1147
|
try {
|
|
1148
|
-
var tmp = this.
|
|
1148
|
+
var tmp = this.d9_1;
|
|
1149
1149
|
switch (tmp) {
|
|
1150
1150
|
case 0:
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1151
|
+
this.e9_1 = 7;
|
|
1152
|
+
this.d9_1 = 1;
|
|
1153
1153
|
continue $sm;
|
|
1154
1154
|
case 1:
|
|
1155
|
-
this.
|
|
1156
|
-
var tmp0 = this.
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1159
|
-
this.
|
|
1155
|
+
this.e9_1 = 6;
|
|
1156
|
+
var tmp0 = this.e5f_1;
|
|
1157
|
+
this.l5f_1 = this.f5f_1;
|
|
1158
|
+
this.e9_1 = 3;
|
|
1159
|
+
this.d9_1 = 2;
|
|
1160
1160
|
suspendResult = readRemaining(tmp0, this);
|
|
1161
1161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1162
1162
|
return suspendResult;
|
|
@@ -1165,70 +1165,70 @@
|
|
|
1165
1165
|
continue $sm;
|
|
1166
1166
|
case 2:
|
|
1167
1167
|
var ARGUMENT = suspendResult;
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1170
|
-
this.
|
|
1168
|
+
this.k5f_1 = readText(ARGUMENT, this.l5f_1);
|
|
1169
|
+
this.e9_1 = 6;
|
|
1170
|
+
this.d9_1 = 4;
|
|
1171
1171
|
continue $sm;
|
|
1172
1172
|
case 3:
|
|
1173
|
-
this.
|
|
1174
|
-
var tmp_0 = this.
|
|
1173
|
+
this.e9_1 = 6;
|
|
1174
|
+
var tmp_0 = this.g9_1;
|
|
1175
1175
|
if (tmp_0 instanceof Error) {
|
|
1176
|
-
var cause = this.
|
|
1176
|
+
var cause = this.g9_1;
|
|
1177
1177
|
var tmp_1 = this;
|
|
1178
|
-
tmp_1.
|
|
1179
|
-
this.
|
|
1178
|
+
tmp_1.k5f_1 = null;
|
|
1179
|
+
this.d9_1 = 4;
|
|
1180
1180
|
continue $sm;
|
|
1181
1181
|
} else {
|
|
1182
|
-
throw this.
|
|
1182
|
+
throw this.g9_1;
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
1185
|
case 4:
|
|
1186
|
-
this.
|
|
1187
|
-
var tmp0_elvis_lhs = this.
|
|
1186
|
+
this.e9_1 = 6;
|
|
1187
|
+
var tmp0_elvis_lhs = this.k5f_1;
|
|
1188
1188
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1189
|
-
var tmp0_0 = this.
|
|
1189
|
+
var tmp0_0 = this.g5f_1;
|
|
1190
1190
|
var value = 'BODY START';
|
|
1191
1191
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1195
|
-
this.
|
|
1192
|
+
this.g5f_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1193
|
+
this.j5f_1 = this.g5f_1.q('BODY END');
|
|
1194
|
+
this.e9_1 = 7;
|
|
1195
|
+
this.d9_1 = 5;
|
|
1196
1196
|
continue $sm;
|
|
1197
1197
|
case 5:
|
|
1198
|
-
this.
|
|
1199
|
-
this.
|
|
1200
|
-
this.
|
|
1201
|
-
this.
|
|
1198
|
+
this.j5f_1;
|
|
1199
|
+
this.e9_1 = 7;
|
|
1200
|
+
this.h5f_1.e5a(this.g5f_1.toString());
|
|
1201
|
+
this.h5f_1.i5a();
|
|
1202
1202
|
return Unit_instance;
|
|
1203
1203
|
case 6:
|
|
1204
|
-
this.
|
|
1205
|
-
var t = this.
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1204
|
+
this.e9_1 = 7;
|
|
1205
|
+
var t = this.g9_1;
|
|
1206
|
+
this.h5f_1.e5a(this.g5f_1.toString());
|
|
1207
|
+
this.h5f_1.i5a();
|
|
1208
1208
|
throw t;
|
|
1209
1209
|
case 7:
|
|
1210
|
-
throw this.
|
|
1210
|
+
throw this.g9_1;
|
|
1211
1211
|
}
|
|
1212
1212
|
} catch ($p) {
|
|
1213
1213
|
var e = $p;
|
|
1214
|
-
if (this.
|
|
1214
|
+
if (this.e9_1 === 7) {
|
|
1215
1215
|
throw e;
|
|
1216
1216
|
} else {
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1217
|
+
this.d9_1 = this.e9_1;
|
|
1218
|
+
this.g9_1 = e;
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
while (true);
|
|
1222
1222
|
};
|
|
1223
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1224
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1225
|
-
i.
|
|
1223
|
+
protoOf(Logging$lambda$logRequestBody$slambda).w1x = function ($this$launch, completion) {
|
|
1224
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.e5f_1, this.f5f_1, this.g5f_1, this.h5f_1, completion);
|
|
1225
|
+
i.i5f_1 = $this$launch;
|
|
1226
1226
|
return i;
|
|
1227
1227
|
};
|
|
1228
1228
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1229
1229
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1230
1230
|
var l = function ($this$launch, $completion) {
|
|
1231
|
-
return i.
|
|
1231
|
+
return i.v1x($this$launch, $completion);
|
|
1232
1232
|
};
|
|
1233
1233
|
l.$arity = 1;
|
|
1234
1234
|
return l;
|
|
@@ -1279,9 +1279,9 @@
|
|
|
1279
1279
|
}
|
|
1280
1280
|
function invoke$logRequestBody(bodyFilter, url, content, contentLength, headers, method, logLines, body, $completion) {
|
|
1281
1281
|
var tmp = new $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, $completion);
|
|
1282
|
-
tmp.
|
|
1283
|
-
tmp.
|
|
1284
|
-
return tmp.
|
|
1282
|
+
tmp.f9_1 = Unit_instance;
|
|
1283
|
+
tmp.g9_1 = null;
|
|
1284
|
+
return tmp.l9();
|
|
1285
1285
|
}
|
|
1286
1286
|
function invoke$logOutgoingContent($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, $completion) {
|
|
1287
1287
|
var tmp;
|
|
@@ -1292,72 +1292,72 @@
|
|
|
1292
1292
|
}
|
|
1293
1293
|
process = tmp;
|
|
1294
1294
|
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, $completion);
|
|
1295
|
-
tmp_0.
|
|
1296
|
-
tmp_0.
|
|
1297
|
-
return tmp_0.
|
|
1295
|
+
tmp_0.f9_1 = Unit_instance;
|
|
1296
|
+
tmp_0.g9_1 = null;
|
|
1297
|
+
return tmp_0.l9();
|
|
1298
1298
|
}
|
|
1299
1299
|
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, $completion) {
|
|
1300
1300
|
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, $completion);
|
|
1301
|
-
tmp.
|
|
1302
|
-
tmp.
|
|
1303
|
-
return tmp.
|
|
1301
|
+
tmp.f9_1 = Unit_instance;
|
|
1302
|
+
tmp.g9_1 = null;
|
|
1303
|
+
return tmp.l9();
|
|
1304
1304
|
}
|
|
1305
1305
|
function invoke$logResponseBody(bodyFilter, response, body, logLines, $completion) {
|
|
1306
1306
|
var tmp = new $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, $completion);
|
|
1307
|
-
tmp.
|
|
1308
|
-
tmp.
|
|
1309
|
-
return tmp.
|
|
1307
|
+
tmp.f9_1 = Unit_instance;
|
|
1308
|
+
tmp.g9_1 = null;
|
|
1309
|
+
return tmp.l9();
|
|
1310
1310
|
}
|
|
1311
1311
|
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level, bodyFilter, response, logLines, $completion) {
|
|
1312
1312
|
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, $completion);
|
|
1313
|
-
tmp.
|
|
1314
|
-
tmp.
|
|
1315
|
-
return tmp.
|
|
1313
|
+
tmp.f9_1 = Unit_instance;
|
|
1314
|
+
tmp.g9_1 = null;
|
|
1315
|
+
return tmp.l9();
|
|
1316
1316
|
}
|
|
1317
1317
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1318
1318
|
var requestLog = StringBuilder_init_$Create$();
|
|
1319
1319
|
// Inline function 'kotlin.text.appendLine' call
|
|
1320
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1320
|
+
var value = 'BODY Content-Type: ' + toString_0(content.n37());
|
|
1321
1321
|
// Inline function 'kotlin.text.appendLine' call
|
|
1322
1322
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1323
|
-
var tmp0_safe_receiver = content.
|
|
1323
|
+
var tmp0_safe_receiver = content.n37();
|
|
1324
1324
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1325
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
1325
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().v1y_1 : tmp1_elvis_lhs;
|
|
1326
1326
|
var channel = new ByteChannel();
|
|
1327
1327
|
var tmp = GlobalScope_instance;
|
|
1328
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1328
|
+
var tmp_0 = Dispatchers_getInstance().g16_1.ch(MDCContext());
|
|
1329
1329
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1330
1330
|
return observe(content, channel, $completion);
|
|
1331
1331
|
}
|
|
1332
1332
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1333
|
-
if (level.
|
|
1334
|
-
logger.
|
|
1333
|
+
if (level.p5b_1) {
|
|
1334
|
+
logger.k59('REQUEST ' + Url(context.n3r_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1338
|
-
var tmp = request.
|
|
1338
|
+
var tmp = request.q3r_1;
|
|
1339
1339
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1340
1340
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1341
|
-
request.
|
|
1341
|
+
request.s3r_1.v2k(get_ClientCallLogger(), callLogger);
|
|
1342
1342
|
// Inline function 'kotlin.text.buildString' call
|
|
1343
1343
|
// Inline function 'kotlin.apply' call
|
|
1344
1344
|
var this_0 = StringBuilder_init_$Create$();
|
|
1345
|
-
if (level.
|
|
1345
|
+
if (level.p5b_1) {
|
|
1346
1346
|
// Inline function 'kotlin.text.appendLine' call
|
|
1347
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1347
|
+
var value = 'REQUEST: ' + Url(request.n3r_1).toString();
|
|
1348
1348
|
// Inline function 'kotlin.text.appendLine' call
|
|
1349
1349
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1350
1350
|
// Inline function 'kotlin.text.appendLine' call
|
|
1351
|
-
var value_0 = 'METHOD: ' + request.
|
|
1351
|
+
var value_0 = 'METHOD: ' + request.o3r_1.toString();
|
|
1352
1352
|
// Inline function 'kotlin.text.appendLine' call
|
|
1353
1353
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1354
1354
|
}
|
|
1355
|
-
if (level.
|
|
1355
|
+
if (level.q5b_1) {
|
|
1356
1356
|
// Inline function 'kotlin.text.appendLine' call
|
|
1357
1357
|
var value_1 = 'COMMON HEADERS';
|
|
1358
1358
|
// Inline function 'kotlin.text.appendLine' call
|
|
1359
1359
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1360
|
-
logHeaders(this_0, request.
|
|
1360
|
+
logHeaders(this_0, request.p3r_1.g2p(), sanitizedHeaders);
|
|
1361
1361
|
// Inline function 'kotlin.text.appendLine' call
|
|
1362
1362
|
var value_2 = 'CONTENT HEADERS';
|
|
1363
1363
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -1368,7 +1368,7 @@
|
|
|
1368
1368
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1369
1369
|
while (_iterator__ex2g4s.u()) {
|
|
1370
1370
|
var element = _iterator__ex2g4s.v();
|
|
1371
|
-
if (element.
|
|
1371
|
+
if (element.l5i_1('Content-Length')) {
|
|
1372
1372
|
tmp$ret$11 = element;
|
|
1373
1373
|
break $l$block;
|
|
1374
1374
|
}
|
|
@@ -1376,14 +1376,14 @@
|
|
|
1376
1376
|
tmp$ret$11 = null;
|
|
1377
1377
|
}
|
|
1378
1378
|
var tmp0_safe_receiver = tmp$ret$11;
|
|
1379
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1379
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k5i_1;
|
|
1380
1380
|
var tmp$ret$13;
|
|
1381
1381
|
$l$block_0: {
|
|
1382
1382
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1383
1383
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1384
1384
|
while (_iterator__ex2g4s_0.u()) {
|
|
1385
1385
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1386
|
-
if (element_0.
|
|
1386
|
+
if (element_0.l5i_1('Content-Type')) {
|
|
1387
1387
|
tmp$ret$13 = element_0;
|
|
1388
1388
|
break $l$block_0;
|
|
1389
1389
|
}
|
|
@@ -1391,179 +1391,179 @@
|
|
|
1391
1391
|
tmp$ret$13 = null;
|
|
1392
1392
|
}
|
|
1393
1393
|
var tmp1_safe_receiver = tmp$ret$13;
|
|
1394
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1395
|
-
var tmp2_safe_receiver = content.
|
|
1394
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k5i_1;
|
|
1395
|
+
var tmp2_safe_receiver = content.p37();
|
|
1396
1396
|
if (tmp2_safe_receiver == null)
|
|
1397
1397
|
null;
|
|
1398
1398
|
else {
|
|
1399
1399
|
// Inline function 'kotlin.let' call
|
|
1400
1400
|
logHeader(this_0, 'Content-Length', contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1401
1401
|
}
|
|
1402
|
-
var tmp3_safe_receiver = content.
|
|
1402
|
+
var tmp3_safe_receiver = content.n37();
|
|
1403
1403
|
if (tmp3_safe_receiver == null)
|
|
1404
1404
|
null;
|
|
1405
1405
|
else {
|
|
1406
1406
|
// Inline function 'kotlin.let' call
|
|
1407
1407
|
logHeader(this_0, 'Content-Type', contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1408
1408
|
}
|
|
1409
|
-
logHeaders(this_0, content.
|
|
1409
|
+
logHeaders(this_0, content.p31().g2p(), sanitizedHeaders);
|
|
1410
1410
|
}
|
|
1411
1411
|
var message = this_0.toString();
|
|
1412
1412
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1413
1413
|
if (charSequenceLength(message) > 0) {
|
|
1414
|
-
callLogger.
|
|
1414
|
+
callLogger.e5a(message);
|
|
1415
1415
|
}
|
|
1416
1416
|
var tmp_0;
|
|
1417
1417
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1418
1418
|
if (charSequenceLength(message) === 0) {
|
|
1419
1419
|
tmp_0 = true;
|
|
1420
1420
|
} else {
|
|
1421
|
-
tmp_0 = !level.
|
|
1421
|
+
tmp_0 = !level.r5b_1;
|
|
1422
1422
|
}
|
|
1423
1423
|
if (tmp_0) {
|
|
1424
|
-
callLogger.
|
|
1424
|
+
callLogger.i5a();
|
|
1425
1425
|
return null;
|
|
1426
1426
|
}
|
|
1427
1427
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1428
1428
|
}
|
|
1429
1429
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1430
|
-
if (!level.
|
|
1430
|
+
if (!level.p5b_1)
|
|
1431
1431
|
return Unit_instance;
|
|
1432
|
-
log.q('RESPONSE ' + request.
|
|
1432
|
+
log.q('RESPONSE ' + request.e3t().toString() + ' failed with exception: ' + cause.toString());
|
|
1433
1433
|
}
|
|
1434
1434
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1435
|
+
this.u5i_1 = $okHttpFormat;
|
|
1436
|
+
this.v5i_1 = $logger;
|
|
1437
|
+
this.w5i_1 = $filters;
|
|
1438
|
+
this.x5i_1 = $sanitizedHeaders;
|
|
1439
|
+
this.y5i_1 = $level;
|
|
1440
|
+
this.z5i_1 = $this_createClientPlugin;
|
|
1441
|
+
this.a5j_1 = $bodyFilter;
|
|
1442
1442
|
CoroutineImpl.call(this, resultContinuation);
|
|
1443
1443
|
}
|
|
1444
|
-
protoOf(Logging$lambda$slambda).
|
|
1445
|
-
var tmp = this.
|
|
1446
|
-
tmp.
|
|
1447
|
-
tmp.
|
|
1448
|
-
return tmp.
|
|
1444
|
+
protoOf(Logging$lambda$slambda).j5j = function ($this$on, request, $completion) {
|
|
1445
|
+
var tmp = this.k5j($this$on, request, $completion);
|
|
1446
|
+
tmp.f9_1 = Unit_instance;
|
|
1447
|
+
tmp.g9_1 = null;
|
|
1448
|
+
return tmp.l9();
|
|
1449
1449
|
};
|
|
1450
|
-
protoOf(Logging$lambda$slambda).
|
|
1450
|
+
protoOf(Logging$lambda$slambda).z9 = function (p1, p2, $completion) {
|
|
1451
1451
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1452
|
-
return this.
|
|
1452
|
+
return this.j5j(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1453
1453
|
};
|
|
1454
|
-
protoOf(Logging$lambda$slambda).
|
|
1455
|
-
var suspendResult = this.
|
|
1454
|
+
protoOf(Logging$lambda$slambda).l9 = function () {
|
|
1455
|
+
var suspendResult = this.f9_1;
|
|
1456
1456
|
$sm: do
|
|
1457
1457
|
try {
|
|
1458
|
-
var tmp = this.
|
|
1458
|
+
var tmp = this.d9_1;
|
|
1459
1459
|
switch (tmp) {
|
|
1460
1460
|
case 0:
|
|
1461
|
-
this.
|
|
1462
|
-
if (!invoke$shouldBeLogged(this.
|
|
1463
|
-
this.
|
|
1461
|
+
this.e9_1 = 16;
|
|
1462
|
+
if (!invoke$shouldBeLogged(this.w5i_1, this.c5j_1)) {
|
|
1463
|
+
this.c5j_1.s3r_1.v2k(get_DisableLogging(), Unit_instance);
|
|
1464
1464
|
return Unit_instance;
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
|
-
if (this.
|
|
1467
|
+
if (this.u5i_1) {
|
|
1468
1468
|
var tmp_0 = this;
|
|
1469
|
-
tmp_0.
|
|
1470
|
-
this.
|
|
1471
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1469
|
+
tmp_0.f5j_1 = ArrayList_init_$Create$();
|
|
1470
|
+
this.d9_1 = 10;
|
|
1471
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.x5i_1, this.y5i_1, this.z5i_1, this.a5j_1, this.c5j_1, this.f5j_1, this);
|
|
1472
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1473
1473
|
return suspendResult;
|
|
1474
1474
|
}
|
|
1475
1475
|
continue $sm;
|
|
1476
1476
|
} else {
|
|
1477
|
-
this.
|
|
1477
|
+
this.d9_1 = 1;
|
|
1478
1478
|
continue $sm;
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
1481
|
case 1:
|
|
1482
|
-
this.
|
|
1483
|
-
this.
|
|
1484
|
-
suspendResult = invoke$logRequest(this.
|
|
1482
|
+
this.e9_1 = 3;
|
|
1483
|
+
this.d9_1 = 2;
|
|
1484
|
+
suspendResult = invoke$logRequest(this.v5i_1, this.y5i_1, this.x5i_1, this.c5j_1, this);
|
|
1485
1485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1486
1486
|
return suspendResult;
|
|
1487
1487
|
}
|
|
1488
1488
|
|
|
1489
1489
|
continue $sm;
|
|
1490
1490
|
case 2:
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1491
|
+
this.i5j_1 = suspendResult;
|
|
1492
|
+
this.e9_1 = 16;
|
|
1493
|
+
this.d9_1 = 4;
|
|
1494
1494
|
continue $sm;
|
|
1495
1495
|
case 3:
|
|
1496
|
-
this.
|
|
1497
|
-
var tmp_1 = this.
|
|
1496
|
+
this.e9_1 = 16;
|
|
1497
|
+
var tmp_1 = this.g9_1;
|
|
1498
1498
|
if (tmp_1 instanceof Error) {
|
|
1499
|
-
var _unused_var__etf5q3 = this.
|
|
1499
|
+
var _unused_var__etf5q3 = this.g9_1;
|
|
1500
1500
|
var tmp_2 = this;
|
|
1501
|
-
tmp_2.
|
|
1502
|
-
this.
|
|
1501
|
+
tmp_2.i5j_1 = null;
|
|
1502
|
+
this.d9_1 = 4;
|
|
1503
1503
|
continue $sm;
|
|
1504
1504
|
} else {
|
|
1505
|
-
throw this.
|
|
1505
|
+
throw this.g9_1;
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
1508
|
case 4:
|
|
1509
|
-
this.
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1512
|
-
this.
|
|
1509
|
+
this.e9_1 = 16;
|
|
1510
|
+
this.h5j_1 = this.i5j_1;
|
|
1511
|
+
this.g5j_1 = Unit_instance;
|
|
1512
|
+
this.d9_1 = 5;
|
|
1513
1513
|
continue $sm;
|
|
1514
1514
|
case 5:
|
|
1515
|
-
this.
|
|
1516
|
-
this.
|
|
1517
|
-
this.
|
|
1518
|
-
var tmp0_elvis_lhs = this.
|
|
1519
|
-
suspendResult = this.
|
|
1515
|
+
this.e9_1 = 8;
|
|
1516
|
+
this.e9_1 = 7;
|
|
1517
|
+
this.d9_1 = 6;
|
|
1518
|
+
var tmp0_elvis_lhs = this.h5j_1;
|
|
1519
|
+
suspendResult = this.b5j_1.i5c(tmp0_elvis_lhs == null ? this.c5j_1.q3r_1 : tmp0_elvis_lhs, this);
|
|
1520
1520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1521
1521
|
return suspendResult;
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
1524
|
continue $sm;
|
|
1525
1525
|
case 6:
|
|
1526
|
-
this.
|
|
1527
|
-
this.
|
|
1528
|
-
this.
|
|
1526
|
+
this.g5j_1 = suspendResult;
|
|
1527
|
+
this.e9_1 = 16;
|
|
1528
|
+
this.d9_1 = 9;
|
|
1529
1529
|
continue $sm;
|
|
1530
1530
|
case 7:
|
|
1531
|
-
this.
|
|
1532
|
-
var tmp_3 = this.
|
|
1531
|
+
this.e9_1 = 8;
|
|
1532
|
+
var tmp_3 = this.g9_1;
|
|
1533
1533
|
if (tmp_3 instanceof Error) {
|
|
1534
|
-
var cause = this.
|
|
1534
|
+
var cause = this.g9_1;
|
|
1535
1535
|
var tmp_4 = this;
|
|
1536
|
-
invoke$logRequestException(this.
|
|
1536
|
+
invoke$logRequestException(this.y5i_1, this.v5i_1, this.c5j_1, cause);
|
|
1537
1537
|
throw cause;
|
|
1538
1538
|
} else {
|
|
1539
|
-
throw this.
|
|
1539
|
+
throw this.g9_1;
|
|
1540
1540
|
}
|
|
1541
1541
|
|
|
1542
1542
|
case 8:
|
|
1543
|
-
this.
|
|
1544
|
-
var t = this.
|
|
1543
|
+
this.e9_1 = 16;
|
|
1544
|
+
var t = this.g9_1;
|
|
1545
1545
|
throw t;
|
|
1546
1546
|
case 9:
|
|
1547
|
-
this.
|
|
1548
|
-
this.
|
|
1547
|
+
this.g5j_1;
|
|
1548
|
+
this.e9_1 = 16;
|
|
1549
1549
|
return Unit_instance;
|
|
1550
1550
|
case 10:
|
|
1551
1551
|
var content = suspendResult;
|
|
1552
|
-
if (this.
|
|
1553
|
-
this.
|
|
1552
|
+
if (this.f5j_1.l1() > 0) {
|
|
1553
|
+
this.v5i_1.k59(joinToString(this.f5j_1, '\n'));
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
|
-
this.
|
|
1556
|
+
this.e9_1 = 14;
|
|
1557
1557
|
if (!(content == null)) {
|
|
1558
|
-
this.
|
|
1559
|
-
suspendResult = this.
|
|
1558
|
+
this.d9_1 = 12;
|
|
1559
|
+
suspendResult = this.b5j_1.i5c(content, this);
|
|
1560
1560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1561
1561
|
return suspendResult;
|
|
1562
1562
|
}
|
|
1563
1563
|
continue $sm;
|
|
1564
1564
|
} else {
|
|
1565
|
-
this.
|
|
1566
|
-
suspendResult = this.
|
|
1565
|
+
this.d9_1 = 11;
|
|
1566
|
+
suspendResult = this.b5j_1.j5c(this);
|
|
1567
1567
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1568
1568
|
return suspendResult;
|
|
1569
1569
|
}
|
|
@@ -1571,401 +1571,401 @@
|
|
|
1571
1571
|
}
|
|
1572
1572
|
|
|
1573
1573
|
case 11:
|
|
1574
|
-
this.
|
|
1575
|
-
this.
|
|
1574
|
+
this.e5j_1 = suspendResult;
|
|
1575
|
+
this.d9_1 = 13;
|
|
1576
1576
|
continue $sm;
|
|
1577
1577
|
case 12:
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1578
|
+
this.e5j_1 = suspendResult;
|
|
1579
|
+
this.d9_1 = 13;
|
|
1580
1580
|
continue $sm;
|
|
1581
1581
|
case 13:
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1582
|
+
this.d5j_1 = this.e5j_1;
|
|
1583
|
+
this.e9_1 = 16;
|
|
1584
|
+
this.d9_1 = 15;
|
|
1585
1585
|
continue $sm;
|
|
1586
1586
|
case 14:
|
|
1587
|
-
this.
|
|
1588
|
-
var tmp_5 = this.
|
|
1587
|
+
this.e9_1 = 16;
|
|
1588
|
+
var tmp_5 = this.g9_1;
|
|
1589
1589
|
if (tmp_5 instanceof Error) {
|
|
1590
|
-
var cause_0 = this.
|
|
1590
|
+
var cause_0 = this.g9_1;
|
|
1591
1591
|
var tmp_6 = this;
|
|
1592
|
-
this.
|
|
1592
|
+
this.v5i_1.k59('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1593
1593
|
throw cause_0;
|
|
1594
1594
|
} else {
|
|
1595
|
-
throw this.
|
|
1595
|
+
throw this.g9_1;
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
1598
|
case 15:
|
|
1599
|
-
this.
|
|
1599
|
+
this.e9_1 = 16;
|
|
1600
1600
|
return Unit_instance;
|
|
1601
1601
|
case 16:
|
|
1602
|
-
throw this.
|
|
1602
|
+
throw this.g9_1;
|
|
1603
1603
|
}
|
|
1604
1604
|
} catch ($p) {
|
|
1605
1605
|
var e = $p;
|
|
1606
|
-
if (this.
|
|
1606
|
+
if (this.e9_1 === 16) {
|
|
1607
1607
|
throw e;
|
|
1608
1608
|
} else {
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1609
|
+
this.d9_1 = this.e9_1;
|
|
1610
|
+
this.g9_1 = e;
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
while (true);
|
|
1614
1614
|
};
|
|
1615
|
-
protoOf(Logging$lambda$slambda).
|
|
1616
|
-
var i = new Logging$lambda$slambda(this.
|
|
1617
|
-
i.
|
|
1618
|
-
i.
|
|
1615
|
+
protoOf(Logging$lambda$slambda).k5j = function ($this$on, request, completion) {
|
|
1616
|
+
var i = new Logging$lambda$slambda(this.u5i_1, this.v5i_1, this.w5i_1, this.x5i_1, this.y5i_1, this.z5i_1, this.a5j_1, completion);
|
|
1617
|
+
i.b5j_1 = $this$on;
|
|
1618
|
+
i.c5j_1 = request;
|
|
1619
1619
|
return i;
|
|
1620
1620
|
};
|
|
1621
1621
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1622
1622
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1623
1623
|
var l = function ($this$on, request, $completion) {
|
|
1624
|
-
return i.
|
|
1624
|
+
return i.j5j($this$on, request, $completion);
|
|
1625
1625
|
};
|
|
1626
1626
|
l.$arity = 2;
|
|
1627
1627
|
return l;
|
|
1628
1628
|
}
|
|
1629
1629
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1630
|
+
this.t5j_1 = $okHttpFormat;
|
|
1631
|
+
this.u5j_1 = $logger;
|
|
1632
|
+
this.v5j_1 = $sanitizedHeaders;
|
|
1633
|
+
this.w5j_1 = $level;
|
|
1634
|
+
this.x5j_1 = $bodyFilter;
|
|
1635
1635
|
CoroutineImpl.call(this, resultContinuation);
|
|
1636
1636
|
}
|
|
1637
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1638
|
-
var tmp = this.
|
|
1639
|
-
tmp.
|
|
1640
|
-
tmp.
|
|
1641
|
-
return tmp.
|
|
1637
|
+
protoOf(Logging$lambda$slambda_1).b5k = function ($this$on, response, $completion) {
|
|
1638
|
+
var tmp = this.c5k($this$on, response, $completion);
|
|
1639
|
+
tmp.f9_1 = Unit_instance;
|
|
1640
|
+
tmp.g9_1 = null;
|
|
1641
|
+
return tmp.l9();
|
|
1642
1642
|
};
|
|
1643
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1643
|
+
protoOf(Logging$lambda$slambda_1).z9 = function (p1, p2, $completion) {
|
|
1644
1644
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1645
|
-
return this.
|
|
1645
|
+
return this.b5k(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1646
1646
|
};
|
|
1647
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1648
|
-
var suspendResult = this.
|
|
1647
|
+
protoOf(Logging$lambda$slambda_1).l9 = function () {
|
|
1648
|
+
var suspendResult = this.f9_1;
|
|
1649
1649
|
$sm: do
|
|
1650
1650
|
try {
|
|
1651
|
-
var tmp = this.
|
|
1651
|
+
var tmp = this.d9_1;
|
|
1652
1652
|
switch (tmp) {
|
|
1653
1653
|
case 0:
|
|
1654
|
-
this.
|
|
1655
|
-
if (this.
|
|
1654
|
+
this.e9_1 = 5;
|
|
1655
|
+
if (this.t5j_1) {
|
|
1656
1656
|
var tmp_0 = this;
|
|
1657
|
-
tmp_0.
|
|
1658
|
-
this.
|
|
1659
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1657
|
+
tmp_0.a5k_1 = ArrayList_init_$Create$();
|
|
1658
|
+
this.d9_1 = 1;
|
|
1659
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.v5j_1, this.w5j_1, this.x5j_1, this.z5j_1, this.a5k_1, this);
|
|
1660
1660
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1661
1661
|
return suspendResult;
|
|
1662
1662
|
}
|
|
1663
1663
|
continue $sm;
|
|
1664
1664
|
} else {
|
|
1665
|
-
this.
|
|
1665
|
+
this.d9_1 = 4;
|
|
1666
1666
|
continue $sm;
|
|
1667
1667
|
}
|
|
1668
1668
|
|
|
1669
1669
|
case 1:
|
|
1670
1670
|
var newResponse = suspendResult;
|
|
1671
|
-
if (this.
|
|
1672
|
-
this.
|
|
1671
|
+
if (this.a5k_1.l1() > 0) {
|
|
1672
|
+
this.u5j_1.k59(joinToString(this.a5k_1, '\n'));
|
|
1673
1673
|
}
|
|
1674
1674
|
|
|
1675
|
-
if (!equals(newResponse, this.
|
|
1676
|
-
this.
|
|
1677
|
-
suspendResult = this.
|
|
1675
|
+
if (!equals(newResponse, this.z5j_1)) {
|
|
1676
|
+
this.d9_1 = 2;
|
|
1677
|
+
suspendResult = this.y5j_1.r4n(newResponse, this);
|
|
1678
1678
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1679
1679
|
return suspendResult;
|
|
1680
1680
|
}
|
|
1681
1681
|
continue $sm;
|
|
1682
1682
|
} else {
|
|
1683
|
-
this.
|
|
1683
|
+
this.d9_1 = 3;
|
|
1684
1684
|
continue $sm;
|
|
1685
1685
|
}
|
|
1686
1686
|
|
|
1687
1687
|
case 2:
|
|
1688
|
-
this.
|
|
1688
|
+
this.d9_1 = 3;
|
|
1689
1689
|
continue $sm;
|
|
1690
1690
|
case 3:
|
|
1691
|
-
this.
|
|
1691
|
+
this.d9_1 = 4;
|
|
1692
1692
|
continue $sm;
|
|
1693
1693
|
case 4:
|
|
1694
1694
|
return Unit_instance;
|
|
1695
1695
|
case 5:
|
|
1696
|
-
throw this.
|
|
1696
|
+
throw this.g9_1;
|
|
1697
1697
|
}
|
|
1698
1698
|
} catch ($p) {
|
|
1699
1699
|
var e = $p;
|
|
1700
|
-
if (this.
|
|
1700
|
+
if (this.e9_1 === 5) {
|
|
1701
1701
|
throw e;
|
|
1702
1702
|
} else {
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1703
|
+
this.d9_1 = this.e9_1;
|
|
1704
|
+
this.g9_1 = e;
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
1707
|
while (true);
|
|
1708
1708
|
};
|
|
1709
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1710
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1711
|
-
i.
|
|
1712
|
-
i.
|
|
1709
|
+
protoOf(Logging$lambda$slambda_1).c5k = function ($this$on, response, completion) {
|
|
1710
|
+
var i = new Logging$lambda$slambda_1(this.t5j_1, this.u5j_1, this.v5j_1, this.w5j_1, this.x5j_1, completion);
|
|
1711
|
+
i.y5j_1 = $this$on;
|
|
1712
|
+
i.z5j_1 = response;
|
|
1713
1713
|
return i;
|
|
1714
1714
|
};
|
|
1715
1715
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1716
1716
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1717
1717
|
var l = function ($this$on, response, $completion) {
|
|
1718
|
-
return i.
|
|
1718
|
+
return i.b5k($this$on, response, $completion);
|
|
1719
1719
|
};
|
|
1720
1720
|
l.$arity = 2;
|
|
1721
1721
|
return l;
|
|
1722
1722
|
}
|
|
1723
1723
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1724
|
-
this.
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1724
|
+
this.l5k_1 = $okHttpFormat;
|
|
1725
|
+
this.m5k_1 = $level;
|
|
1726
|
+
this.n5k_1 = $sanitizedHeaders;
|
|
1727
1727
|
CoroutineImpl.call(this, resultContinuation);
|
|
1728
1728
|
}
|
|
1729
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1730
|
-
var tmp = this.
|
|
1731
|
-
tmp.
|
|
1732
|
-
tmp.
|
|
1733
|
-
return tmp.
|
|
1729
|
+
protoOf(Logging$lambda$slambda_3).w5k = function ($this$on, response, $completion) {
|
|
1730
|
+
var tmp = this.x5k($this$on, response, $completion);
|
|
1731
|
+
tmp.f9_1 = Unit_instance;
|
|
1732
|
+
tmp.g9_1 = null;
|
|
1733
|
+
return tmp.l9();
|
|
1734
1734
|
};
|
|
1735
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1735
|
+
protoOf(Logging$lambda$slambda_3).z9 = function (p1, p2, $completion) {
|
|
1736
1736
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1737
|
-
return this.
|
|
1737
|
+
return this.w5k(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1738
1738
|
};
|
|
1739
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1740
|
-
var suspendResult = this.
|
|
1739
|
+
protoOf(Logging$lambda$slambda_3).l9 = function () {
|
|
1740
|
+
var suspendResult = this.f9_1;
|
|
1741
1741
|
$sm: do
|
|
1742
1742
|
try {
|
|
1743
|
-
var tmp = this.
|
|
1743
|
+
var tmp = this.d9_1;
|
|
1744
1744
|
switch (tmp) {
|
|
1745
1745
|
case 0:
|
|
1746
|
-
this.
|
|
1747
|
-
if (this.
|
|
1746
|
+
this.e9_1 = 14;
|
|
1747
|
+
if (this.l5k_1)
|
|
1748
1748
|
return Unit_instance;
|
|
1749
|
-
if (this.
|
|
1749
|
+
if (this.m5k_1.equals(LogLevel_NONE_getInstance()) || this.p5k_1.c3t().w3s().u2k(get_DisableLogging()))
|
|
1750
1750
|
return Unit_instance;
|
|
1751
|
-
this.
|
|
1752
|
-
this.
|
|
1753
|
-
this.
|
|
1754
|
-
this.
|
|
1751
|
+
this.r5k_1 = this.p5k_1.c3t().w3s().s2k(get_ClientCallLogger());
|
|
1752
|
+
this.t5k_1 = StringBuilder_init_$Create$();
|
|
1753
|
+
this.s5k_1 = false;
|
|
1754
|
+
this.d9_1 = 1;
|
|
1755
1755
|
continue $sm;
|
|
1756
1756
|
case 1:
|
|
1757
|
-
this.
|
|
1758
|
-
this.
|
|
1759
|
-
logResponseHeader(this.
|
|
1760
|
-
this.
|
|
1761
|
-
suspendResult = this.
|
|
1757
|
+
this.e9_1 = 4;
|
|
1758
|
+
this.e9_1 = 3;
|
|
1759
|
+
logResponseHeader(this.t5k_1, this.p5k_1.c3t().n3q(), this.m5k_1, this.n5k_1);
|
|
1760
|
+
this.d9_1 = 2;
|
|
1761
|
+
suspendResult = this.o5k_1.k5d(this);
|
|
1762
1762
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1763
1763
|
return suspendResult;
|
|
1764
1764
|
}
|
|
1765
1765
|
|
|
1766
1766
|
continue $sm;
|
|
1767
1767
|
case 2:
|
|
1768
|
-
this.
|
|
1769
|
-
this.
|
|
1770
|
-
this.
|
|
1768
|
+
this.u5k_1 = suspendResult;
|
|
1769
|
+
this.e9_1 = 14;
|
|
1770
|
+
this.d9_1 = 9;
|
|
1771
1771
|
continue $sm;
|
|
1772
1772
|
case 3:
|
|
1773
|
-
this.
|
|
1774
|
-
var tmp_0 = this.
|
|
1773
|
+
this.e9_1 = 4;
|
|
1774
|
+
var tmp_0 = this.g9_1;
|
|
1775
1775
|
if (tmp_0 instanceof Error) {
|
|
1776
|
-
var cause = this.
|
|
1776
|
+
var cause = this.g9_1;
|
|
1777
1777
|
var tmp_1 = this;
|
|
1778
|
-
invoke$logResponseException(this.
|
|
1779
|
-
this.
|
|
1778
|
+
invoke$logResponseException(this.m5k_1, this.t5k_1, this.p5k_1.c3t().v3s(), cause);
|
|
1779
|
+
this.s5k_1 = true;
|
|
1780
1780
|
throw cause;
|
|
1781
1781
|
} else {
|
|
1782
|
-
throw this.
|
|
1782
|
+
throw this.g9_1;
|
|
1783
1783
|
}
|
|
1784
1784
|
|
|
1785
1785
|
case 4:
|
|
1786
|
-
this.
|
|
1787
|
-
this.
|
|
1788
|
-
this.
|
|
1789
|
-
if (this.
|
|
1790
|
-
this.
|
|
1791
|
-
suspendResult = this.
|
|
1786
|
+
this.e9_1 = 14;
|
|
1787
|
+
this.v5k_1 = this.g9_1;
|
|
1788
|
+
this.r5k_1.f5a(this.t5k_1.toString());
|
|
1789
|
+
if (this.s5k_1 || !this.m5k_1.r5b_1) {
|
|
1790
|
+
this.d9_1 = 7;
|
|
1791
|
+
suspendResult = this.r5k_1.j5a(this);
|
|
1792
1792
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1793
1793
|
return suspendResult;
|
|
1794
1794
|
}
|
|
1795
1795
|
continue $sm;
|
|
1796
1796
|
} else {
|
|
1797
|
-
if (this.
|
|
1798
|
-
this.
|
|
1799
|
-
suspendResult = logResponseBody(this.
|
|
1797
|
+
if (this.m5k_1.r5b_1 && get_isSaved(this.p5k_1)) {
|
|
1798
|
+
this.d9_1 = 5;
|
|
1799
|
+
suspendResult = logResponseBody(this.r5k_1, this.p5k_1, this);
|
|
1800
1800
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1801
1801
|
return suspendResult;
|
|
1802
1802
|
}
|
|
1803
1803
|
continue $sm;
|
|
1804
1804
|
} else {
|
|
1805
|
-
this.
|
|
1805
|
+
this.d9_1 = 8;
|
|
1806
1806
|
continue $sm;
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
1810
|
case 5:
|
|
1811
|
-
this.
|
|
1812
|
-
suspendResult = this.
|
|
1811
|
+
this.d9_1 = 6;
|
|
1812
|
+
suspendResult = this.r5k_1.j5a(this);
|
|
1813
1813
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1814
1814
|
return suspendResult;
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
1817
1817
|
continue $sm;
|
|
1818
1818
|
case 6:
|
|
1819
|
-
this.
|
|
1819
|
+
this.d9_1 = 8;
|
|
1820
1820
|
continue $sm;
|
|
1821
1821
|
case 7:
|
|
1822
|
-
this.
|
|
1822
|
+
this.d9_1 = 8;
|
|
1823
1823
|
continue $sm;
|
|
1824
1824
|
case 8:
|
|
1825
|
-
throw this.
|
|
1825
|
+
throw this.v5k_1;
|
|
1826
1826
|
case 9:
|
|
1827
|
-
this.
|
|
1828
|
-
this.
|
|
1829
|
-
this.
|
|
1830
|
-
if (this.
|
|
1831
|
-
this.
|
|
1832
|
-
suspendResult = this.
|
|
1827
|
+
this.q5k_1 = this.u5k_1;
|
|
1828
|
+
this.e9_1 = 14;
|
|
1829
|
+
this.r5k_1.f5a(this.t5k_1.toString());
|
|
1830
|
+
if (this.s5k_1 || !this.m5k_1.r5b_1) {
|
|
1831
|
+
this.d9_1 = 12;
|
|
1832
|
+
suspendResult = this.r5k_1.j5a(this);
|
|
1833
1833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1834
1834
|
return suspendResult;
|
|
1835
1835
|
}
|
|
1836
1836
|
continue $sm;
|
|
1837
1837
|
} else {
|
|
1838
|
-
if (this.
|
|
1839
|
-
this.
|
|
1840
|
-
suspendResult = logResponseBody(this.
|
|
1838
|
+
if (this.m5k_1.r5b_1 && get_isSaved(this.p5k_1)) {
|
|
1839
|
+
this.d9_1 = 10;
|
|
1840
|
+
suspendResult = logResponseBody(this.r5k_1, this.p5k_1, this);
|
|
1841
1841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1842
1842
|
return suspendResult;
|
|
1843
1843
|
}
|
|
1844
1844
|
continue $sm;
|
|
1845
1845
|
} else {
|
|
1846
|
-
this.
|
|
1846
|
+
this.d9_1 = 13;
|
|
1847
1847
|
continue $sm;
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
1850
|
|
|
1851
1851
|
case 10:
|
|
1852
|
-
this.
|
|
1853
|
-
suspendResult = this.
|
|
1852
|
+
this.d9_1 = 11;
|
|
1853
|
+
suspendResult = this.r5k_1.j5a(this);
|
|
1854
1854
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1855
1855
|
return suspendResult;
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
1858
|
continue $sm;
|
|
1859
1859
|
case 11:
|
|
1860
|
-
this.
|
|
1860
|
+
this.d9_1 = 13;
|
|
1861
1861
|
continue $sm;
|
|
1862
1862
|
case 12:
|
|
1863
|
-
this.
|
|
1863
|
+
this.d9_1 = 13;
|
|
1864
1864
|
continue $sm;
|
|
1865
1865
|
case 13:
|
|
1866
1866
|
return Unit_instance;
|
|
1867
1867
|
case 14:
|
|
1868
|
-
throw this.
|
|
1868
|
+
throw this.g9_1;
|
|
1869
1869
|
}
|
|
1870
1870
|
} catch ($p) {
|
|
1871
1871
|
var e = $p;
|
|
1872
|
-
if (this.
|
|
1872
|
+
if (this.e9_1 === 14) {
|
|
1873
1873
|
throw e;
|
|
1874
1874
|
} else {
|
|
1875
|
-
this.
|
|
1876
|
-
this.
|
|
1875
|
+
this.d9_1 = this.e9_1;
|
|
1876
|
+
this.g9_1 = e;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
1879
|
while (true);
|
|
1880
1880
|
};
|
|
1881
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1882
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1883
|
-
i.
|
|
1884
|
-
i.
|
|
1881
|
+
protoOf(Logging$lambda$slambda_3).x5k = function ($this$on, response, completion) {
|
|
1882
|
+
var i = new Logging$lambda$slambda_3(this.l5k_1, this.m5k_1, this.n5k_1, completion);
|
|
1883
|
+
i.o5k_1 = $this$on;
|
|
1884
|
+
i.p5k_1 = response;
|
|
1885
1885
|
return i;
|
|
1886
1886
|
};
|
|
1887
1887
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1888
1888
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1889
1889
|
var l = function ($this$on, response, $completion) {
|
|
1890
|
-
return i.
|
|
1890
|
+
return i.w5k($this$on, response, $completion);
|
|
1891
1891
|
};
|
|
1892
1892
|
l.$arity = 2;
|
|
1893
1893
|
return l;
|
|
1894
1894
|
}
|
|
1895
1895
|
function Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation) {
|
|
1896
|
-
this.
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1896
|
+
this.g5l_1 = $okHttpFormat;
|
|
1897
|
+
this.h5l_1 = $level;
|
|
1898
|
+
this.i5l_1 = $logger;
|
|
1899
1899
|
CoroutineImpl.call(this, resultContinuation);
|
|
1900
1900
|
}
|
|
1901
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1902
|
-
var tmp = this.
|
|
1903
|
-
tmp.
|
|
1904
|
-
tmp.
|
|
1905
|
-
return tmp.
|
|
1901
|
+
protoOf(Logging$lambda$slambda_5).o5l = function ($this$on, call, $completion) {
|
|
1902
|
+
var tmp = this.p5l($this$on, call, $completion);
|
|
1903
|
+
tmp.f9_1 = Unit_instance;
|
|
1904
|
+
tmp.g9_1 = null;
|
|
1905
|
+
return tmp.l9();
|
|
1906
1906
|
};
|
|
1907
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1907
|
+
protoOf(Logging$lambda$slambda_5).z9 = function (p1, p2, $completion) {
|
|
1908
1908
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1909
|
-
return this.
|
|
1909
|
+
return this.o5l(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1910
1910
|
};
|
|
1911
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1912
|
-
var suspendResult = this.
|
|
1911
|
+
protoOf(Logging$lambda$slambda_5).l9 = function () {
|
|
1912
|
+
var suspendResult = this.f9_1;
|
|
1913
1913
|
$sm: do
|
|
1914
1914
|
try {
|
|
1915
|
-
var tmp = this.
|
|
1915
|
+
var tmp = this.d9_1;
|
|
1916
1916
|
switch (tmp) {
|
|
1917
1917
|
case 0:
|
|
1918
|
-
this.
|
|
1919
|
-
if (this.
|
|
1918
|
+
this.e9_1 = 6;
|
|
1919
|
+
if (this.g5l_1)
|
|
1920
1920
|
return Unit_instance;
|
|
1921
|
-
if (this.
|
|
1921
|
+
if (this.h5l_1.equals(LogLevel_NONE_getInstance()) || this.k5l_1.w3s().u2k(get_DisableLogging())) {
|
|
1922
1922
|
return Unit_instance;
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
1927
|
-
suspendResult = this.
|
|
1925
|
+
this.e9_1 = 2;
|
|
1926
|
+
this.d9_1 = 1;
|
|
1927
|
+
suspendResult = this.j5l_1.y5d(this);
|
|
1928
1928
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1929
1929
|
return suspendResult;
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
1932
|
continue $sm;
|
|
1933
1933
|
case 1:
|
|
1934
|
-
this.
|
|
1935
|
-
this.
|
|
1936
|
-
this.
|
|
1934
|
+
this.l5l_1 = suspendResult;
|
|
1935
|
+
this.e9_1 = 6;
|
|
1936
|
+
this.d9_1 = 5;
|
|
1937
1937
|
continue $sm;
|
|
1938
1938
|
case 2:
|
|
1939
|
-
this.
|
|
1940
|
-
var tmp_0 = this.
|
|
1939
|
+
this.e9_1 = 6;
|
|
1940
|
+
var tmp_0 = this.g9_1;
|
|
1941
1941
|
if (tmp_0 instanceof Error) {
|
|
1942
|
-
this.
|
|
1942
|
+
this.m5l_1 = this.g9_1;
|
|
1943
1943
|
var log = StringBuilder_init_$Create$();
|
|
1944
1944
|
var tmp_1 = this;
|
|
1945
|
-
var tmp0_elvis_lhs = this.
|
|
1945
|
+
var tmp0_elvis_lhs = this.k5l_1.w3s().t2k(get_ClientCallLogger());
|
|
1946
1946
|
var tmp_2;
|
|
1947
1947
|
if (tmp0_elvis_lhs == null) {
|
|
1948
|
-
var this_0 = new HttpClientCallLogger(this.
|
|
1949
|
-
this_0.
|
|
1948
|
+
var this_0 = new HttpClientCallLogger(this.i5l_1);
|
|
1949
|
+
this_0.i5a();
|
|
1950
1950
|
tmp_2 = this_0;
|
|
1951
1951
|
} else {
|
|
1952
1952
|
tmp_2 = tmp0_elvis_lhs;
|
|
1953
1953
|
}
|
|
1954
|
-
tmp_1.
|
|
1955
|
-
invoke$logResponseException(this.
|
|
1956
|
-
this.
|
|
1957
|
-
suspendResult = this.
|
|
1954
|
+
tmp_1.n5l_1 = tmp_2;
|
|
1955
|
+
invoke$logResponseException(this.h5l_1, log, this.k5l_1.v3s(), this.m5l_1);
|
|
1956
|
+
this.d9_1 = 3;
|
|
1957
|
+
suspendResult = this.n5l_1.g5a(log.toString(), this);
|
|
1958
1958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1959
1959
|
return suspendResult;
|
|
1960
1960
|
}
|
|
1961
1961
|
continue $sm;
|
|
1962
1962
|
} else {
|
|
1963
|
-
throw this.
|
|
1963
|
+
throw this.g9_1;
|
|
1964
1964
|
}
|
|
1965
1965
|
|
|
1966
1966
|
case 3:
|
|
1967
|
-
this.
|
|
1968
|
-
suspendResult = this.
|
|
1967
|
+
this.d9_1 = 4;
|
|
1968
|
+
suspendResult = this.n5l_1.j5a(this);
|
|
1969
1969
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1970
1970
|
return suspendResult;
|
|
1971
1971
|
}
|
|
@@ -1973,76 +1973,76 @@
|
|
|
1973
1973
|
continue $sm;
|
|
1974
1974
|
case 4:
|
|
1975
1975
|
var tmp_3 = this;
|
|
1976
|
-
throw this.
|
|
1976
|
+
throw this.m5l_1;
|
|
1977
1977
|
case 5:
|
|
1978
|
-
this.
|
|
1978
|
+
this.e9_1 = 6;
|
|
1979
1979
|
return Unit_instance;
|
|
1980
1980
|
case 6:
|
|
1981
|
-
throw this.
|
|
1981
|
+
throw this.g9_1;
|
|
1982
1982
|
}
|
|
1983
1983
|
} catch ($p) {
|
|
1984
1984
|
var e = $p;
|
|
1985
|
-
if (this.
|
|
1985
|
+
if (this.e9_1 === 6) {
|
|
1986
1986
|
throw e;
|
|
1987
1987
|
} else {
|
|
1988
|
-
this.
|
|
1989
|
-
this.
|
|
1988
|
+
this.d9_1 = this.e9_1;
|
|
1989
|
+
this.g9_1 = e;
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
1992
|
while (true);
|
|
1993
1993
|
};
|
|
1994
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1995
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1996
|
-
i.
|
|
1997
|
-
i.
|
|
1994
|
+
protoOf(Logging$lambda$slambda_5).p5l = function ($this$on, call, completion) {
|
|
1995
|
+
var i = new Logging$lambda$slambda_5(this.g5l_1, this.h5l_1, this.i5l_1, completion);
|
|
1996
|
+
i.j5l_1 = $this$on;
|
|
1997
|
+
i.k5l_1 = call;
|
|
1998
1998
|
return i;
|
|
1999
1999
|
};
|
|
2000
2000
|
function Logging$lambda$slambda_6($okHttpFormat, $level, $logger, resultContinuation) {
|
|
2001
2001
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation);
|
|
2002
2002
|
var l = function ($this$on, call, $completion) {
|
|
2003
|
-
return i.
|
|
2003
|
+
return i.o5l($this$on, call, $completion);
|
|
2004
2004
|
};
|
|
2005
2005
|
l.$arity = 2;
|
|
2006
2006
|
return l;
|
|
2007
2007
|
}
|
|
2008
2008
|
function Logging$lambda$lambda$lambda(it) {
|
|
2009
2009
|
_init_properties_Logging_kt__66pui5();
|
|
2010
|
-
return !get_isSaved(it.
|
|
2010
|
+
return !get_isSaved(it.n3q());
|
|
2011
2011
|
}
|
|
2012
2012
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
2013
|
-
this.
|
|
2013
|
+
this.y5l_1 = $level;
|
|
2014
2014
|
CoroutineImpl.call(this, resultContinuation);
|
|
2015
2015
|
}
|
|
2016
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2017
|
-
var tmp = this.
|
|
2018
|
-
tmp.
|
|
2019
|
-
tmp.
|
|
2020
|
-
return tmp.
|
|
2016
|
+
protoOf(Logging$lambda$lambda$slambda).a42 = function (response, $completion) {
|
|
2017
|
+
var tmp = this.n40(response, $completion);
|
|
2018
|
+
tmp.f9_1 = Unit_instance;
|
|
2019
|
+
tmp.g9_1 = null;
|
|
2020
|
+
return tmp.l9();
|
|
2021
2021
|
};
|
|
2022
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2023
|
-
return this.
|
|
2022
|
+
protoOf(Logging$lambda$lambda$slambda).y9 = function (p1, $completion) {
|
|
2023
|
+
return this.a42(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
2024
2024
|
};
|
|
2025
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2026
|
-
var suspendResult = this.
|
|
2025
|
+
protoOf(Logging$lambda$lambda$slambda).l9 = function () {
|
|
2026
|
+
var suspendResult = this.f9_1;
|
|
2027
2027
|
$sm: do
|
|
2028
2028
|
try {
|
|
2029
|
-
var tmp = this.
|
|
2029
|
+
var tmp = this.d9_1;
|
|
2030
2030
|
switch (tmp) {
|
|
2031
2031
|
case 0:
|
|
2032
|
-
this.
|
|
2033
|
-
if (this.
|
|
2032
|
+
this.e9_1 = 3;
|
|
2033
|
+
if (this.y5l_1.equals(LogLevel_NONE_getInstance()) || this.z5l_1.c3t().w3s().u2k(get_DisableLogging()))
|
|
2034
2034
|
return Unit_instance;
|
|
2035
|
-
this.
|
|
2036
|
-
this.
|
|
2037
|
-
suspendResult = logResponseBody(this.
|
|
2035
|
+
this.a5m_1 = this.z5l_1.c3t().w3s().s2k(get_ClientCallLogger());
|
|
2036
|
+
this.d9_1 = 1;
|
|
2037
|
+
suspendResult = logResponseBody(this.a5m_1, this.z5l_1, this);
|
|
2038
2038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2039
2039
|
return suspendResult;
|
|
2040
2040
|
}
|
|
2041
2041
|
|
|
2042
2042
|
continue $sm;
|
|
2043
2043
|
case 1:
|
|
2044
|
-
this.
|
|
2045
|
-
suspendResult = this.
|
|
2044
|
+
this.d9_1 = 2;
|
|
2045
|
+
suspendResult = this.a5m_1.j5a(this);
|
|
2046
2046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2047
2047
|
return suspendResult;
|
|
2048
2048
|
}
|
|
@@ -2051,60 +2051,60 @@
|
|
|
2051
2051
|
case 2:
|
|
2052
2052
|
return Unit_instance;
|
|
2053
2053
|
case 3:
|
|
2054
|
-
throw this.
|
|
2054
|
+
throw this.g9_1;
|
|
2055
2055
|
}
|
|
2056
2056
|
} catch ($p) {
|
|
2057
2057
|
var e = $p;
|
|
2058
|
-
if (this.
|
|
2058
|
+
if (this.e9_1 === 3) {
|
|
2059
2059
|
throw e;
|
|
2060
2060
|
} else {
|
|
2061
|
-
this.
|
|
2062
|
-
this.
|
|
2061
|
+
this.d9_1 = this.e9_1;
|
|
2062
|
+
this.g9_1 = e;
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
2065
|
while (true);
|
|
2066
2066
|
};
|
|
2067
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2068
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
2069
|
-
i.
|
|
2067
|
+
protoOf(Logging$lambda$lambda$slambda).n40 = function (response, completion) {
|
|
2068
|
+
var i = new Logging$lambda$lambda$slambda(this.y5l_1, completion);
|
|
2069
|
+
i.z5l_1 = response;
|
|
2070
2070
|
return i;
|
|
2071
2071
|
};
|
|
2072
2072
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
2073
2073
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
2074
2074
|
var l = function (response, $completion) {
|
|
2075
|
-
return i.
|
|
2075
|
+
return i.a42(response, $completion);
|
|
2076
2076
|
};
|
|
2077
2077
|
l.$arity = 1;
|
|
2078
2078
|
return l;
|
|
2079
2079
|
}
|
|
2080
2080
|
function Logging$lambda$lambda($level) {
|
|
2081
2081
|
return function ($this$prepare) {
|
|
2082
|
-
$this$prepare.
|
|
2083
|
-
$this$prepare.
|
|
2082
|
+
$this$prepare.p4n(Logging$lambda$lambda$lambda);
|
|
2083
|
+
$this$prepare.o4n(Logging$lambda$lambda$slambda_0($level, null));
|
|
2084
2084
|
return Unit_instance;
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
2087
|
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2088
2088
|
CoroutineImpl.call(this, resultContinuation);
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2092
|
-
this.
|
|
2093
|
-
this.
|
|
2094
|
-
this.
|
|
2095
|
-
this.
|
|
2096
|
-
this.
|
|
2097
|
-
}
|
|
2098
|
-
protoOf($invoke$logRequestBodyCOROUTINE$).
|
|
2099
|
-
var suspendResult = this.
|
|
2089
|
+
this.u5f_1 = bodyFilter;
|
|
2090
|
+
this.v5f_1 = url;
|
|
2091
|
+
this.w5f_1 = content;
|
|
2092
|
+
this.x5f_1 = contentLength;
|
|
2093
|
+
this.y5f_1 = headers;
|
|
2094
|
+
this.z5f_1 = method;
|
|
2095
|
+
this.a5g_1 = logLines;
|
|
2096
|
+
this.b5g_1 = body;
|
|
2097
|
+
}
|
|
2098
|
+
protoOf($invoke$logRequestBodyCOROUTINE$).l9 = function () {
|
|
2099
|
+
var suspendResult = this.f9_1;
|
|
2100
2100
|
$sm: do
|
|
2101
2101
|
try {
|
|
2102
|
-
var tmp = this.
|
|
2102
|
+
var tmp = this.d9_1;
|
|
2103
2103
|
switch (tmp) {
|
|
2104
2104
|
case 0:
|
|
2105
|
-
this.
|
|
2106
|
-
this.
|
|
2107
|
-
suspendResult = this.
|
|
2105
|
+
this.e9_1 = 2;
|
|
2106
|
+
this.d9_1 = 1;
|
|
2107
|
+
suspendResult = this.u5f_1.k5a(this.v5f_1, this.x5f_1, this.w5f_1.n37(), this.y5f_1, this.b5g_1, this);
|
|
2108
2108
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2109
2109
|
return suspendResult;
|
|
2110
2110
|
}
|
|
@@ -2113,29 +2113,29 @@
|
|
|
2113
2113
|
case 1:
|
|
2114
2114
|
var filteredBody = suspendResult;
|
|
2115
2115
|
if (filteredBody instanceof Empty) {
|
|
2116
|
-
this.
|
|
2116
|
+
this.a5g_1.j1('--> END ' + this.z5f_1.a32_1 + ' (0-byte body)');
|
|
2117
2117
|
} else {
|
|
2118
2118
|
if (filteredBody instanceof Skip) {
|
|
2119
2119
|
var this_0 = StringBuilder_init_$Create$();
|
|
2120
|
-
this_0.q('--> END ' + this.
|
|
2121
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2120
|
+
this_0.q('--> END ' + this.z5f_1.a32_1 + ' (');
|
|
2121
|
+
var tmp0_safe_receiver = filteredBody.o5a_1;
|
|
2122
2122
|
if (tmp0_safe_receiver == null)
|
|
2123
2123
|
null;
|
|
2124
2124
|
else {
|
|
2125
2125
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2126
2126
|
}
|
|
2127
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2127
|
+
var tmp1_safe_receiver = filteredBody.p5a_1;
|
|
2128
2128
|
if (tmp1_safe_receiver == null)
|
|
2129
2129
|
null;
|
|
2130
2130
|
else {
|
|
2131
2131
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2132
2132
|
}
|
|
2133
2133
|
this_0.q('body omitted)');
|
|
2134
|
-
this.
|
|
2134
|
+
this.a5g_1.j1(this_0.toString());
|
|
2135
2135
|
} else {
|
|
2136
2136
|
if (isInterface(filteredBody, Content)) {
|
|
2137
|
-
this.
|
|
2138
|
-
this.
|
|
2137
|
+
this.a5g_1.j1(filteredBody.q5a());
|
|
2138
|
+
this.a5g_1.j1('--> END ' + this.z5f_1.a32_1 + ' (' + toString_0(filteredBody.n5a()) + '-byte body)');
|
|
2139
2139
|
} else {
|
|
2140
2140
|
noWhenBranchMatchedException();
|
|
2141
2141
|
}
|
|
@@ -2144,42 +2144,42 @@
|
|
|
2144
2144
|
|
|
2145
2145
|
return Unit_instance;
|
|
2146
2146
|
case 2:
|
|
2147
|
-
throw this.
|
|
2147
|
+
throw this.g9_1;
|
|
2148
2148
|
}
|
|
2149
2149
|
} catch ($p) {
|
|
2150
2150
|
var e = $p;
|
|
2151
|
-
if (this.
|
|
2151
|
+
if (this.e9_1 === 2) {
|
|
2152
2152
|
throw e;
|
|
2153
2153
|
} else {
|
|
2154
|
-
this.
|
|
2155
|
-
this.
|
|
2154
|
+
this.d9_1 = this.e9_1;
|
|
2155
|
+
this.g9_1 = e;
|
|
2156
2156
|
}
|
|
2157
2157
|
}
|
|
2158
2158
|
while (true);
|
|
2159
2159
|
};
|
|
2160
2160
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2161
2161
|
CoroutineImpl.call(this, resultContinuation);
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2170
|
-
}
|
|
2171
|
-
protoOf($invoke$logOutgoingContentCOROUTINE$).
|
|
2172
|
-
var suspendResult = this.
|
|
2162
|
+
this.k5g_1 = $this_createClientPlugin;
|
|
2163
|
+
this.l5g_1 = bodyFilter;
|
|
2164
|
+
this.m5g_1 = url;
|
|
2165
|
+
this.n5g_1 = content;
|
|
2166
|
+
this.o5g_1 = method;
|
|
2167
|
+
this.p5g_1 = headers;
|
|
2168
|
+
this.q5g_1 = logLines;
|
|
2169
|
+
this.r5g_1 = process;
|
|
2170
|
+
}
|
|
2171
|
+
protoOf($invoke$logOutgoingContentCOROUTINE$).l9 = function () {
|
|
2172
|
+
var suspendResult = this.f9_1;
|
|
2173
2173
|
$sm: do
|
|
2174
2174
|
try {
|
|
2175
|
-
var tmp = this.
|
|
2175
|
+
var tmp = this.d9_1;
|
|
2176
2176
|
switch (tmp) {
|
|
2177
2177
|
case 0:
|
|
2178
|
-
this.
|
|
2179
|
-
var tmp0_subject = this.
|
|
2178
|
+
this.e9_1 = 7;
|
|
2179
|
+
var tmp0_subject = this.n5g_1;
|
|
2180
2180
|
if (tmp0_subject instanceof ObservableContent) {
|
|
2181
|
-
this.
|
|
2182
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2181
|
+
this.d9_1 = 5;
|
|
2182
|
+
suspendResult = invoke$logOutgoingContent(this.k5g_1, this.l5g_1, this.m5g_1, this.n5g_1.n3v_1, this.o5g_1, this.p5g_1, this.q5g_1, this.r5g_1, this);
|
|
2183
2183
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2184
2184
|
return suspendResult;
|
|
2185
2185
|
}
|
|
@@ -2187,49 +2187,49 @@
|
|
|
2187
2187
|
} else {
|
|
2188
2188
|
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2189
2189
|
var tmp_0 = this;
|
|
2190
|
-
var _iterator__ex2g4s = this.
|
|
2190
|
+
var _iterator__ex2g4s = this.n5g_1.c5m_1.t();
|
|
2191
2191
|
while (_iterator__ex2g4s.u()) {
|
|
2192
2192
|
var part = _iterator__ex2g4s.v();
|
|
2193
|
-
this.
|
|
2194
|
-
var _iterator__ex2g4s_0 = part.
|
|
2193
|
+
this.q5g_1.j1('--' + this.n5g_1.d5m_1);
|
|
2194
|
+
var _iterator__ex2g4s_0 = part.e5m_1.g2p().t();
|
|
2195
2195
|
while (_iterator__ex2g4s_0.u()) {
|
|
2196
2196
|
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2197
2197
|
var key = _destruct__k2r9zo.r1();
|
|
2198
2198
|
var values = _destruct__k2r9zo.s1();
|
|
2199
|
-
this.
|
|
2199
|
+
this.q5g_1.j1(key + ': ' + joinToString(values, '; '));
|
|
2200
2200
|
}
|
|
2201
2201
|
if (part instanceof FormItem) {
|
|
2202
|
-
this.
|
|
2203
|
-
this.
|
|
2204
|
-
this.
|
|
2202
|
+
this.q5g_1.j1('Content-Length: ' + part.g5m_1.length);
|
|
2203
|
+
this.q5g_1.j1('');
|
|
2204
|
+
this.q5g_1.j1(part.g5m_1);
|
|
2205
2205
|
} else {
|
|
2206
|
-
this.
|
|
2207
|
-
var contentLength = part.
|
|
2206
|
+
this.q5g_1.j1('');
|
|
2207
|
+
var contentLength = part.e5m_1.p2o('Content-Length');
|
|
2208
2208
|
if (!(contentLength == null)) {
|
|
2209
|
-
this.
|
|
2209
|
+
this.q5g_1.j1('binary ' + contentLength + '-byte body omitted');
|
|
2210
2210
|
} else {
|
|
2211
|
-
this.
|
|
2211
|
+
this.q5g_1.j1('binary body omitted');
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
this.
|
|
2216
|
-
this.
|
|
2217
|
-
tmp_0.
|
|
2218
|
-
this.
|
|
2215
|
+
this.q5g_1.j1('--' + this.n5g_1.d5m_1 + '--');
|
|
2216
|
+
this.q5g_1.j1('--> END ' + this.o5g_1.a32_1);
|
|
2217
|
+
tmp_0.s5g_1 = null;
|
|
2218
|
+
this.d9_1 = 6;
|
|
2219
2219
|
continue $sm;
|
|
2220
2220
|
} else {
|
|
2221
2221
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2222
|
-
var bytes = this.
|
|
2223
|
-
this.
|
|
2224
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2222
|
+
var bytes = this.n5g_1.q37();
|
|
2223
|
+
this.d9_1 = 4;
|
|
2224
|
+
suspendResult = invoke$logRequestBody(this.l5g_1, this.m5g_1, this.n5g_1, fromInt(bytes.length), this.p5g_1, this.o5g_1, this.q5g_1, ByteReadChannel(bytes), this);
|
|
2225
2225
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2226
2226
|
return suspendResult;
|
|
2227
2227
|
}
|
|
2228
2228
|
continue $sm;
|
|
2229
2229
|
} else {
|
|
2230
2230
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2231
|
-
this.
|
|
2232
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2231
|
+
this.d9_1 = 3;
|
|
2232
|
+
suspendResult = invoke$logOutgoingContent(this.k5g_1, this.l5g_1, this.m5g_1, this.n5g_1.z37(), this.o5g_1, this.p5g_1, this.q5g_1, this.r5g_1, this);
|
|
2233
2233
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2234
2234
|
return suspendResult;
|
|
2235
2235
|
}
|
|
@@ -2237,24 +2237,24 @@
|
|
|
2237
2237
|
} else {
|
|
2238
2238
|
if (tmp0_subject instanceof NoContent) {
|
|
2239
2239
|
var tmp_1 = this;
|
|
2240
|
-
this.
|
|
2241
|
-
tmp_1.
|
|
2242
|
-
this.
|
|
2240
|
+
this.q5g_1.j1('--> END ' + this.o5g_1.a32_1);
|
|
2241
|
+
tmp_1.s5g_1 = null;
|
|
2242
|
+
this.d9_1 = 6;
|
|
2243
2243
|
continue $sm;
|
|
2244
2244
|
} else {
|
|
2245
2245
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2246
2246
|
var tmp_2 = this;
|
|
2247
|
-
this.
|
|
2248
|
-
tmp_2.
|
|
2249
|
-
this.
|
|
2247
|
+
this.q5g_1.j1('--> END ' + this.o5g_1.a32_1);
|
|
2248
|
+
tmp_2.s5g_1 = null;
|
|
2249
|
+
this.d9_1 = 6;
|
|
2250
2250
|
continue $sm;
|
|
2251
2251
|
} else {
|
|
2252
2252
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2253
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2254
|
-
this.
|
|
2255
|
-
var newChannel = _destruct__k2r9zo_0.
|
|
2256
|
-
this.
|
|
2257
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2253
|
+
var _destruct__k2r9zo_0 = split(this.n5g_1.t37(), this.k5g_1.m3z_1);
|
|
2254
|
+
this.t5g_1 = _destruct__k2r9zo_0.fg();
|
|
2255
|
+
var newChannel = _destruct__k2r9zo_0.gg();
|
|
2256
|
+
this.d9_1 = 2;
|
|
2257
|
+
suspendResult = invoke$logRequestBody(this.l5g_1, this.m5g_1, this.n5g_1, this.n5g_1.p37(), this.p5g_1, this.o5g_1, this.q5g_1, newChannel, this);
|
|
2258
2258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2259
2259
|
return suspendResult;
|
|
2260
2260
|
}
|
|
@@ -2262,12 +2262,12 @@
|
|
|
2262
2262
|
} else {
|
|
2263
2263
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2264
2264
|
var channel = new ByteChannel();
|
|
2265
|
-
launch(this.
|
|
2266
|
-
var _destruct__k2r9zo_1 = split(channel, this.
|
|
2267
|
-
this.
|
|
2268
|
-
var newChannel_0 = _destruct__k2r9zo_1.
|
|
2269
|
-
this.
|
|
2270
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2265
|
+
launch(this.k5g_1.m3z_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.n5g_1, channel, null));
|
|
2266
|
+
var _destruct__k2r9zo_1 = split(channel, this.k5g_1.m3z_1);
|
|
2267
|
+
this.u5g_1 = _destruct__k2r9zo_1.fg();
|
|
2268
|
+
var newChannel_0 = _destruct__k2r9zo_1.gg();
|
|
2269
|
+
this.d9_1 = 1;
|
|
2270
|
+
suspendResult = invoke$logRequestBody(this.l5g_1, this.m5g_1, this.n5g_1, this.n5g_1.p37(), this.p5g_1, this.o5g_1, this.q5g_1, newChannel_0, this);
|
|
2271
2271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2272
2272
|
return suspendResult;
|
|
2273
2273
|
}
|
|
@@ -2286,74 +2286,74 @@
|
|
|
2286
2286
|
|
|
2287
2287
|
break;
|
|
2288
2288
|
case 1:
|
|
2289
|
-
this.
|
|
2290
|
-
this.
|
|
2289
|
+
this.s5g_1 = new LoggedContent(this.n5g_1, this.u5g_1);
|
|
2290
|
+
this.d9_1 = 6;
|
|
2291
2291
|
continue $sm;
|
|
2292
2292
|
case 2:
|
|
2293
|
-
this.
|
|
2294
|
-
this.
|
|
2293
|
+
this.s5g_1 = new LoggedContent(this.n5g_1, this.t5g_1);
|
|
2294
|
+
this.d9_1 = 6;
|
|
2295
2295
|
continue $sm;
|
|
2296
2296
|
case 3:
|
|
2297
|
-
this.
|
|
2298
|
-
this.
|
|
2297
|
+
this.s5g_1 = suspendResult;
|
|
2298
|
+
this.d9_1 = 6;
|
|
2299
2299
|
continue $sm;
|
|
2300
2300
|
case 4:
|
|
2301
|
-
this.
|
|
2302
|
-
this.
|
|
2301
|
+
this.s5g_1 = null;
|
|
2302
|
+
this.d9_1 = 6;
|
|
2303
2303
|
continue $sm;
|
|
2304
2304
|
case 5:
|
|
2305
|
-
this.
|
|
2306
|
-
this.
|
|
2305
|
+
this.s5g_1 = suspendResult;
|
|
2306
|
+
this.d9_1 = 6;
|
|
2307
2307
|
continue $sm;
|
|
2308
2308
|
case 6:
|
|
2309
|
-
return this.
|
|
2309
|
+
return this.s5g_1;
|
|
2310
2310
|
case 7:
|
|
2311
|
-
throw this.
|
|
2311
|
+
throw this.g9_1;
|
|
2312
2312
|
}
|
|
2313
2313
|
} catch ($p) {
|
|
2314
2314
|
var e = $p;
|
|
2315
|
-
if (this.
|
|
2315
|
+
if (this.e9_1 === 7) {
|
|
2316
2316
|
throw e;
|
|
2317
2317
|
} else {
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2318
|
+
this.d9_1 = this.e9_1;
|
|
2319
|
+
this.g9_1 = e;
|
|
2320
2320
|
}
|
|
2321
2321
|
}
|
|
2322
2322
|
while (true);
|
|
2323
2323
|
};
|
|
2324
2324
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2325
2325
|
CoroutineImpl.call(this, resultContinuation);
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2329
|
-
this.
|
|
2330
|
-
this.
|
|
2331
|
-
this.
|
|
2332
|
-
}
|
|
2333
|
-
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).
|
|
2334
|
-
var suspendResult = this.
|
|
2326
|
+
this.d5h_1 = sanitizedHeaders;
|
|
2327
|
+
this.e5h_1 = level;
|
|
2328
|
+
this.f5h_1 = $this_createClientPlugin;
|
|
2329
|
+
this.g5h_1 = bodyFilter;
|
|
2330
|
+
this.h5h_1 = request;
|
|
2331
|
+
this.i5h_1 = logLines;
|
|
2332
|
+
}
|
|
2333
|
+
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).l9 = function () {
|
|
2334
|
+
var suspendResult = this.f9_1;
|
|
2335
2335
|
$sm: do
|
|
2336
2336
|
try {
|
|
2337
|
-
var tmp = this.
|
|
2337
|
+
var tmp = this.d9_1;
|
|
2338
2338
|
switch (tmp) {
|
|
2339
2339
|
case 0:
|
|
2340
|
-
this.
|
|
2341
|
-
if (invoke$isNone(this.
|
|
2340
|
+
this.e9_1 = 4;
|
|
2341
|
+
if (invoke$isNone(this.e5h_1))
|
|
2342
2342
|
return null;
|
|
2343
|
-
var uri = takeFrom(new URLBuilder(), this.
|
|
2344
|
-
var body = this.
|
|
2343
|
+
var uri = takeFrom(new URLBuilder(), this.h5h_1.n3r_1).i2x().toString();
|
|
2344
|
+
var body = this.h5h_1.q3r_1;
|
|
2345
2345
|
var this_0 = new HeadersBuilder();
|
|
2346
2346
|
var tmp_0;
|
|
2347
2347
|
var tmp_1;
|
|
2348
2348
|
var tmp_2;
|
|
2349
2349
|
if (body instanceof OutgoingContent) {
|
|
2350
|
-
tmp_2 = !this.
|
|
2350
|
+
tmp_2 = !this.h5h_1.o3r_1.equals(Companion_getInstance().q31_1);
|
|
2351
2351
|
} else {
|
|
2352
2352
|
tmp_2 = false;
|
|
2353
2353
|
}
|
|
2354
2354
|
|
|
2355
2355
|
if (tmp_2) {
|
|
2356
|
-
tmp_1 = !this.
|
|
2356
|
+
tmp_1 = !this.h5h_1.o3r_1.equals(Companion_getInstance().v31_1);
|
|
2357
2357
|
} else {
|
|
2358
2358
|
tmp_1 = false;
|
|
2359
2359
|
}
|
|
@@ -2365,13 +2365,13 @@
|
|
|
2365
2365
|
}
|
|
2366
2366
|
|
|
2367
2367
|
if (tmp_0) {
|
|
2368
|
-
var tmp0_safe_receiver = body.
|
|
2368
|
+
var tmp0_safe_receiver = body.n37();
|
|
2369
2369
|
if (tmp0_safe_receiver == null)
|
|
2370
2370
|
null;
|
|
2371
2371
|
else {
|
|
2372
2372
|
appendIfNameAbsent(this_0, 'Content-Type', tmp0_safe_receiver.toString());
|
|
2373
2373
|
}
|
|
2374
|
-
var tmp1_safe_receiver = body.
|
|
2374
|
+
var tmp1_safe_receiver = body.p37();
|
|
2375
2375
|
if (tmp1_safe_receiver == null)
|
|
2376
2376
|
null;
|
|
2377
2377
|
else {
|
|
@@ -2379,16 +2379,16 @@
|
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
|
|
2382
|
-
appendAll(this_0, this.
|
|
2383
|
-
var headers = this_0.
|
|
2384
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2382
|
+
appendAll(this_0, this.h5h_1.p3r_1);
|
|
2383
|
+
var headers = this_0.i2x();
|
|
2384
|
+
var tmp0_safe_receiver_0 = headers.p2o('Content-Length');
|
|
2385
2385
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2386
2386
|
var tmp_3;
|
|
2387
|
-
if (this.
|
|
2388
|
-
tmp_3 = '--> ' + this.
|
|
2387
|
+
if (this.h5h_1.o3r_1.equals(Companion_getInstance().q31_1) || this.h5h_1.o3r_1.equals(Companion_getInstance().v31_1) || ((invoke$isHeaders(this.e5h_1) || invoke$isBody(this.e5h_1)) && !(contentLength == null)) || (invoke$isHeaders(this.e5h_1) && contentLength == null) || headers.b2o('Content-Encoding')) {
|
|
2388
|
+
tmp_3 = '--> ' + this.h5h_1.o3r_1.a32_1 + ' ' + uri;
|
|
2389
2389
|
} else {
|
|
2390
|
-
if (invoke$isInfo(this.
|
|
2391
|
-
tmp_3 = '--> ' + this.
|
|
2390
|
+
if (invoke$isInfo(this.e5h_1) && !(contentLength == null)) {
|
|
2391
|
+
tmp_3 = '--> ' + this.h5h_1.o3r_1.a32_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2392
2392
|
} else {
|
|
2393
2393
|
var tmp_4;
|
|
2394
2394
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2397,32 +2397,32 @@
|
|
|
2397
2397
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2398
2398
|
}
|
|
2399
2399
|
if (tmp_4) {
|
|
2400
|
-
tmp_3 = '--> ' + this.
|
|
2400
|
+
tmp_3 = '--> ' + this.h5h_1.o3r_1.a32_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2401
2401
|
} else {
|
|
2402
|
-
var size = computeRequestBodySize(this.
|
|
2403
|
-
tmp_3 = '--> ' + this.
|
|
2402
|
+
var size = computeRequestBodySize(this.h5h_1.q3r_1);
|
|
2403
|
+
tmp_3 = '--> ' + this.h5h_1.o3r_1.a32_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
2408
|
var startLine = tmp_3;
|
|
2409
|
-
this.
|
|
2410
|
-
if (!invoke$isHeaders(this.
|
|
2409
|
+
this.i5h_1.j1(startLine);
|
|
2410
|
+
if (!invoke$isHeaders(this.e5h_1) && !invoke$isBody(this.e5h_1)) {
|
|
2411
2411
|
return null;
|
|
2412
2412
|
}
|
|
2413
2413
|
|
|
2414
|
-
var _iterator__ex2g4s = headers.
|
|
2414
|
+
var _iterator__ex2g4s = headers.g2p().t();
|
|
2415
2415
|
while (_iterator__ex2g4s.u()) {
|
|
2416
2416
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2417
2417
|
var name = _destruct__k2r9zo.r1();
|
|
2418
2418
|
var values = _destruct__k2r9zo.s1();
|
|
2419
|
-
var tmp0 = this.
|
|
2419
|
+
var tmp0 = this.d5h_1;
|
|
2420
2420
|
var tmp$ret$0 = Unit_instance;
|
|
2421
2421
|
l$ret$1: do {
|
|
2422
2422
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2423
2423
|
while (_iterator__ex2g4s_0.u()) {
|
|
2424
2424
|
var element = _iterator__ex2g4s_0.v();
|
|
2425
|
-
if (element.
|
|
2425
|
+
if (element.l5i_1(name)) {
|
|
2426
2426
|
tmp$ret$0 = element;
|
|
2427
2427
|
break l$ret$1;
|
|
2428
2428
|
}
|
|
@@ -2431,35 +2431,35 @@
|
|
|
2431
2431
|
}
|
|
2432
2432
|
while (false);
|
|
2433
2433
|
if (tmp$ret$0 == null) {
|
|
2434
|
-
this.
|
|
2434
|
+
this.i5h_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2435
2435
|
} else {
|
|
2436
|
-
this.
|
|
2436
|
+
this.i5h_1.j1(name + ': \u2588\u2588');
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
2439
2439
|
|
|
2440
|
-
if (!invoke$isBody(this.
|
|
2441
|
-
this.
|
|
2440
|
+
if (!invoke$isBody(this.e5h_1) || this.h5h_1.o3r_1.equals(Companion_getInstance().q31_1) || this.h5h_1.o3r_1.equals(Companion_getInstance().v31_1)) {
|
|
2441
|
+
this.i5h_1.j1('--> END ' + this.h5h_1.o3r_1.a32_1);
|
|
2442
2442
|
return null;
|
|
2443
2443
|
}
|
|
2444
2444
|
|
|
2445
|
-
this.
|
|
2445
|
+
this.i5h_1.j1('');
|
|
2446
2446
|
if (!(body instanceof OutgoingContent)) {
|
|
2447
|
-
this.
|
|
2447
|
+
this.i5h_1.j1('--> END ' + this.h5h_1.o3r_1.a32_1);
|
|
2448
2448
|
return null;
|
|
2449
2449
|
}
|
|
2450
2450
|
|
|
2451
|
-
if (this.
|
|
2452
|
-
this.
|
|
2453
|
-
var tmp_5 = this.
|
|
2454
|
-
var tmp_6 = this.
|
|
2455
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2451
|
+
if (this.h5h_1.p3r_1.p2o('Content-Encoding') === 'gzip') {
|
|
2452
|
+
this.d9_1 = 2;
|
|
2453
|
+
var tmp_5 = this.h5h_1.n3r_1.i2x();
|
|
2454
|
+
var tmp_6 = this.h5h_1.o3r_1;
|
|
2455
|
+
suspendResult = invoke$logOutgoingContent(this.f5h_1, this.g5h_1, tmp_5, body, tmp_6, headers, this.i5h_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2456
2456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2457
2457
|
return suspendResult;
|
|
2458
2458
|
}
|
|
2459
2459
|
continue $sm;
|
|
2460
2460
|
} else {
|
|
2461
|
-
this.
|
|
2462
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2461
|
+
this.d9_1 = 1;
|
|
2462
|
+
suspendResult = invoke$logOutgoingContent(this.f5h_1, this.g5h_1, this.h5h_1.n3r_1.i2x(), body, this.h5h_1.o3r_1, headers, this.i5h_1, VOID, this);
|
|
2463
2463
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2464
2464
|
return suspendResult;
|
|
2465
2465
|
}
|
|
@@ -2467,48 +2467,48 @@
|
|
|
2467
2467
|
}
|
|
2468
2468
|
|
|
2469
2469
|
case 1:
|
|
2470
|
-
this.
|
|
2471
|
-
this.
|
|
2470
|
+
this.j5h_1 = suspendResult;
|
|
2471
|
+
this.d9_1 = 3;
|
|
2472
2472
|
continue $sm;
|
|
2473
2473
|
case 2:
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2474
|
+
this.j5h_1 = suspendResult;
|
|
2475
|
+
this.d9_1 = 3;
|
|
2476
2476
|
continue $sm;
|
|
2477
2477
|
case 3:
|
|
2478
|
-
var newContent = this.
|
|
2478
|
+
var newContent = this.j5h_1;
|
|
2479
2479
|
return newContent;
|
|
2480
2480
|
case 4:
|
|
2481
|
-
throw this.
|
|
2481
|
+
throw this.g9_1;
|
|
2482
2482
|
}
|
|
2483
2483
|
} catch ($p) {
|
|
2484
2484
|
var e = $p;
|
|
2485
|
-
if (this.
|
|
2485
|
+
if (this.e9_1 === 4) {
|
|
2486
2486
|
throw e;
|
|
2487
2487
|
} else {
|
|
2488
|
-
this.
|
|
2489
|
-
this.
|
|
2488
|
+
this.d9_1 = this.e9_1;
|
|
2489
|
+
this.g9_1 = e;
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
2492
|
while (true);
|
|
2493
2493
|
};
|
|
2494
2494
|
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2495
2495
|
CoroutineImpl.call(this, resultContinuation);
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2496
|
+
this.s5h_1 = bodyFilter;
|
|
2497
|
+
this.t5h_1 = response;
|
|
2498
|
+
this.u5h_1 = body;
|
|
2499
|
+
this.v5h_1 = logLines;
|
|
2500
2500
|
}
|
|
2501
|
-
protoOf($invoke$logResponseBodyCOROUTINE$).
|
|
2502
|
-
var suspendResult = this.
|
|
2501
|
+
protoOf($invoke$logResponseBodyCOROUTINE$).l9 = function () {
|
|
2502
|
+
var suspendResult = this.f9_1;
|
|
2503
2503
|
$sm: do
|
|
2504
2504
|
try {
|
|
2505
|
-
var tmp = this.
|
|
2505
|
+
var tmp = this.d9_1;
|
|
2506
2506
|
switch (tmp) {
|
|
2507
2507
|
case 0:
|
|
2508
|
-
this.
|
|
2509
|
-
this.
|
|
2510
|
-
this.
|
|
2511
|
-
suspendResult = this.
|
|
2508
|
+
this.e9_1 = 2;
|
|
2509
|
+
this.v5h_1.j1('');
|
|
2510
|
+
this.d9_1 = 1;
|
|
2511
|
+
suspendResult = this.s5h_1.m5a(this.t5h_1.c3t().v3s().e3t(), contentLength(this.t5h_1), contentType(this.t5h_1), this.t5h_1.p31(), this.u5h_1, this);
|
|
2512
2512
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2513
2513
|
return suspendResult;
|
|
2514
2514
|
}
|
|
@@ -2516,33 +2516,33 @@
|
|
|
2516
2516
|
continue $sm;
|
|
2517
2517
|
case 1:
|
|
2518
2518
|
var filteredBody = suspendResult;
|
|
2519
|
-
var duration = subtract(this.
|
|
2519
|
+
var duration = subtract(this.t5h_1.o3t().v2q_1, this.t5h_1.n3t().v2q_1);
|
|
2520
2520
|
if (filteredBody instanceof Empty) {
|
|
2521
|
-
this.
|
|
2521
|
+
this.v5h_1.j1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2522
2522
|
} else {
|
|
2523
2523
|
if (filteredBody instanceof Skip) {
|
|
2524
2524
|
var this_0 = StringBuilder_init_$Create$();
|
|
2525
2525
|
this_0.q('<-- END HTTP (');
|
|
2526
|
-
this_0.
|
|
2526
|
+
this_0.rc(duration);
|
|
2527
2527
|
this_0.q('ms, ');
|
|
2528
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2528
|
+
var tmp0_safe_receiver = filteredBody.o5a_1;
|
|
2529
2529
|
if (tmp0_safe_receiver == null)
|
|
2530
2530
|
null;
|
|
2531
2531
|
else {
|
|
2532
2532
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2533
2533
|
}
|
|
2534
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2534
|
+
var tmp1_safe_receiver = filteredBody.p5a_1;
|
|
2535
2535
|
if (tmp1_safe_receiver == null)
|
|
2536
2536
|
null;
|
|
2537
2537
|
else {
|
|
2538
2538
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2539
2539
|
}
|
|
2540
2540
|
this_0.q('body omitted)');
|
|
2541
|
-
this.
|
|
2541
|
+
this.v5h_1.j1(this_0.toString());
|
|
2542
2542
|
} else {
|
|
2543
2543
|
if (isInterface(filteredBody, Content)) {
|
|
2544
|
-
this.
|
|
2545
|
-
this.
|
|
2544
|
+
this.v5h_1.j1(filteredBody.q5a());
|
|
2545
|
+
this.v5h_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.n5a()) + '-byte body)');
|
|
2546
2546
|
} else {
|
|
2547
2547
|
noWhenBranchMatchedException();
|
|
2548
2548
|
}
|
|
@@ -2551,59 +2551,59 @@
|
|
|
2551
2551
|
|
|
2552
2552
|
return Unit_instance;
|
|
2553
2553
|
case 2:
|
|
2554
|
-
throw this.
|
|
2554
|
+
throw this.g9_1;
|
|
2555
2555
|
}
|
|
2556
2556
|
} catch ($p) {
|
|
2557
2557
|
var e = $p;
|
|
2558
|
-
if (this.
|
|
2558
|
+
if (this.e9_1 === 2) {
|
|
2559
2559
|
throw e;
|
|
2560
2560
|
} else {
|
|
2561
|
-
this.
|
|
2562
|
-
this.
|
|
2561
|
+
this.d9_1 = this.e9_1;
|
|
2562
|
+
this.g9_1 = e;
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
2565
|
while (true);
|
|
2566
2566
|
};
|
|
2567
2567
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2568
2568
|
CoroutineImpl.call(this, resultContinuation);
|
|
2569
|
-
this.
|
|
2570
|
-
this.
|
|
2571
|
-
this.
|
|
2572
|
-
this.
|
|
2573
|
-
this.
|
|
2574
|
-
}
|
|
2575
|
-
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).
|
|
2576
|
-
var suspendResult = this.
|
|
2569
|
+
this.e5i_1 = sanitizedHeaders;
|
|
2570
|
+
this.f5i_1 = level;
|
|
2571
|
+
this.g5i_1 = bodyFilter;
|
|
2572
|
+
this.h5i_1 = response;
|
|
2573
|
+
this.i5i_1 = logLines;
|
|
2574
|
+
}
|
|
2575
|
+
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).l9 = function () {
|
|
2576
|
+
var suspendResult = this.f9_1;
|
|
2577
2577
|
$sm: do
|
|
2578
2578
|
try {
|
|
2579
|
-
var tmp = this.
|
|
2579
|
+
var tmp = this.d9_1;
|
|
2580
2580
|
switch (tmp) {
|
|
2581
2581
|
case 0:
|
|
2582
|
-
this.
|
|
2583
|
-
if (invoke$isNone(this.
|
|
2584
|
-
return this.
|
|
2585
|
-
var tmp0_safe_receiver = this.
|
|
2582
|
+
this.e9_1 = 4;
|
|
2583
|
+
if (invoke$isNone(this.f5i_1))
|
|
2584
|
+
return this.h5i_1;
|
|
2585
|
+
var tmp0_safe_receiver = this.h5i_1.p31().p2o('Content-Length');
|
|
2586
2586
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2587
|
-
var request = get_request(this.
|
|
2588
|
-
var duration = subtract(this.
|
|
2589
|
-
var startLine = this.
|
|
2590
|
-
this.
|
|
2591
|
-
if (!invoke$isHeaders(this.
|
|
2592
|
-
return this.
|
|
2587
|
+
var request = get_request(this.h5i_1);
|
|
2588
|
+
var duration = subtract(this.h5i_1.o3t().v2q_1, this.h5i_1.n3t().v2q_1);
|
|
2589
|
+
var startLine = this.h5i_1.p31().p2o('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.f5i_1) || invoke$isHeaders(this.f5i_1)) ? '<-- ' + this.h5i_1.o37().toString() + ' ' + request.e3t().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.f5i_1) && !(contentLength == null) ? '<-- ' + this.h5i_1.o37().toString() + ' ' + request.e3t().toString() + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.f5i_1) || (invoke$isInfo(this.f5i_1) && contentLength == null) || (invoke$isHeaders(this.f5i_1) && !(contentLength == null)) || this.h5i_1.p31().p2o('Content-Encoding') === 'gzip' ? '<-- ' + this.h5i_1.o37().toString() + ' ' + request.e3t().toString() + ' (' + duration.toString() + 'ms)' : '<-- ' + this.h5i_1.o37().toString() + ' ' + request.e3t().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2590
|
+
this.i5i_1.j1(startLine);
|
|
2591
|
+
if (!invoke$isHeaders(this.f5i_1) && !invoke$isBody(this.f5i_1)) {
|
|
2592
|
+
return this.h5i_1;
|
|
2593
2593
|
}
|
|
2594
2594
|
|
|
2595
|
-
var _iterator__ex2g4s = this.
|
|
2595
|
+
var _iterator__ex2g4s = this.h5i_1.p31().g2p().t();
|
|
2596
2596
|
while (_iterator__ex2g4s.u()) {
|
|
2597
2597
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2598
2598
|
var name = _destruct__k2r9zo.r1();
|
|
2599
2599
|
var values = _destruct__k2r9zo.s1();
|
|
2600
|
-
var tmp0 = this.
|
|
2600
|
+
var tmp0 = this.e5i_1;
|
|
2601
2601
|
var tmp$ret$0 = Unit_instance;
|
|
2602
2602
|
l$ret$1: do {
|
|
2603
2603
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2604
2604
|
while (_iterator__ex2g4s_0.u()) {
|
|
2605
2605
|
var element = _iterator__ex2g4s_0.v();
|
|
2606
|
-
if (element.
|
|
2606
|
+
if (element.l5i_1(name)) {
|
|
2607
2607
|
tmp$ret$0 = element;
|
|
2608
2608
|
break l$ret$1;
|
|
2609
2609
|
}
|
|
@@ -2612,66 +2612,66 @@
|
|
|
2612
2612
|
}
|
|
2613
2613
|
while (false);
|
|
2614
2614
|
if (tmp$ret$0 == null) {
|
|
2615
|
-
this.
|
|
2615
|
+
this.i5i_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2616
2616
|
} else {
|
|
2617
|
-
this.
|
|
2617
|
+
this.i5i_1.j1(name + ': \u2588\u2588');
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
2621
|
-
if (!invoke$isBody(this.
|
|
2622
|
-
this.
|
|
2623
|
-
return this.
|
|
2621
|
+
if (!invoke$isBody(this.f5i_1)) {
|
|
2622
|
+
this.i5i_1.j1('<-- END HTTP');
|
|
2623
|
+
return this.h5i_1;
|
|
2624
2624
|
}
|
|
2625
2625
|
|
|
2626
2626
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2627
|
-
this.
|
|
2628
|
-
return this.
|
|
2627
|
+
this.i5i_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2628
|
+
return this.h5i_1;
|
|
2629
2629
|
}
|
|
2630
2630
|
|
|
2631
|
-
if (equals(contentType(this.
|
|
2632
|
-
this.
|
|
2633
|
-
return this.
|
|
2631
|
+
if (equals(contentType(this.h5i_1), Text_getInstance().w2w_1)) {
|
|
2632
|
+
this.i5i_1.j1('<-- END HTTP (streaming)');
|
|
2633
|
+
return this.h5i_1;
|
|
2634
2634
|
}
|
|
2635
2635
|
|
|
2636
|
-
if (get_isSaved(this.
|
|
2637
|
-
this.
|
|
2638
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2636
|
+
if (get_isSaved(this.h5i_1)) {
|
|
2637
|
+
this.d9_1 = 3;
|
|
2638
|
+
suspendResult = invoke$logResponseBody(this.g5i_1, this.h5i_1, this.h5i_1.l3t(), this.i5i_1, this);
|
|
2639
2639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2640
2640
|
return suspendResult;
|
|
2641
2641
|
}
|
|
2642
2642
|
continue $sm;
|
|
2643
2643
|
} else {
|
|
2644
|
-
this.
|
|
2644
|
+
this.d9_1 = 1;
|
|
2645
2645
|
continue $sm;
|
|
2646
2646
|
}
|
|
2647
2647
|
|
|
2648
2648
|
case 1:
|
|
2649
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2650
|
-
this.
|
|
2651
|
-
var newChannel = _destruct__k2r9zo_0.
|
|
2652
|
-
this.
|
|
2653
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2649
|
+
var _destruct__k2r9zo_0 = split(this.h5i_1.l3t(), this.h5i_1);
|
|
2650
|
+
this.j5i_1 = _destruct__k2r9zo_0.fg();
|
|
2651
|
+
var newChannel = _destruct__k2r9zo_0.gg();
|
|
2652
|
+
this.d9_1 = 2;
|
|
2653
|
+
suspendResult = invoke$logResponseBody(this.g5i_1, this.h5i_1, newChannel, this.i5i_1, this);
|
|
2654
2654
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2655
2655
|
return suspendResult;
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
2658
|
continue $sm;
|
|
2659
2659
|
case 2:
|
|
2660
|
-
var tmp_0 = this.
|
|
2661
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2662
|
-
return call.
|
|
2660
|
+
var tmp_0 = this.h5i_1.c3t();
|
|
2661
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.j5i_1));
|
|
2662
|
+
return call.n3q();
|
|
2663
2663
|
case 3:
|
|
2664
|
-
return this.
|
|
2664
|
+
return this.h5i_1;
|
|
2665
2665
|
case 4:
|
|
2666
|
-
throw this.
|
|
2666
|
+
throw this.g9_1;
|
|
2667
2667
|
}
|
|
2668
2668
|
} catch ($p) {
|
|
2669
2669
|
var e = $p;
|
|
2670
|
-
if (this.
|
|
2670
|
+
if (this.e9_1 === 4) {
|
|
2671
2671
|
throw e;
|
|
2672
2672
|
} else {
|
|
2673
|
-
this.
|
|
2674
|
-
this.
|
|
2673
|
+
this.d9_1 = this.e9_1;
|
|
2674
|
+
this.g9_1 = e;
|
|
2675
2675
|
}
|
|
2676
2676
|
}
|
|
2677
2677
|
while (true);
|
|
@@ -2755,7 +2755,7 @@
|
|
|
2755
2755
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2756
2756
|
while (_iterator__ex2g4s_0.u()) {
|
|
2757
2757
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2758
|
-
if (element_0.
|
|
2758
|
+
if (element_0.l5i_1(key)) {
|
|
2759
2759
|
tmp$ret$6 = element_0;
|
|
2760
2760
|
break $l$block;
|
|
2761
2761
|
}
|
|
@@ -2763,7 +2763,7 @@
|
|
|
2763
2763
|
tmp$ret$6 = null;
|
|
2764
2764
|
}
|
|
2765
2765
|
var tmp0_safe_receiver = tmp$ret$6;
|
|
2766
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2766
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k5i_1;
|
|
2767
2767
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2768
2768
|
}
|
|
2769
2769
|
}
|
|
@@ -2775,51 +2775,51 @@
|
|
|
2775
2775
|
}
|
|
2776
2776
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2777
2777
|
// Inline function 'kotlin.with' call
|
|
2778
|
-
if (level.
|
|
2778
|
+
if (level.p5b_1) {
|
|
2779
2779
|
// Inline function 'kotlin.text.appendLine' call
|
|
2780
|
-
var value = 'RESPONSE: ' + response.
|
|
2780
|
+
var value = 'RESPONSE: ' + response.o37().toString();
|
|
2781
2781
|
// Inline function 'kotlin.text.appendLine' call
|
|
2782
2782
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2783
2783
|
// Inline function 'kotlin.text.appendLine' call
|
|
2784
|
-
var value_0 = 'METHOD: ' + response.
|
|
2784
|
+
var value_0 = 'METHOD: ' + response.c3t().v3s().d3t().toString();
|
|
2785
2785
|
// Inline function 'kotlin.text.appendLine' call
|
|
2786
2786
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2787
2787
|
// Inline function 'kotlin.text.appendLine' call
|
|
2788
|
-
var value_1 = 'FROM: ' + response.
|
|
2788
|
+
var value_1 = 'FROM: ' + response.c3t().v3s().e3t().toString();
|
|
2789
2789
|
// Inline function 'kotlin.text.appendLine' call
|
|
2790
2790
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2791
2791
|
}
|
|
2792
|
-
if (level.
|
|
2792
|
+
if (level.q5b_1) {
|
|
2793
2793
|
// Inline function 'kotlin.text.appendLine' call
|
|
2794
2794
|
var value_2 = 'COMMON HEADERS';
|
|
2795
2795
|
// Inline function 'kotlin.text.appendLine' call
|
|
2796
2796
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2797
|
-
logHeaders(log, response.
|
|
2797
|
+
logHeaders(log, response.p31().g2p(), sanitizedHeaders);
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
2800
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
2801
2801
|
var tmp = new $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, $completion);
|
|
2802
|
-
tmp.
|
|
2803
|
-
tmp.
|
|
2804
|
-
return tmp.
|
|
2802
|
+
tmp.f9_1 = Unit_instance;
|
|
2803
|
+
tmp.g9_1 = null;
|
|
2804
|
+
return tmp.l9();
|
|
2805
2805
|
}
|
|
2806
2806
|
function appendResponseBody(_this__u8e3s4, contentType, content, $completion) {
|
|
2807
2807
|
var tmp = new $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, $completion);
|
|
2808
|
-
tmp.
|
|
2809
|
-
tmp.
|
|
2810
|
-
return tmp.
|
|
2808
|
+
tmp.f9_1 = Unit_instance;
|
|
2809
|
+
tmp.g9_1 = null;
|
|
2810
|
+
return tmp.l9();
|
|
2811
2811
|
}
|
|
2812
2812
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2813
|
-
this.
|
|
2813
|
+
this.g5n_1 = function_0;
|
|
2814
2814
|
}
|
|
2815
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
2816
|
-
return this.
|
|
2815
|
+
protoOf(sam$kotlin_Comparator$0).ae = function (a, b) {
|
|
2816
|
+
return this.g5n_1(a, b);
|
|
2817
2817
|
};
|
|
2818
2818
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2819
|
-
return this.
|
|
2819
|
+
return this.ae(a, b);
|
|
2820
2820
|
};
|
|
2821
2821
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2822
|
-
return this.
|
|
2822
|
+
return this.g5n_1;
|
|
2823
2823
|
};
|
|
2824
2824
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2825
2825
|
var tmp;
|
|
@@ -2847,64 +2847,64 @@
|
|
|
2847
2847
|
}
|
|
2848
2848
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2849
2849
|
CoroutineImpl.call(this, resultContinuation);
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2850
|
+
this.p5m_1 = _this__u8e3s4;
|
|
2851
|
+
this.q5m_1 = response;
|
|
2852
2852
|
}
|
|
2853
|
-
protoOf($logResponseBodyCOROUTINE$_0).
|
|
2854
|
-
var suspendResult = this.
|
|
2853
|
+
protoOf($logResponseBodyCOROUTINE$_0).l9 = function () {
|
|
2854
|
+
var suspendResult = this.f9_1;
|
|
2855
2855
|
$sm: do
|
|
2856
2856
|
try {
|
|
2857
|
-
var tmp = this.
|
|
2857
|
+
var tmp = this.d9_1;
|
|
2858
2858
|
switch (tmp) {
|
|
2859
2859
|
case 0:
|
|
2860
|
-
this.
|
|
2861
|
-
this.
|
|
2862
|
-
this.
|
|
2860
|
+
this.e9_1 = 8;
|
|
2861
|
+
this.r5m_1 = StringBuilder_init_$Create$();
|
|
2862
|
+
this.d9_1 = 1;
|
|
2863
2863
|
continue $sm;
|
|
2864
2864
|
case 1:
|
|
2865
|
-
this.
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2868
|
-
suspendResult = appendResponseBody(this.
|
|
2865
|
+
this.e9_1 = 4;
|
|
2866
|
+
this.e9_1 = 3;
|
|
2867
|
+
this.d9_1 = 2;
|
|
2868
|
+
suspendResult = appendResponseBody(this.r5m_1, contentType(this.q5m_1), this.q5m_1.l3t(), this);
|
|
2869
2869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2870
2870
|
return suspendResult;
|
|
2871
2871
|
}
|
|
2872
2872
|
|
|
2873
2873
|
continue $sm;
|
|
2874
2874
|
case 2:
|
|
2875
|
-
this.
|
|
2876
|
-
this.
|
|
2875
|
+
this.e9_1 = 8;
|
|
2876
|
+
this.d9_1 = 6;
|
|
2877
2877
|
continue $sm;
|
|
2878
2878
|
case 3:
|
|
2879
|
-
this.
|
|
2880
|
-
var tmp_0 = this.
|
|
2879
|
+
this.e9_1 = 4;
|
|
2880
|
+
var tmp_0 = this.g9_1;
|
|
2881
2881
|
if (tmp_0 instanceof Error) {
|
|
2882
|
-
var _unused_var__etf5q3 = this.
|
|
2883
|
-
this.
|
|
2884
|
-
this.
|
|
2882
|
+
var _unused_var__etf5q3 = this.g9_1;
|
|
2883
|
+
this.e9_1 = 8;
|
|
2884
|
+
this.d9_1 = 6;
|
|
2885
2885
|
continue $sm;
|
|
2886
2886
|
} else {
|
|
2887
|
-
throw this.
|
|
2887
|
+
throw this.g9_1;
|
|
2888
2888
|
}
|
|
2889
2889
|
|
|
2890
2890
|
case 4:
|
|
2891
|
-
this.
|
|
2892
|
-
this.
|
|
2893
|
-
this.
|
|
2894
|
-
var this_0 = this.
|
|
2895
|
-
suspendResult = this.
|
|
2891
|
+
this.e9_1 = 8;
|
|
2892
|
+
this.s5m_1 = this.g9_1;
|
|
2893
|
+
this.d9_1 = 5;
|
|
2894
|
+
var this_0 = this.r5m_1.toString();
|
|
2895
|
+
suspendResult = this.p5m_1.h5a(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2896
2896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2897
2897
|
return suspendResult;
|
|
2898
2898
|
}
|
|
2899
2899
|
|
|
2900
2900
|
continue $sm;
|
|
2901
2901
|
case 5:
|
|
2902
|
-
throw this.
|
|
2902
|
+
throw this.s5m_1;
|
|
2903
2903
|
case 6:
|
|
2904
|
-
this.
|
|
2905
|
-
this.
|
|
2906
|
-
var this_1 = this.
|
|
2907
|
-
suspendResult = this.
|
|
2904
|
+
this.e9_1 = 8;
|
|
2905
|
+
this.d9_1 = 7;
|
|
2906
|
+
var this_1 = this.r5m_1.toString();
|
|
2907
|
+
suspendResult = this.p5m_1.h5a(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2908
2908
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2909
2909
|
return suspendResult;
|
|
2910
2910
|
}
|
|
@@ -2913,45 +2913,45 @@
|
|
|
2913
2913
|
case 7:
|
|
2914
2914
|
return Unit_instance;
|
|
2915
2915
|
case 8:
|
|
2916
|
-
throw this.
|
|
2916
|
+
throw this.g9_1;
|
|
2917
2917
|
}
|
|
2918
2918
|
} catch ($p) {
|
|
2919
2919
|
var e = $p;
|
|
2920
|
-
if (this.
|
|
2920
|
+
if (this.e9_1 === 8) {
|
|
2921
2921
|
throw e;
|
|
2922
2922
|
} else {
|
|
2923
|
-
this.
|
|
2924
|
-
this.
|
|
2923
|
+
this.d9_1 = this.e9_1;
|
|
2924
|
+
this.g9_1 = e;
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
2927
|
while (true);
|
|
2928
2928
|
};
|
|
2929
2929
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2930
2930
|
CoroutineImpl.call(this, resultContinuation);
|
|
2931
|
-
this.
|
|
2932
|
-
this.
|
|
2933
|
-
this.
|
|
2931
|
+
this.b5n_1 = _this__u8e3s4;
|
|
2932
|
+
this.c5n_1 = contentType;
|
|
2933
|
+
this.d5n_1 = content;
|
|
2934
2934
|
}
|
|
2935
|
-
protoOf($appendResponseBodyCOROUTINE$).
|
|
2936
|
-
var suspendResult = this.
|
|
2935
|
+
protoOf($appendResponseBodyCOROUTINE$).l9 = function () {
|
|
2936
|
+
var suspendResult = this.f9_1;
|
|
2937
2937
|
$sm: do
|
|
2938
2938
|
try {
|
|
2939
|
-
var tmp = this.
|
|
2939
|
+
var tmp = this.d9_1;
|
|
2940
2940
|
switch (tmp) {
|
|
2941
2941
|
case 0:
|
|
2942
|
-
this.
|
|
2943
|
-
var tmp0 = this.
|
|
2944
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2942
|
+
this.e9_1 = 3;
|
|
2943
|
+
var tmp0 = this.b5n_1;
|
|
2944
|
+
var value = 'BODY Content-Type: ' + toString_0(this.c5n_1);
|
|
2945
2945
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2946
|
-
var tmp0_0 = this.
|
|
2946
|
+
var tmp0_0 = this.b5n_1;
|
|
2947
2947
|
var value_0 = 'BODY START';
|
|
2948
2948
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2949
|
-
var tmp0_1 = this.
|
|
2950
|
-
var tmp0_safe_receiver = this.
|
|
2949
|
+
var tmp0_1 = this.d5n_1;
|
|
2950
|
+
var tmp0_safe_receiver = this.c5n_1;
|
|
2951
2951
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2952
|
-
this.
|
|
2953
|
-
this.
|
|
2954
|
-
this.
|
|
2952
|
+
this.f5n_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().v1y_1 : tmp1_elvis_lhs;
|
|
2953
|
+
this.e9_1 = 2;
|
|
2954
|
+
this.d9_1 = 1;
|
|
2955
2955
|
suspendResult = readRemaining(tmp0_1, this);
|
|
2956
2956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2957
2957
|
return suspendResult;
|
|
@@ -2960,78 +2960,78 @@
|
|
|
2960
2960
|
continue $sm;
|
|
2961
2961
|
case 1:
|
|
2962
2962
|
var ARGUMENT = suspendResult;
|
|
2963
|
-
this.
|
|
2964
|
-
this.
|
|
2965
|
-
this.
|
|
2963
|
+
this.e5n_1 = readText(ARGUMENT, this.f5n_1);
|
|
2964
|
+
this.e9_1 = 3;
|
|
2965
|
+
this.d9_1 = 4;
|
|
2966
2966
|
continue $sm;
|
|
2967
2967
|
case 2:
|
|
2968
|
-
this.
|
|
2969
|
-
var tmp_0 = this.
|
|
2968
|
+
this.e9_1 = 3;
|
|
2969
|
+
var tmp_0 = this.g9_1;
|
|
2970
2970
|
if (tmp_0 instanceof Error) {
|
|
2971
|
-
var cause = this.
|
|
2971
|
+
var cause = this.g9_1;
|
|
2972
2972
|
var tmp_1 = this;
|
|
2973
|
-
tmp_1.
|
|
2974
|
-
this.
|
|
2973
|
+
tmp_1.e5n_1 = null;
|
|
2974
|
+
this.d9_1 = 4;
|
|
2975
2975
|
continue $sm;
|
|
2976
2976
|
} else {
|
|
2977
|
-
throw this.
|
|
2977
|
+
throw this.g9_1;
|
|
2978
2978
|
}
|
|
2979
2979
|
|
|
2980
2980
|
case 3:
|
|
2981
|
-
throw this.
|
|
2981
|
+
throw this.g9_1;
|
|
2982
2982
|
case 4:
|
|
2983
|
-
this.
|
|
2984
|
-
var tmp2_elvis_lhs = this.
|
|
2983
|
+
this.e9_1 = 3;
|
|
2984
|
+
var tmp2_elvis_lhs = this.e5n_1;
|
|
2985
2985
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2986
|
-
this.
|
|
2987
|
-
this.
|
|
2986
|
+
this.b5n_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2987
|
+
this.b5n_1.q('BODY END');
|
|
2988
2988
|
return Unit_instance;
|
|
2989
2989
|
}
|
|
2990
2990
|
} catch ($p) {
|
|
2991
2991
|
var e = $p;
|
|
2992
|
-
if (this.
|
|
2992
|
+
if (this.e9_1 === 3) {
|
|
2993
2993
|
throw e;
|
|
2994
2994
|
} else {
|
|
2995
|
-
this.
|
|
2996
|
-
this.
|
|
2995
|
+
this.d9_1 = this.e9_1;
|
|
2996
|
+
this.g9_1 = e;
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
2999
|
while (true);
|
|
3000
3000
|
};
|
|
3001
3001
|
function observe(_this__u8e3s4, log, $completion) {
|
|
3002
3002
|
var tmp = new $observeCOROUTINE$(_this__u8e3s4, log, $completion);
|
|
3003
|
-
tmp.
|
|
3004
|
-
tmp.
|
|
3005
|
-
return tmp.
|
|
3003
|
+
tmp.f9_1 = Unit_instance;
|
|
3004
|
+
tmp.g9_1 = null;
|
|
3005
|
+
return tmp.l9();
|
|
3006
3006
|
}
|
|
3007
3007
|
function toReadChannel(_this__u8e3s4) {
|
|
3008
3008
|
var tmp = GlobalScope_instance;
|
|
3009
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
3010
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3009
|
+
var tmp_0 = Dispatchers_getInstance().g16_1;
|
|
3010
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).t1q_1;
|
|
3011
3011
|
}
|
|
3012
3012
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3013
|
-
this.
|
|
3013
|
+
this.b5o_1 = $this_toReadChannel;
|
|
3014
3014
|
CoroutineImpl.call(this, resultContinuation);
|
|
3015
3015
|
}
|
|
3016
|
-
protoOf(toReadChannel$slambda).
|
|
3017
|
-
var tmp = this.
|
|
3018
|
-
tmp.
|
|
3019
|
-
tmp.
|
|
3020
|
-
return tmp.
|
|
3016
|
+
protoOf(toReadChannel$slambda).u3c = function ($this$writer, $completion) {
|
|
3017
|
+
var tmp = this.v3c($this$writer, $completion);
|
|
3018
|
+
tmp.f9_1 = Unit_instance;
|
|
3019
|
+
tmp.g9_1 = null;
|
|
3020
|
+
return tmp.l9();
|
|
3021
3021
|
};
|
|
3022
|
-
protoOf(toReadChannel$slambda).
|
|
3023
|
-
return this.
|
|
3022
|
+
protoOf(toReadChannel$slambda).y9 = function (p1, $completion) {
|
|
3023
|
+
return this.u3c(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3024
3024
|
};
|
|
3025
|
-
protoOf(toReadChannel$slambda).
|
|
3026
|
-
var suspendResult = this.
|
|
3025
|
+
protoOf(toReadChannel$slambda).l9 = function () {
|
|
3026
|
+
var suspendResult = this.f9_1;
|
|
3027
3027
|
$sm: do
|
|
3028
3028
|
try {
|
|
3029
|
-
var tmp = this.
|
|
3029
|
+
var tmp = this.d9_1;
|
|
3030
3030
|
switch (tmp) {
|
|
3031
3031
|
case 0:
|
|
3032
|
-
this.
|
|
3033
|
-
this.
|
|
3034
|
-
suspendResult = this.
|
|
3032
|
+
this.e9_1 = 2;
|
|
3033
|
+
this.d9_1 = 1;
|
|
3034
|
+
suspendResult = this.b5o_1.v37(this.c5o_1.p1w_1, this);
|
|
3035
3035
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3036
3036
|
return suspendResult;
|
|
3037
3037
|
}
|
|
@@ -3040,49 +3040,49 @@
|
|
|
3040
3040
|
case 1:
|
|
3041
3041
|
return Unit_instance;
|
|
3042
3042
|
case 2:
|
|
3043
|
-
throw this.
|
|
3043
|
+
throw this.g9_1;
|
|
3044
3044
|
}
|
|
3045
3045
|
} catch ($p) {
|
|
3046
3046
|
var e = $p;
|
|
3047
|
-
if (this.
|
|
3047
|
+
if (this.e9_1 === 2) {
|
|
3048
3048
|
throw e;
|
|
3049
3049
|
} else {
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3050
|
+
this.d9_1 = this.e9_1;
|
|
3051
|
+
this.g9_1 = e;
|
|
3052
3052
|
}
|
|
3053
3053
|
}
|
|
3054
3054
|
while (true);
|
|
3055
3055
|
};
|
|
3056
|
-
protoOf(toReadChannel$slambda).
|
|
3057
|
-
var i = new toReadChannel$slambda(this.
|
|
3058
|
-
i.
|
|
3056
|
+
protoOf(toReadChannel$slambda).v3c = function ($this$writer, completion) {
|
|
3057
|
+
var i = new toReadChannel$slambda(this.b5o_1, completion);
|
|
3058
|
+
i.c5o_1 = $this$writer;
|
|
3059
3059
|
return i;
|
|
3060
3060
|
};
|
|
3061
3061
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3062
3062
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3063
3063
|
var l = function ($this$writer, $completion) {
|
|
3064
|
-
return i.
|
|
3064
|
+
return i.u3c($this$writer, $completion);
|
|
3065
3065
|
};
|
|
3066
3066
|
l.$arity = 1;
|
|
3067
3067
|
return l;
|
|
3068
3068
|
}
|
|
3069
3069
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3070
3070
|
CoroutineImpl.call(this, resultContinuation);
|
|
3071
|
-
this.
|
|
3072
|
-
this.
|
|
3071
|
+
this.p5n_1 = _this__u8e3s4;
|
|
3072
|
+
this.q5n_1 = log;
|
|
3073
3073
|
}
|
|
3074
|
-
protoOf($observeCOROUTINE$).
|
|
3075
|
-
var suspendResult = this.
|
|
3074
|
+
protoOf($observeCOROUTINE$).l9 = function () {
|
|
3075
|
+
var suspendResult = this.f9_1;
|
|
3076
3076
|
$sm: do
|
|
3077
3077
|
try {
|
|
3078
|
-
var tmp = this.
|
|
3078
|
+
var tmp = this.d9_1;
|
|
3079
3079
|
switch (tmp) {
|
|
3080
3080
|
case 0:
|
|
3081
|
-
this.
|
|
3082
|
-
var tmp0_subject = this.
|
|
3081
|
+
this.e9_1 = 6;
|
|
3082
|
+
var tmp0_subject = this.p5n_1;
|
|
3083
3083
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3084
|
-
this.
|
|
3085
|
-
suspendResult = writeFully_0(this.
|
|
3084
|
+
this.d9_1 = 3;
|
|
3085
|
+
suspendResult = writeFully_0(this.q5n_1, this.p5n_1.q37(), VOID, VOID, this);
|
|
3086
3086
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3087
3087
|
return suspendResult;
|
|
3088
3088
|
}
|
|
@@ -3091,25 +3091,25 @@
|
|
|
3091
3091
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3092
3092
|
var tmp_0 = this;
|
|
3093
3093
|
var responseChannel = new ByteChannel();
|
|
3094
|
-
var content = this.
|
|
3095
|
-
copyToBoth(content, this.
|
|
3096
|
-
tmp_0.
|
|
3097
|
-
this.
|
|
3094
|
+
var content = this.p5n_1.t37();
|
|
3095
|
+
copyToBoth(content, this.q5n_1, responseChannel);
|
|
3096
|
+
tmp_0.r5n_1 = new LoggedContent(this.p5n_1, responseChannel);
|
|
3097
|
+
this.d9_1 = 5;
|
|
3098
3098
|
continue $sm;
|
|
3099
3099
|
} else {
|
|
3100
3100
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3101
3101
|
var tmp_1 = this;
|
|
3102
3102
|
var responseChannel_0 = new ByteChannel();
|
|
3103
|
-
var content_0 = toReadChannel(this.
|
|
3104
|
-
copyToBoth(content_0, this.
|
|
3105
|
-
tmp_1.
|
|
3106
|
-
this.
|
|
3103
|
+
var content_0 = toReadChannel(this.p5n_1);
|
|
3104
|
+
copyToBoth(content_0, this.q5n_1, responseChannel_0);
|
|
3105
|
+
tmp_1.r5n_1 = new LoggedContent(this.p5n_1, responseChannel_0);
|
|
3106
|
+
this.d9_1 = 5;
|
|
3107
3107
|
continue $sm;
|
|
3108
3108
|
} else {
|
|
3109
3109
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3110
|
-
this.
|
|
3111
|
-
this.
|
|
3112
|
-
suspendResult = observe(this.
|
|
3110
|
+
this.s5n_1 = this.p5n_1;
|
|
3111
|
+
this.d9_1 = 2;
|
|
3112
|
+
suspendResult = observe(this.p5n_1.z37(), this.q5n_1, this);
|
|
3113
3113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3114
3114
|
return suspendResult;
|
|
3115
3115
|
}
|
|
@@ -3122,8 +3122,8 @@
|
|
|
3122
3122
|
tmp_2 = tmp0_subject instanceof ProtocolUpgrade;
|
|
3123
3123
|
}
|
|
3124
3124
|
if (tmp_2) {
|
|
3125
|
-
this.
|
|
3126
|
-
suspendResult = this.
|
|
3125
|
+
this.d9_1 = 1;
|
|
3126
|
+
suspendResult = this.q5n_1.a1p(this);
|
|
3127
3127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3128
3128
|
return suspendResult;
|
|
3129
3129
|
}
|
|
@@ -3139,38 +3139,38 @@
|
|
|
3139
3139
|
|
|
3140
3140
|
break;
|
|
3141
3141
|
case 1:
|
|
3142
|
-
this.
|
|
3143
|
-
this.
|
|
3142
|
+
this.r5n_1 = this.p5n_1;
|
|
3143
|
+
this.d9_1 = 5;
|
|
3144
3144
|
continue $sm;
|
|
3145
3145
|
case 2:
|
|
3146
3146
|
var ARGUMENT = suspendResult;
|
|
3147
|
-
this.
|
|
3148
|
-
this.
|
|
3147
|
+
this.r5n_1 = this.s5n_1.a38(ARGUMENT);
|
|
3148
|
+
this.d9_1 = 5;
|
|
3149
3149
|
continue $sm;
|
|
3150
3150
|
case 3:
|
|
3151
|
-
this.
|
|
3152
|
-
suspendResult = this.
|
|
3151
|
+
this.d9_1 = 4;
|
|
3152
|
+
suspendResult = this.q5n_1.a1p(this);
|
|
3153
3153
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3154
3154
|
return suspendResult;
|
|
3155
3155
|
}
|
|
3156
3156
|
|
|
3157
3157
|
continue $sm;
|
|
3158
3158
|
case 4:
|
|
3159
|
-
this.
|
|
3160
|
-
this.
|
|
3159
|
+
this.r5n_1 = this.p5n_1;
|
|
3160
|
+
this.d9_1 = 5;
|
|
3161
3161
|
continue $sm;
|
|
3162
3162
|
case 5:
|
|
3163
|
-
return this.
|
|
3163
|
+
return this.r5n_1;
|
|
3164
3164
|
case 6:
|
|
3165
|
-
throw this.
|
|
3165
|
+
throw this.g9_1;
|
|
3166
3166
|
}
|
|
3167
3167
|
} catch ($p) {
|
|
3168
3168
|
var e = $p;
|
|
3169
|
-
if (this.
|
|
3169
|
+
if (this.e9_1 === 6) {
|
|
3170
3170
|
throw e;
|
|
3171
3171
|
} else {
|
|
3172
|
-
this.
|
|
3173
|
-
this.
|
|
3172
|
+
this.d9_1 = this.e9_1;
|
|
3173
|
+
this.g9_1 = e;
|
|
3174
3174
|
}
|
|
3175
3175
|
}
|
|
3176
3176
|
while (true);
|
|
@@ -3200,13 +3200,13 @@
|
|
|
3200
3200
|
return get_SIMPLE(_this__u8e3s4);
|
|
3201
3201
|
}
|
|
3202
3202
|
//region block: post-declaration
|
|
3203
|
-
protoOf(Empty).
|
|
3204
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3205
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3206
|
-
protoOf(MDCContextElement).
|
|
3207
|
-
protoOf(MDCContextElement).
|
|
3208
|
-
protoOf(MDCContextElement).
|
|
3209
|
-
protoOf(MDCContextElement).
|
|
3203
|
+
protoOf(Empty).n5a = get_byteSize;
|
|
3204
|
+
protoOf(BinaryLogBodyFilter$1).k5a = filterRequest;
|
|
3205
|
+
protoOf(BinaryLogBodyFilter$1).m5a = filterResponse;
|
|
3206
|
+
protoOf(MDCContextElement).q9 = get;
|
|
3207
|
+
protoOf(MDCContextElement).bh = fold;
|
|
3208
|
+
protoOf(MDCContextElement).ah = minusKey;
|
|
3209
|
+
protoOf(MDCContextElement).ch = plus;
|
|
3210
3210
|
//endregion
|
|
3211
3211
|
//region block: init
|
|
3212
3212
|
Empty_instance = new Empty();
|