@doordeck/doordeck-headless-sdk 0.149.0 → 0.150.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 +65 -65
- package/kotlin/Kermit-kermit.js +9 -9
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +59 -59
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +25 -25
- package/kotlin/doordeck-sdk.d.ts +1 -1
- package/kotlin/doordeck-sdk.js +13852 -15044
- package/kotlin/kotlin-kotlin-stdlib.js +4884 -4836
- package/kotlin/kotlinx-atomicfu.js +92 -88
- package/kotlin/kotlinx-coroutines-core.js +2871 -2878
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +71 -71
- package/kotlin/kotlinx-io-kotlinx-io-core.js +697 -676
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2632 -2628
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1841 -1829
- package/kotlin/ktor-ktor-client-auth.js +493 -512
- package/kotlin/ktor-ktor-client-content-negotiation.js +300 -308
- package/kotlin/ktor-ktor-client-core.js +3260 -3343
- package/kotlin/ktor-ktor-client-logging.js +1267 -1301
- package/kotlin/ktor-ktor-events.js +18 -18
- package/kotlin/ktor-ktor-http-cio.js +724 -719
- package/kotlin/ktor-ktor-http.js +1171 -1166
- package/kotlin/ktor-ktor-io.js +1413 -1440
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/kotlin/ktor-ktor-serialization-kotlinx.js +295 -311
- package/kotlin/ktor-ktor-serialization.js +128 -136
- package/kotlin/ktor-ktor-utils.js +1128 -1129
- package/kotlin/ktor-ktor-websockets.js +68 -68
- package/package.json +3 -2
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
-
var plus = kotlin_kotlin.$_$.
|
|
7
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
8
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.za;
|
|
6
|
+
var plus = kotlin_kotlin.$_$.o7;
|
|
7
|
+
var toMutableSet = kotlin_kotlin.$_$.k8;
|
|
8
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
9
9
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
10
10
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
11
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
+
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
12
12
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
13
|
-
var VOID = kotlin_kotlin.$_$.
|
|
14
|
-
var Exception = kotlin_kotlin.$_$.
|
|
15
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
16
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
13
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
14
|
+
var Exception = kotlin_kotlin.$_$.qf;
|
|
15
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
16
|
+
var captureStack = kotlin_kotlin.$_$.ja;
|
|
17
17
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
18
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
19
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
18
|
+
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
19
|
+
var THROW_CCE = kotlin_kotlin.$_$.yf;
|
|
20
20
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
21
21
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
22
22
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
23
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
23
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
24
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.eb;
|
|
25
25
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
26
26
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
27
27
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
28
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
28
|
+
var isInterface = kotlin_kotlin.$_$.ob;
|
|
29
29
|
var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
30
30
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
31
31
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
32
|
-
var toString = kotlin_kotlin.$_$.
|
|
33
|
-
var Collection = kotlin_kotlin.$_$.
|
|
32
|
+
var toString = kotlin_kotlin.$_$.cc;
|
|
33
|
+
var Collection = kotlin_kotlin.$_$.b5;
|
|
34
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
35
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
35
|
+
var emptyList = kotlin_kotlin.$_$.o6;
|
|
36
36
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
37
37
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
38
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
39
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
39
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.pc;
|
|
40
40
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
41
41
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
42
|
-
var Unit = kotlin_kotlin.$_$.
|
|
42
|
+
var Unit = kotlin_kotlin.$_$.jg;
|
|
43
43
|
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
44
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
44
|
+
var ensureNotNull = kotlin_kotlin.$_$.qg;
|
|
45
45
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
46
|
-
var equals = kotlin_kotlin.$_$.
|
|
47
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
49
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
50
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
46
|
+
var equals = kotlin_kotlin.$_$.sa;
|
|
47
|
+
var joinToString = kotlin_kotlin.$_$.d7;
|
|
48
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.bb;
|
|
49
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.u5;
|
|
50
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
51
51
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
52
52
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
53
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
53
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n4;
|
|
54
54
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.a1;
|
|
55
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
56
|
-
var setOf = kotlin_kotlin.$_$.
|
|
57
|
-
var KtList = kotlin_kotlin.$_$.
|
|
55
|
+
var getKClass = kotlin_kotlin.$_$.qc;
|
|
56
|
+
var setOf = kotlin_kotlin.$_$.w7;
|
|
57
|
+
var KtList = kotlin_kotlin.$_$.g5;
|
|
58
58
|
var ContentType = kotlin_io_ktor_ktor_http.$_$.y;
|
|
59
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
60
|
-
var createKType = kotlin_kotlin.$_$.
|
|
61
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
59
|
+
var arrayOf = kotlin_kotlin.$_$.mg;
|
|
60
|
+
var createKType = kotlin_kotlin.$_$.oc;
|
|
61
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.mc;
|
|
62
62
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
63
63
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
64
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
65
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
66
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
64
|
+
var endsWith = kotlin_kotlin.$_$.id;
|
|
65
|
+
var initMetadataForObject = kotlin_kotlin.$_$.fb;
|
|
66
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
67
67
|
//endregion
|
|
68
68
|
//region block: pre-declaration
|
|
69
69
|
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
@@ -97,35 +97,35 @@
|
|
|
97
97
|
}
|
|
98
98
|
var ContentNegotiation;
|
|
99
99
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
100
|
+
this.r56_1 = converter;
|
|
101
|
+
this.s56_1 = contentTypeToSend;
|
|
102
|
+
this.t56_1 = contentTypeMatcher;
|
|
103
103
|
}
|
|
104
104
|
function defaultMatcher($this, pattern) {
|
|
105
105
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
106
106
|
}
|
|
107
107
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
108
|
-
this.
|
|
108
|
+
this.u56_1 = $pattern;
|
|
109
109
|
}
|
|
110
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
111
|
-
return contentType.
|
|
110
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).v56 = function (contentType) {
|
|
111
|
+
return contentType.e2t(this.u56_1);
|
|
112
112
|
};
|
|
113
113
|
function ContentNegotiationConfig() {
|
|
114
|
-
this.
|
|
114
|
+
this.w56_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
115
115
|
var tmp = this;
|
|
116
116
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
117
|
-
tmp.
|
|
118
|
-
this.
|
|
117
|
+
tmp.x56_1 = ArrayList_init_$Create$();
|
|
118
|
+
this.y56_1 = null;
|
|
119
119
|
}
|
|
120
|
-
protoOf(ContentNegotiationConfig).
|
|
121
|
-
var matcher = contentType.
|
|
122
|
-
this.
|
|
120
|
+
protoOf(ContentNegotiationConfig).y54 = function (contentType, converter, configuration) {
|
|
121
|
+
var matcher = contentType.e2t(Application_getInstance().k2r_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
122
|
+
this.z56(contentType, converter, matcher, configuration);
|
|
123
123
|
};
|
|
124
|
-
protoOf(ContentNegotiationConfig).
|
|
124
|
+
protoOf(ContentNegotiationConfig).z56 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
125
125
|
// Inline function 'kotlin.apply' call
|
|
126
126
|
configuration(converter);
|
|
127
127
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
128
|
-
this.
|
|
128
|
+
this.x56_1.p(registration);
|
|
129
129
|
};
|
|
130
130
|
function ContentConverterException(message) {
|
|
131
131
|
Exception_init_$Init$(message, this);
|
|
@@ -140,53 +140,53 @@
|
|
|
140
140
|
}
|
|
141
141
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
142
142
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
143
|
-
var registrations = $this$createClientPlugin.
|
|
144
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
145
|
-
$this$createClientPlugin.
|
|
146
|
-
$this$createClientPlugin.
|
|
143
|
+
var registrations = $this$createClientPlugin.g3l_1.x56_1;
|
|
144
|
+
var ignoredTypes = $this$createClientPlugin.g3l_1.w56_1;
|
|
145
|
+
$this$createClientPlugin.n42(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
146
|
+
$this$createClientPlugin.m3u(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
147
147
|
return Unit_instance;
|
|
148
148
|
}
|
|
149
149
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
150
150
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
151
|
-
tmp.
|
|
152
|
-
tmp.
|
|
153
|
-
return tmp.
|
|
151
|
+
tmp.w8_1 = Unit_instance;
|
|
152
|
+
tmp.x8_1 = null;
|
|
153
|
+
return tmp.c9();
|
|
154
154
|
}
|
|
155
155
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
156
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
156
|
+
charset = charset === VOID ? Charsets_getInstance().d1w_1 : charset;
|
|
157
157
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
158
|
-
tmp.
|
|
159
|
-
tmp.
|
|
160
|
-
return tmp.
|
|
158
|
+
tmp.w8_1 = Unit_instance;
|
|
159
|
+
tmp.x8_1 = null;
|
|
160
|
+
return tmp.c9();
|
|
161
161
|
}
|
|
162
162
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
163
|
-
this.
|
|
164
|
-
this.
|
|
165
|
-
this.
|
|
163
|
+
this.r58_1 = $registrations;
|
|
164
|
+
this.s58_1 = $this_createClientPlugin;
|
|
165
|
+
this.t58_1 = $ignoredTypes;
|
|
166
166
|
CoroutineImpl.call(this, resultContinuation);
|
|
167
167
|
}
|
|
168
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
169
|
-
var tmp = this.
|
|
170
|
-
tmp.
|
|
171
|
-
tmp.
|
|
172
|
-
return tmp.
|
|
168
|
+
protoOf(ContentNegotiation$lambda$slambda).y58 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
169
|
+
var tmp = this.z58($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
170
|
+
tmp.w8_1 = Unit_instance;
|
|
171
|
+
tmp.x8_1 = null;
|
|
172
|
+
return tmp.c9();
|
|
173
173
|
};
|
|
174
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
174
|
+
protoOf(ContentNegotiation$lambda$slambda).r3v = function (p1, p2, p3, p4, $completion) {
|
|
175
175
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
176
176
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
177
177
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
178
|
-
return this.
|
|
178
|
+
return this.y58(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
179
179
|
};
|
|
180
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
181
|
-
var suspendResult = this.
|
|
180
|
+
protoOf(ContentNegotiation$lambda$slambda).c9 = function () {
|
|
181
|
+
var suspendResult = this.w8_1;
|
|
182
182
|
$sm: do
|
|
183
183
|
try {
|
|
184
|
-
var tmp = this.
|
|
184
|
+
var tmp = this.u8_1;
|
|
185
185
|
switch (tmp) {
|
|
186
186
|
case 0:
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
189
|
-
suspendResult = invoke$convertRequest(this.
|
|
187
|
+
this.v8_1 = 2;
|
|
188
|
+
this.u8_1 = 1;
|
|
189
|
+
suspendResult = invoke$convertRequest(this.r58_1, this.s58_1, this.t58_1, this.v58_1, this.w58_1, this);
|
|
190
190
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
191
191
|
return suspendResult;
|
|
192
192
|
}
|
|
@@ -195,74 +195,73 @@
|
|
|
195
195
|
case 1:
|
|
196
196
|
return suspendResult;
|
|
197
197
|
case 2:
|
|
198
|
-
throw this.
|
|
198
|
+
throw this.x8_1;
|
|
199
199
|
}
|
|
200
200
|
} catch ($p) {
|
|
201
201
|
var e = $p;
|
|
202
|
-
if (this.
|
|
202
|
+
if (this.v8_1 === 2) {
|
|
203
203
|
throw e;
|
|
204
204
|
} else {
|
|
205
|
-
this.
|
|
206
|
-
this.
|
|
205
|
+
this.u8_1 = this.v8_1;
|
|
206
|
+
this.x8_1 = e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
while (true);
|
|
210
210
|
};
|
|
211
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
212
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
213
|
-
i.
|
|
214
|
-
i.
|
|
215
|
-
i.
|
|
216
|
-
i.
|
|
211
|
+
protoOf(ContentNegotiation$lambda$slambda).z58 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
212
|
+
var i = new ContentNegotiation$lambda$slambda(this.r58_1, this.s58_1, this.t58_1, completion);
|
|
213
|
+
i.u58_1 = $this$transformRequestBody;
|
|
214
|
+
i.v58_1 = request;
|
|
215
|
+
i.w58_1 = body;
|
|
216
|
+
i.x58_1 = _unused_var__etf5q3;
|
|
217
217
|
return i;
|
|
218
218
|
};
|
|
219
219
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
220
220
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
221
221
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
222
|
-
return i.
|
|
222
|
+
return i.y58($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
223
223
|
};
|
|
224
224
|
l.$arity = 4;
|
|
225
225
|
return l;
|
|
226
226
|
}
|
|
227
227
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
228
|
+
this.i59_1 = $ignoredTypes;
|
|
229
|
+
this.j59_1 = $registrations;
|
|
230
|
+
this.k59_1 = $this_createClientPlugin;
|
|
231
231
|
CoroutineImpl.call(this, resultContinuation);
|
|
232
232
|
}
|
|
233
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
234
|
-
var tmp = this.
|
|
235
|
-
tmp.
|
|
236
|
-
tmp.
|
|
237
|
-
return tmp.
|
|
233
|
+
protoOf(ContentNegotiation$lambda$slambda_1).p3v = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
234
|
+
var tmp = this.q3v($this$transformResponseBody, response, body, info, $completion);
|
|
235
|
+
tmp.w8_1 = Unit_instance;
|
|
236
|
+
tmp.x8_1 = null;
|
|
237
|
+
return tmp.c9();
|
|
238
238
|
};
|
|
239
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
239
|
+
protoOf(ContentNegotiation$lambda$slambda_1).r3v = function (p1, p2, p3, p4, $completion) {
|
|
240
240
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
241
241
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
242
242
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
243
|
-
return this.
|
|
243
|
+
return this.p3v(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
244
244
|
};
|
|
245
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
246
|
-
var suspendResult = this.
|
|
245
|
+
protoOf(ContentNegotiation$lambda$slambda_1).c9 = function () {
|
|
246
|
+
var suspendResult = this.w8_1;
|
|
247
247
|
$sm: do
|
|
248
248
|
try {
|
|
249
|
-
var tmp = this.
|
|
249
|
+
var tmp = this.u8_1;
|
|
250
250
|
switch (tmp) {
|
|
251
251
|
case 0:
|
|
252
|
-
this.
|
|
253
|
-
var
|
|
254
|
-
var
|
|
255
|
-
var tmp_1;
|
|
252
|
+
this.v8_1 = 2;
|
|
253
|
+
var tmp0_elvis_lhs = contentType(this.m59_1);
|
|
254
|
+
var tmp_0;
|
|
256
255
|
if (tmp0_elvis_lhs == null) {
|
|
257
256
|
return null;
|
|
258
257
|
} else {
|
|
259
|
-
|
|
258
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
260
259
|
}
|
|
261
260
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
this.
|
|
265
|
-
suspendResult = invoke$convertResponse(this.
|
|
261
|
+
var contentType_0 = tmp_0;
|
|
262
|
+
var charset = suitableCharset(get_request(this.m59_1).n2x());
|
|
263
|
+
this.u8_1 = 1;
|
|
264
|
+
suspendResult = invoke$convertResponse(this.i59_1, this.j59_1, this.k59_1, get_request(this.m59_1).u3e(), this.o59_1, this.n59_1, contentType_0, charset, this);
|
|
266
265
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
267
266
|
return suspendResult;
|
|
268
267
|
}
|
|
@@ -271,80 +270,79 @@
|
|
|
271
270
|
case 1:
|
|
272
271
|
return suspendResult;
|
|
273
272
|
case 2:
|
|
274
|
-
throw this.
|
|
273
|
+
throw this.x8_1;
|
|
275
274
|
}
|
|
276
275
|
} catch ($p) {
|
|
277
276
|
var e = $p;
|
|
278
|
-
if (this.
|
|
277
|
+
if (this.v8_1 === 2) {
|
|
279
278
|
throw e;
|
|
280
279
|
} else {
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
280
|
+
this.u8_1 = this.v8_1;
|
|
281
|
+
this.x8_1 = e;
|
|
283
282
|
}
|
|
284
283
|
}
|
|
285
284
|
while (true);
|
|
286
285
|
};
|
|
287
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
288
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
289
|
-
i.
|
|
290
|
-
i.
|
|
291
|
-
i.
|
|
292
|
-
i.
|
|
286
|
+
protoOf(ContentNegotiation$lambda$slambda_1).q3v = function ($this$transformResponseBody, response, body, info, completion) {
|
|
287
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.i59_1, this.j59_1, this.k59_1, completion);
|
|
288
|
+
i.l59_1 = $this$transformResponseBody;
|
|
289
|
+
i.m59_1 = response;
|
|
290
|
+
i.n59_1 = body;
|
|
291
|
+
i.o59_1 = info;
|
|
293
292
|
return i;
|
|
294
293
|
};
|
|
295
294
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
296
295
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
297
296
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
298
|
-
return i.
|
|
297
|
+
return i.p3v($this$transformResponseBody, response, body, info, $completion);
|
|
299
298
|
};
|
|
300
299
|
l.$arity = 4;
|
|
301
300
|
return l;
|
|
302
301
|
}
|
|
303
302
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
304
303
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
305
|
-
return toString(it.
|
|
304
|
+
return toString(it.r56_1);
|
|
306
305
|
}
|
|
307
306
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
308
307
|
CoroutineImpl.call(this, resultContinuation);
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
308
|
+
this.i57_1 = registrations;
|
|
309
|
+
this.j57_1 = $this_createClientPlugin;
|
|
310
|
+
this.k57_1 = ignoredTypes;
|
|
311
|
+
this.l57_1 = request;
|
|
312
|
+
this.m57_1 = body;
|
|
314
313
|
}
|
|
315
|
-
protoOf($invoke$convertRequestCOROUTINE$).
|
|
316
|
-
var suspendResult = this.
|
|
314
|
+
protoOf($invoke$convertRequestCOROUTINE$).c9 = function () {
|
|
315
|
+
var suspendResult = this.w8_1;
|
|
317
316
|
$sm: do
|
|
318
317
|
try {
|
|
319
|
-
var tmp = this.
|
|
318
|
+
var tmp = this.u8_1;
|
|
320
319
|
switch (tmp) {
|
|
321
320
|
case 0:
|
|
322
|
-
this.
|
|
323
|
-
var tmp_0
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
var
|
|
327
|
-
var tmp0 = this.i5i_1;
|
|
321
|
+
this.v8_1 = 7;
|
|
322
|
+
var tmp_0;
|
|
323
|
+
if (this.l57_1.i3d_1.a2i(get_ExcludedContentTypes())) {
|
|
324
|
+
var excluded = this.l57_1.i3d_1.y2h(get_ExcludedContentTypes());
|
|
325
|
+
var tmp0 = this.i57_1;
|
|
328
326
|
var destination = ArrayList_init_$Create$();
|
|
329
|
-
var _iterator__ex2g4s = tmp0.
|
|
330
|
-
while (_iterator__ex2g4s.
|
|
331
|
-
var element = _iterator__ex2g4s.
|
|
327
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
328
|
+
while (_iterator__ex2g4s.s()) {
|
|
329
|
+
var element = _iterator__ex2g4s.t();
|
|
332
330
|
var tmp$ret$0;
|
|
333
331
|
l$ret$1: do {
|
|
334
|
-
var
|
|
332
|
+
var tmp_1;
|
|
335
333
|
if (isInterface(excluded, Collection)) {
|
|
336
|
-
|
|
334
|
+
tmp_1 = excluded.j();
|
|
337
335
|
} else {
|
|
338
|
-
|
|
336
|
+
tmp_1 = false;
|
|
339
337
|
}
|
|
340
|
-
if (
|
|
338
|
+
if (tmp_1) {
|
|
341
339
|
tmp$ret$0 = true;
|
|
342
340
|
break l$ret$1;
|
|
343
341
|
}
|
|
344
|
-
var _iterator__ex2g4s_0 = excluded.
|
|
345
|
-
while (_iterator__ex2g4s_0.
|
|
346
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
347
|
-
if (element.
|
|
342
|
+
var _iterator__ex2g4s_0 = excluded.r();
|
|
343
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
344
|
+
var element_0 = _iterator__ex2g4s_0.t();
|
|
345
|
+
if (element.s56_1.e2t(element_0)) {
|
|
348
346
|
tmp$ret$0 = false;
|
|
349
347
|
break l$ret$1;
|
|
350
348
|
}
|
|
@@ -353,38 +351,36 @@
|
|
|
353
351
|
}
|
|
354
352
|
while (false);
|
|
355
353
|
if (tmp$ret$0) {
|
|
356
|
-
destination.
|
|
354
|
+
destination.p(element);
|
|
357
355
|
}
|
|
358
356
|
}
|
|
359
|
-
|
|
357
|
+
tmp_0 = destination;
|
|
360
358
|
} else {
|
|
361
|
-
|
|
359
|
+
tmp_0 = this.i57_1;
|
|
362
360
|
}
|
|
363
361
|
|
|
364
|
-
|
|
365
|
-
var
|
|
366
|
-
var
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
var element_1 = _iterator__ex2g4s_1.r();
|
|
371
|
-
var tmp0_0 = this.o5i_1;
|
|
362
|
+
var requestRegistrations = tmp_0;
|
|
363
|
+
var tmp0_elvis_lhs = this.l57_1.f3d_1.c2m(HttpHeaders_getInstance().k2t_1);
|
|
364
|
+
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
365
|
+
var _iterator__ex2g4s_1 = requestRegistrations.r();
|
|
366
|
+
while (_iterator__ex2g4s_1.s()) {
|
|
367
|
+
var element_1 = _iterator__ex2g4s_1.t();
|
|
372
368
|
var tmp$ret$2;
|
|
373
369
|
l$ret$3: do {
|
|
374
|
-
var
|
|
375
|
-
if (isInterface(
|
|
376
|
-
|
|
370
|
+
var tmp_2;
|
|
371
|
+
if (isInterface(acceptHeaders, Collection)) {
|
|
372
|
+
tmp_2 = acceptHeaders.j();
|
|
377
373
|
} else {
|
|
378
|
-
|
|
374
|
+
tmp_2 = false;
|
|
379
375
|
}
|
|
380
|
-
if (
|
|
376
|
+
if (tmp_2) {
|
|
381
377
|
tmp$ret$2 = true;
|
|
382
378
|
break l$ret$3;
|
|
383
379
|
}
|
|
384
|
-
var _iterator__ex2g4s_2 =
|
|
385
|
-
while (_iterator__ex2g4s_2.
|
|
386
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
387
|
-
if (Companion_getInstance().
|
|
380
|
+
var _iterator__ex2g4s_2 = acceptHeaders.r();
|
|
381
|
+
while (_iterator__ex2g4s_2.s()) {
|
|
382
|
+
var element_2 = _iterator__ex2g4s_2.t();
|
|
383
|
+
if (Companion_getInstance().hm(element_2).e2t(element_1.s56_1)) {
|
|
388
384
|
tmp$ret$2 = false;
|
|
389
385
|
break l$ret$3;
|
|
390
386
|
}
|
|
@@ -393,35 +389,35 @@
|
|
|
393
389
|
}
|
|
394
390
|
while (false);
|
|
395
391
|
if (tmp$ret$2) {
|
|
396
|
-
var qValue = this.
|
|
397
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
398
|
-
get_LOGGER().
|
|
399
|
-
accept(this.
|
|
392
|
+
var qValue = this.j57_1.g3l_1.y56_1;
|
|
393
|
+
var contentTypeToSend = qValue == null ? element_1.s56_1 : element_1.s56_1.c2t('q', qValue.toString());
|
|
394
|
+
get_LOGGER().s2q('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.l57_1.d3d_1.toString());
|
|
395
|
+
accept(this.l57_1, contentTypeToSend);
|
|
400
396
|
}
|
|
401
397
|
}
|
|
402
398
|
|
|
403
|
-
var
|
|
404
|
-
var
|
|
405
|
-
if (
|
|
406
|
-
|
|
399
|
+
var tmp_3;
|
|
400
|
+
var tmp_4 = this.m57_1;
|
|
401
|
+
if (tmp_4 instanceof OutgoingContent) {
|
|
402
|
+
tmp_3 = true;
|
|
407
403
|
} else {
|
|
408
|
-
var
|
|
404
|
+
var tmp0_0 = this.k57_1;
|
|
409
405
|
var tmp$ret$4;
|
|
410
406
|
l$ret$5: do {
|
|
411
|
-
var
|
|
412
|
-
if (isInterface(
|
|
413
|
-
|
|
407
|
+
var tmp_5;
|
|
408
|
+
if (isInterface(tmp0_0, Collection)) {
|
|
409
|
+
tmp_5 = tmp0_0.j();
|
|
414
410
|
} else {
|
|
415
|
-
|
|
411
|
+
tmp_5 = false;
|
|
416
412
|
}
|
|
417
|
-
if (
|
|
413
|
+
if (tmp_5) {
|
|
418
414
|
tmp$ret$4 = false;
|
|
419
415
|
break l$ret$5;
|
|
420
416
|
}
|
|
421
|
-
var _iterator__ex2g4s_3 =
|
|
422
|
-
while (_iterator__ex2g4s_3.
|
|
423
|
-
var element_3 = _iterator__ex2g4s_3.
|
|
424
|
-
if (element_3.
|
|
417
|
+
var _iterator__ex2g4s_3 = tmp0_0.r();
|
|
418
|
+
while (_iterator__ex2g4s_3.s()) {
|
|
419
|
+
var element_3 = _iterator__ex2g4s_3.t();
|
|
420
|
+
if (element_3.wa(this.m57_1)) {
|
|
425
421
|
tmp$ret$4 = true;
|
|
426
422
|
break l$ret$5;
|
|
427
423
|
}
|
|
@@ -429,100 +425,97 @@
|
|
|
429
425
|
tmp$ret$4 = false;
|
|
430
426
|
}
|
|
431
427
|
while (false);
|
|
432
|
-
|
|
428
|
+
tmp_3 = tmp$ret$4;
|
|
433
429
|
}
|
|
434
430
|
|
|
435
|
-
if (
|
|
436
|
-
get_LOGGER().
|
|
431
|
+
if (tmp_3) {
|
|
432
|
+
get_LOGGER().s2q('Body type ' + toString(getKClassFromExpression(this.m57_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.l57_1.d3d_1.toString() + '.'));
|
|
437
433
|
return null;
|
|
438
434
|
}
|
|
439
435
|
|
|
440
|
-
var
|
|
441
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
442
|
-
var
|
|
436
|
+
var tmp_6 = this;
|
|
437
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.l57_1);
|
|
438
|
+
var tmp_7;
|
|
443
439
|
if (tmp0_elvis_lhs_0 == null) {
|
|
444
|
-
this.
|
|
445
|
-
get_LOGGER().
|
|
440
|
+
this.j57_1;
|
|
441
|
+
get_LOGGER().s2q("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.l57_1.d3d_1.toString() + '.');
|
|
446
442
|
return null;
|
|
447
443
|
} else {
|
|
448
|
-
|
|
444
|
+
tmp_7 = tmp0_elvis_lhs_0;
|
|
449
445
|
}
|
|
450
446
|
|
|
451
|
-
|
|
452
|
-
var
|
|
453
|
-
if (
|
|
454
|
-
get_LOGGER().
|
|
455
|
-
this.
|
|
447
|
+
tmp_6.o57_1 = tmp_7;
|
|
448
|
+
var tmp_8 = this.m57_1;
|
|
449
|
+
if (tmp_8 instanceof Unit) {
|
|
450
|
+
get_LOGGER().s2q('Sending empty body for ' + this.l57_1.d3d_1.toString());
|
|
451
|
+
this.l57_1.f3d_1.m2m(HttpHeaders_getInstance().c2u_1);
|
|
456
452
|
return EmptyContent_getInstance();
|
|
457
453
|
}
|
|
458
454
|
|
|
459
|
-
var
|
|
460
|
-
var
|
|
455
|
+
var tmp_9 = this;
|
|
456
|
+
var tmp0_1 = this.i57_1;
|
|
461
457
|
var destination_0 = ArrayList_init_$Create$();
|
|
462
|
-
var _iterator__ex2g4s_4 =
|
|
463
|
-
while (_iterator__ex2g4s_4.
|
|
464
|
-
var element_4 = _iterator__ex2g4s_4.
|
|
465
|
-
if (element_4.
|
|
466
|
-
destination_0.
|
|
458
|
+
var _iterator__ex2g4s_4 = tmp0_1.r();
|
|
459
|
+
while (_iterator__ex2g4s_4.s()) {
|
|
460
|
+
var element_4 = _iterator__ex2g4s_4.t();
|
|
461
|
+
if (element_4.t56_1.v56(this.o57_1)) {
|
|
462
|
+
destination_0.p(element_4);
|
|
467
463
|
}
|
|
468
464
|
}
|
|
469
465
|
|
|
470
|
-
var
|
|
471
|
-
if (!destination_0.
|
|
472
|
-
|
|
466
|
+
var tmp_10;
|
|
467
|
+
if (!destination_0.j()) {
|
|
468
|
+
tmp_10 = destination_0;
|
|
473
469
|
} else {
|
|
474
|
-
|
|
470
|
+
tmp_10 = null;
|
|
475
471
|
}
|
|
476
472
|
|
|
477
|
-
var tmp1_elvis_lhs =
|
|
478
|
-
var
|
|
473
|
+
var tmp1_elvis_lhs = tmp_10;
|
|
474
|
+
var tmp_11;
|
|
479
475
|
if (tmp1_elvis_lhs == null) {
|
|
480
|
-
this.
|
|
481
|
-
get_LOGGER().
|
|
476
|
+
this.j57_1;
|
|
477
|
+
get_LOGGER().s2q('None of the registered converters match request Content-Type=' + this.o57_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.l57_1.d3d_1.toString() + '.'));
|
|
482
478
|
return null;
|
|
483
479
|
} else {
|
|
484
|
-
|
|
480
|
+
tmp_11 = tmp1_elvis_lhs;
|
|
485
481
|
}
|
|
486
482
|
|
|
487
|
-
|
|
488
|
-
if (this.
|
|
489
|
-
get_LOGGER().
|
|
483
|
+
tmp_9.n57_1 = tmp_11;
|
|
484
|
+
if (this.l57_1.v44() == null) {
|
|
485
|
+
get_LOGGER().s2q('Request has unknown body type. Skipping ContentNegotiation for ' + this.l57_1.d3d_1.toString() + '.');
|
|
490
486
|
return null;
|
|
491
487
|
}
|
|
492
488
|
|
|
493
|
-
this.
|
|
494
|
-
var
|
|
495
|
-
|
|
496
|
-
this.
|
|
489
|
+
this.l57_1.f3d_1.m2m(HttpHeaders_getInstance().c2u_1);
|
|
490
|
+
var tmp_12 = this;
|
|
491
|
+
tmp_12.s57_1 = this.n57_1;
|
|
492
|
+
this.u8_1 = 1;
|
|
497
493
|
continue $sm;
|
|
498
494
|
case 1:
|
|
499
|
-
this.
|
|
500
|
-
this.
|
|
501
|
-
this.n9_1 = 2;
|
|
495
|
+
this.r57_1 = this.s57_1.r();
|
|
496
|
+
this.u8_1 = 2;
|
|
502
497
|
continue $sm;
|
|
503
498
|
case 2:
|
|
504
|
-
if (!this.
|
|
505
|
-
this.
|
|
499
|
+
if (!this.r57_1.s()) {
|
|
500
|
+
this.u8_1 = 5;
|
|
506
501
|
continue $sm;
|
|
507
502
|
}
|
|
508
503
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
var
|
|
515
|
-
var
|
|
516
|
-
var
|
|
517
|
-
var this_0 = this.m5i_1;
|
|
518
|
-
var tmp_18;
|
|
504
|
+
var element_5 = this.r57_1.t();
|
|
505
|
+
this.q57_1 = element_5;
|
|
506
|
+
this.u8_1 = 3;
|
|
507
|
+
var tmp0_elvis_lhs_1 = charset(this.o57_1);
|
|
508
|
+
var tmp_13 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().d1w_1 : tmp0_elvis_lhs_1;
|
|
509
|
+
var tmp_14 = ensureNotNull(this.l57_1.v44());
|
|
510
|
+
var this_0 = this.m57_1;
|
|
511
|
+
var tmp_15;
|
|
519
512
|
if (!equals(this_0, NullBody_instance)) {
|
|
520
|
-
|
|
513
|
+
tmp_15 = this_0;
|
|
521
514
|
} else {
|
|
522
|
-
|
|
515
|
+
tmp_15 = null;
|
|
523
516
|
}
|
|
524
517
|
|
|
525
|
-
suspendResult = this.
|
|
518
|
+
suspendResult = this.q57_1.r56_1.p59(this.o57_1, tmp_13, tmp_14, tmp_15, this);
|
|
526
519
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
527
520
|
return suspendResult;
|
|
528
521
|
}
|
|
@@ -531,125 +524,124 @@
|
|
|
531
524
|
case 3:
|
|
532
525
|
var result = suspendResult;
|
|
533
526
|
if (!(result == null)) {
|
|
534
|
-
get_LOGGER().
|
|
527
|
+
get_LOGGER().s2q('Converted request body using ' + toString(this.q57_1.r56_1) + ' for ' + this.l57_1.d3d_1.toString());
|
|
535
528
|
}
|
|
536
529
|
|
|
537
530
|
var result_0 = result;
|
|
538
531
|
if (!(result_0 == null)) {
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
532
|
+
this.p57_1 = result_0;
|
|
533
|
+
this.u8_1 = 6;
|
|
541
534
|
continue $sm;
|
|
542
535
|
} else {
|
|
543
|
-
this.
|
|
536
|
+
this.u8_1 = 4;
|
|
544
537
|
continue $sm;
|
|
545
538
|
}
|
|
546
539
|
|
|
547
540
|
case 4:
|
|
548
|
-
this.
|
|
541
|
+
this.u8_1 = 2;
|
|
549
542
|
continue $sm;
|
|
550
543
|
case 5:
|
|
551
|
-
this.
|
|
544
|
+
this.p57_1 = null;
|
|
552
545
|
if (false) {
|
|
553
|
-
this.
|
|
546
|
+
this.u8_1 = 1;
|
|
554
547
|
continue $sm;
|
|
555
548
|
}
|
|
556
549
|
|
|
557
|
-
this.
|
|
550
|
+
this.u8_1 = 6;
|
|
558
551
|
continue $sm;
|
|
559
552
|
case 6:
|
|
560
|
-
var tmp2_elvis_lhs = this.
|
|
561
|
-
var
|
|
553
|
+
var tmp2_elvis_lhs = this.p57_1;
|
|
554
|
+
var tmp_16;
|
|
562
555
|
if (tmp2_elvis_lhs == null) {
|
|
563
|
-
var
|
|
564
|
-
throw new ContentConverterException(
|
|
556
|
+
var tmp_17 = "Can't convert " + toString(this.m57_1) + ' with contentType ' + this.o57_1.toString() + ' using converters ';
|
|
557
|
+
throw new ContentConverterException(tmp_17 + joinToString(this.n57_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
565
558
|
} else {
|
|
566
|
-
|
|
559
|
+
tmp_16 = tmp2_elvis_lhs;
|
|
567
560
|
}
|
|
568
561
|
|
|
569
|
-
var serializedContent =
|
|
562
|
+
var serializedContent = tmp_16;
|
|
570
563
|
return serializedContent;
|
|
571
564
|
case 7:
|
|
572
|
-
throw this.
|
|
565
|
+
throw this.x8_1;
|
|
573
566
|
}
|
|
574
567
|
} catch ($p) {
|
|
575
568
|
var e = $p;
|
|
576
|
-
if (this.
|
|
569
|
+
if (this.v8_1 === 7) {
|
|
577
570
|
throw e;
|
|
578
571
|
} else {
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
572
|
+
this.u8_1 = this.v8_1;
|
|
573
|
+
this.x8_1 = e;
|
|
581
574
|
}
|
|
582
575
|
}
|
|
583
576
|
while (true);
|
|
584
577
|
};
|
|
585
578
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
586
579
|
CoroutineImpl.call(this, resultContinuation);
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
580
|
+
this.b58_1 = ignoredTypes;
|
|
581
|
+
this.c58_1 = registrations;
|
|
582
|
+
this.d58_1 = $this_createClientPlugin;
|
|
583
|
+
this.e58_1 = requestUrl;
|
|
584
|
+
this.f58_1 = info;
|
|
585
|
+
this.g58_1 = body;
|
|
586
|
+
this.h58_1 = responseContentType;
|
|
587
|
+
this.i58_1 = charset;
|
|
595
588
|
}
|
|
596
|
-
protoOf($invoke$convertResponseCOROUTINE$).
|
|
597
|
-
var suspendResult = this.
|
|
589
|
+
protoOf($invoke$convertResponseCOROUTINE$).c9 = function () {
|
|
590
|
+
var suspendResult = this.w8_1;
|
|
598
591
|
$sm: do
|
|
599
592
|
try {
|
|
600
|
-
var tmp = this.
|
|
593
|
+
var tmp = this.u8_1;
|
|
601
594
|
switch (tmp) {
|
|
602
595
|
case 0:
|
|
603
|
-
this.
|
|
604
|
-
var tmp_0 = this.
|
|
596
|
+
this.v8_1 = 2;
|
|
597
|
+
var tmp_0 = this.g58_1;
|
|
605
598
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
606
|
-
get_LOGGER().
|
|
599
|
+
get_LOGGER().s2q('Response body is already transformed. Skipping ContentNegotiation for ' + this.e58_1.toString() + '.');
|
|
607
600
|
return null;
|
|
608
601
|
}
|
|
609
602
|
|
|
610
|
-
if (this.
|
|
611
|
-
get_LOGGER().
|
|
603
|
+
if (this.b58_1.u1(this.f58_1.b2q_1)) {
|
|
604
|
+
get_LOGGER().s2q('Response body type ' + toString(this.f58_1.b2q_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.e58_1.toString() + '.'));
|
|
612
605
|
return null;
|
|
613
606
|
}
|
|
614
607
|
|
|
615
|
-
var
|
|
616
|
-
var tmp0 = this.h5j_1;
|
|
608
|
+
var tmp0 = this.c58_1;
|
|
617
609
|
var destination = ArrayList_init_$Create$();
|
|
618
|
-
var _iterator__ex2g4s = tmp0.
|
|
619
|
-
while (_iterator__ex2g4s.
|
|
620
|
-
var element = _iterator__ex2g4s.
|
|
621
|
-
if (element.
|
|
622
|
-
destination.
|
|
610
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
611
|
+
while (_iterator__ex2g4s.s()) {
|
|
612
|
+
var element = _iterator__ex2g4s.t();
|
|
613
|
+
if (element.t56_1.v56(this.h58_1)) {
|
|
614
|
+
destination.p(element);
|
|
623
615
|
}
|
|
624
616
|
}
|
|
625
617
|
|
|
626
618
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
627
|
-
var _iterator__ex2g4s_0 = destination.
|
|
628
|
-
while (_iterator__ex2g4s_0.
|
|
629
|
-
var item = _iterator__ex2g4s_0.
|
|
630
|
-
destination_0.
|
|
619
|
+
var _iterator__ex2g4s_0 = destination.r();
|
|
620
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
621
|
+
var item = _iterator__ex2g4s_0.t();
|
|
622
|
+
destination_0.p(item.r56_1);
|
|
631
623
|
}
|
|
632
624
|
|
|
633
|
-
var
|
|
634
|
-
if (!destination_0.
|
|
635
|
-
|
|
625
|
+
var tmp_1;
|
|
626
|
+
if (!destination_0.j()) {
|
|
627
|
+
tmp_1 = destination_0;
|
|
636
628
|
} else {
|
|
637
|
-
|
|
629
|
+
tmp_1 = null;
|
|
638
630
|
}
|
|
639
631
|
|
|
640
|
-
var tmp0_elvis_lhs =
|
|
641
|
-
var
|
|
632
|
+
var tmp0_elvis_lhs = tmp_1;
|
|
633
|
+
var tmp_2;
|
|
642
634
|
if (tmp0_elvis_lhs == null) {
|
|
643
|
-
this.
|
|
644
|
-
get_LOGGER().
|
|
635
|
+
this.d58_1;
|
|
636
|
+
get_LOGGER().s2q('None of the registered converters match response with Content-Type=' + this.h58_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.e58_1.toString() + '.'));
|
|
645
637
|
return null;
|
|
646
638
|
} else {
|
|
647
|
-
|
|
639
|
+
tmp_2 = tmp0_elvis_lhs;
|
|
648
640
|
}
|
|
649
641
|
|
|
650
|
-
|
|
651
|
-
this.
|
|
652
|
-
suspendResult = deserialize(
|
|
642
|
+
var suitableConverters = tmp_2;
|
|
643
|
+
this.u8_1 = 1;
|
|
644
|
+
suspendResult = deserialize(suitableConverters, this.g58_1, this.f58_1, this.i58_1, this);
|
|
653
645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
654
646
|
return suspendResult;
|
|
655
647
|
}
|
|
@@ -658,20 +650,20 @@
|
|
|
658
650
|
case 1:
|
|
659
651
|
var result = suspendResult;
|
|
660
652
|
if (!isInterface(result, ByteReadChannel)) {
|
|
661
|
-
get_LOGGER().
|
|
653
|
+
get_LOGGER().s2q('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.e58_1.toString() + '.');
|
|
662
654
|
}
|
|
663
655
|
|
|
664
656
|
return result;
|
|
665
657
|
case 2:
|
|
666
|
-
throw this.
|
|
658
|
+
throw this.x8_1;
|
|
667
659
|
}
|
|
668
660
|
} catch ($p) {
|
|
669
661
|
var e = $p;
|
|
670
|
-
if (this.
|
|
662
|
+
if (this.v8_1 === 2) {
|
|
671
663
|
throw e;
|
|
672
664
|
} else {
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
665
|
+
this.u8_1 = this.v8_1;
|
|
666
|
+
this.x8_1 = e;
|
|
675
667
|
}
|
|
676
668
|
}
|
|
677
669
|
while (true);
|
|
@@ -681,7 +673,7 @@
|
|
|
681
673
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
682
674
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
683
675
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
684
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
676
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().gc(), PrimitiveClasses_getInstance().cc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
685
677
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
686
678
|
var name = 'ExcludedContentTypesAttr';
|
|
687
679
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -709,12 +701,12 @@
|
|
|
709
701
|
}
|
|
710
702
|
function JsonContentTypeMatcher() {
|
|
711
703
|
}
|
|
712
|
-
protoOf(JsonContentTypeMatcher).
|
|
713
|
-
if (contentType.
|
|
704
|
+
protoOf(JsonContentTypeMatcher).v56 = function (contentType) {
|
|
705
|
+
if (contentType.e2t(Application_getInstance().k2r_1)) {
|
|
714
706
|
return true;
|
|
715
707
|
}
|
|
716
|
-
var value = contentType.
|
|
717
|
-
return Application_getInstance().
|
|
708
|
+
var value = contentType.d2t().toString();
|
|
709
|
+
return Application_getInstance().e2s(value) && endsWith(value, '+json', true);
|
|
718
710
|
};
|
|
719
711
|
var JsonContentTypeMatcher_instance;
|
|
720
712
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -734,7 +726,7 @@
|
|
|
734
726
|
}
|
|
735
727
|
}
|
|
736
728
|
//region block: post-declaration
|
|
737
|
-
protoOf(ContentNegotiationConfig).
|
|
729
|
+
protoOf(ContentNegotiationConfig).z54 = register$default;
|
|
738
730
|
//endregion
|
|
739
731
|
//region block: init
|
|
740
732
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|