@doordeck/doordeck-headless-sdk 0.185.0 → 0.186.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 +60 -60
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +43 -43
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +798 -674
- package/kotlin/doordeck-sdk.js +12518 -12528
- package/kotlin/kotlin-kotlin-stdlib.js +3965 -3522
- package/kotlin/kotlinx-atomicfu.js +22 -22
- package/kotlin/kotlinx-coroutines-core.js +2333 -2338
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +59 -59
- package/kotlin/kotlinx-io-kotlinx-io-core.js +532 -532
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1980 -1979
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1589 -1589
- package/kotlin/ktor-ktor-client-auth.js +471 -473
- package/kotlin/ktor-ktor-client-content-negotiation.js +244 -245
- package/kotlin/ktor-ktor-client-core.js +3207 -3212
- package/kotlin/ktor-ktor-client-logging.js +1319 -1319
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +575 -575
- package/kotlin/ktor-ktor-http.js +950 -950
- package/kotlin/ktor-ktor-io.js +1120 -1124
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +272 -272
- package/kotlin/ktor-ktor-serialization.js +122 -122
- package/kotlin/ktor-ktor-utils.js +977 -977
- package/kotlin/ktor-ktor-websockets.js +61 -61
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
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.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.cc;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.eb;
|
|
6
6
|
var plus = kotlin_kotlin.$_$.q7;
|
|
7
7
|
var toMutableSet = kotlin_kotlin.$_$.m8;
|
|
8
8
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
@@ -11,60 +11,60 @@
|
|
|
11
11
|
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
12
12
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
13
13
|
var VOID = kotlin_kotlin.$_$.b;
|
|
14
|
-
var Exception = kotlin_kotlin.$_$.
|
|
14
|
+
var Exception = kotlin_kotlin.$_$.tf;
|
|
15
15
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
16
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
16
|
+
var captureStack = kotlin_kotlin.$_$.oa;
|
|
17
|
+
var toString = kotlin_kotlin.$_$.fc;
|
|
17
18
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
18
19
|
var CoroutineImpl = kotlin_kotlin.$_$.j9;
|
|
19
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.bg;
|
|
20
21
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
21
22
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
22
23
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
23
24
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
|
|
24
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
25
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.jb;
|
|
25
26
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
26
27
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
27
28
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
28
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
29
|
+
var isInterface = kotlin_kotlin.$_$.tb;
|
|
29
30
|
var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
30
31
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
31
32
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
32
|
-
var toString = kotlin_kotlin.$_$.dc;
|
|
33
33
|
var Collection = kotlin_kotlin.$_$.d5;
|
|
34
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
35
35
|
var emptyList = kotlin_kotlin.$_$.q6;
|
|
36
36
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
37
37
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
38
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
39
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
39
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.sc;
|
|
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.$_$.mg;
|
|
43
43
|
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
44
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
44
|
+
var ensureNotNull = kotlin_kotlin.$_$.tg;
|
|
45
45
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
46
|
-
var equals = kotlin_kotlin.$_$.
|
|
46
|
+
var equals = kotlin_kotlin.$_$.xa;
|
|
47
47
|
var joinToString = kotlin_kotlin.$_$.f7;
|
|
48
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
48
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.gb;
|
|
49
49
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.w5;
|
|
50
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
53
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.p4;
|
|
54
54
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.a1;
|
|
55
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
55
|
+
var getKClass = kotlin_kotlin.$_$.tc;
|
|
56
56
|
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
57
57
|
var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
58
58
|
var setOf = kotlin_kotlin.$_$.y7;
|
|
59
59
|
var KtList = kotlin_kotlin.$_$.i5;
|
|
60
60
|
var ContentType = kotlin_io_ktor_ktor_http.$_$.y;
|
|
61
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
62
|
-
var createKType = kotlin_kotlin.$_$.
|
|
63
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
61
|
+
var arrayOf = kotlin_kotlin.$_$.pg;
|
|
62
|
+
var createKType = kotlin_kotlin.$_$.rc;
|
|
63
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.pc;
|
|
64
64
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
65
65
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
66
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
67
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
66
|
+
var endsWith = kotlin_kotlin.$_$.ld;
|
|
67
|
+
var initMetadataForObject = kotlin_kotlin.$_$.kb;
|
|
68
68
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
69
69
|
//endregion
|
|
70
70
|
//region block: pre-declaration
|
|
@@ -99,35 +99,35 @@
|
|
|
99
99
|
}
|
|
100
100
|
var ContentNegotiation;
|
|
101
101
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
104
|
-
this.
|
|
102
|
+
this.y59_1 = converter;
|
|
103
|
+
this.z59_1 = contentTypeToSend;
|
|
104
|
+
this.a5a_1 = contentTypeMatcher;
|
|
105
105
|
}
|
|
106
106
|
function defaultMatcher($this, pattern) {
|
|
107
107
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
108
108
|
}
|
|
109
109
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
110
|
-
this.
|
|
110
|
+
this.b5a_1 = $pattern;
|
|
111
111
|
}
|
|
112
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
113
|
-
return contentType.
|
|
112
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).c5a = function (contentType) {
|
|
113
|
+
return contentType.u2s(this.b5a_1);
|
|
114
114
|
};
|
|
115
115
|
function ContentNegotiationConfig() {
|
|
116
|
-
this.
|
|
116
|
+
this.d5a_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
117
117
|
var tmp = this;
|
|
118
118
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
119
|
-
tmp.
|
|
120
|
-
this.
|
|
119
|
+
tmp.e5a_1 = ArrayList_init_$Create$();
|
|
120
|
+
this.f5a_1 = null;
|
|
121
121
|
}
|
|
122
|
-
protoOf(ContentNegotiationConfig).
|
|
123
|
-
var matcher = contentType.
|
|
124
|
-
this.
|
|
122
|
+
protoOf(ContentNegotiationConfig).b3b = function (contentType, converter, configuration) {
|
|
123
|
+
var matcher = contentType.u2s(Application_getInstance().a2r_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
124
|
+
this.g5a(contentType, converter, matcher, configuration);
|
|
125
125
|
};
|
|
126
|
-
protoOf(ContentNegotiationConfig).
|
|
126
|
+
protoOf(ContentNegotiationConfig).g5a = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
127
127
|
// Inline function 'kotlin.apply' call
|
|
128
128
|
configuration(converter);
|
|
129
129
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
130
|
-
this.
|
|
130
|
+
this.e5a_1.j1(registration);
|
|
131
131
|
};
|
|
132
132
|
function ContentConverterException(message) {
|
|
133
133
|
Exception_init_$Init$(message, this);
|
|
@@ -142,53 +142,57 @@
|
|
|
142
142
|
}
|
|
143
143
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
144
144
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
145
|
-
var registrations = $this$createClientPlugin.
|
|
146
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
147
|
-
$this$createClientPlugin.
|
|
148
|
-
$this$createClientPlugin.
|
|
145
|
+
var registrations = $this$createClientPlugin.d3n_1.e5a_1;
|
|
146
|
+
var ignoredTypes = $this$createClientPlugin.d3n_1.d5a_1;
|
|
147
|
+
$this$createClientPlugin.x47(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
148
|
+
$this$createClientPlugin.j3w(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
149
149
|
return Unit_instance;
|
|
150
150
|
}
|
|
151
|
+
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
152
|
+
_init_properties_ContentNegotiation_kt__o183go();
|
|
153
|
+
return toString(it.y59_1);
|
|
154
|
+
}
|
|
151
155
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
152
156
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
153
|
-
tmp.
|
|
154
|
-
tmp.
|
|
155
|
-
return tmp.
|
|
157
|
+
tmp.f9_1 = Unit_instance;
|
|
158
|
+
tmp.g9_1 = null;
|
|
159
|
+
return tmp.l9();
|
|
156
160
|
}
|
|
157
161
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
158
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
162
|
+
charset = charset === VOID ? Charsets_getInstance().t1v_1 : charset;
|
|
159
163
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
160
|
-
tmp.
|
|
161
|
-
tmp.
|
|
162
|
-
return tmp.
|
|
164
|
+
tmp.f9_1 = Unit_instance;
|
|
165
|
+
tmp.g9_1 = null;
|
|
166
|
+
return tmp.l9();
|
|
163
167
|
}
|
|
164
168
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
165
|
-
this.
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
169
|
+
this.y5b_1 = $registrations;
|
|
170
|
+
this.z5b_1 = $this_createClientPlugin;
|
|
171
|
+
this.a5c_1 = $ignoredTypes;
|
|
168
172
|
CoroutineImpl.call(this, resultContinuation);
|
|
169
173
|
}
|
|
170
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
171
|
-
var tmp = this.
|
|
172
|
-
tmp.
|
|
173
|
-
tmp.
|
|
174
|
-
return tmp.
|
|
174
|
+
protoOf(ContentNegotiation$lambda$slambda).f5c = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
175
|
+
var tmp = this.g5c($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
176
|
+
tmp.f9_1 = Unit_instance;
|
|
177
|
+
tmp.g9_1 = null;
|
|
178
|
+
return tmp.l9();
|
|
175
179
|
};
|
|
176
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
180
|
+
protoOf(ContentNegotiation$lambda$slambda).o3x = function (p1, p2, p3, p4, $completion) {
|
|
177
181
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
178
182
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
179
183
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
180
|
-
return this.
|
|
184
|
+
return this.f5c(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
181
185
|
};
|
|
182
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
183
|
-
var suspendResult = this.
|
|
186
|
+
protoOf(ContentNegotiation$lambda$slambda).l9 = function () {
|
|
187
|
+
var suspendResult = this.f9_1;
|
|
184
188
|
$sm: do
|
|
185
189
|
try {
|
|
186
|
-
var tmp = this.
|
|
190
|
+
var tmp = this.d9_1;
|
|
187
191
|
switch (tmp) {
|
|
188
192
|
case 0:
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
191
|
-
suspendResult = invoke$convertRequest(this.
|
|
193
|
+
this.e9_1 = 2;
|
|
194
|
+
this.d9_1 = 1;
|
|
195
|
+
suspendResult = invoke$convertRequest(this.y5b_1, this.z5b_1, this.a5c_1, this.c5c_1, this.d5c_1, this);
|
|
192
196
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
193
197
|
return suspendResult;
|
|
194
198
|
}
|
|
@@ -197,62 +201,62 @@
|
|
|
197
201
|
case 1:
|
|
198
202
|
return suspendResult;
|
|
199
203
|
case 2:
|
|
200
|
-
throw this.
|
|
204
|
+
throw this.g9_1;
|
|
201
205
|
}
|
|
202
206
|
} catch ($p) {
|
|
203
207
|
var e = $p;
|
|
204
|
-
if (this.
|
|
208
|
+
if (this.e9_1 === 2) {
|
|
205
209
|
throw e;
|
|
206
210
|
} else {
|
|
207
|
-
this.
|
|
208
|
-
this.
|
|
211
|
+
this.d9_1 = this.e9_1;
|
|
212
|
+
this.g9_1 = e;
|
|
209
213
|
}
|
|
210
214
|
}
|
|
211
215
|
while (true);
|
|
212
216
|
};
|
|
213
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
214
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
215
|
-
i.
|
|
216
|
-
i.
|
|
217
|
-
i.
|
|
218
|
-
i.
|
|
217
|
+
protoOf(ContentNegotiation$lambda$slambda).g5c = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
218
|
+
var i = new ContentNegotiation$lambda$slambda(this.y5b_1, this.z5b_1, this.a5c_1, completion);
|
|
219
|
+
i.b5c_1 = $this$transformRequestBody;
|
|
220
|
+
i.c5c_1 = request;
|
|
221
|
+
i.d5c_1 = body;
|
|
222
|
+
i.e5c_1 = _unused_var__etf5q3;
|
|
219
223
|
return i;
|
|
220
224
|
};
|
|
221
225
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
222
226
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
223
227
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
224
|
-
return i.
|
|
228
|
+
return i.f5c($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
225
229
|
};
|
|
226
230
|
l.$arity = 4;
|
|
227
231
|
return l;
|
|
228
232
|
}
|
|
229
233
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
234
|
+
this.p5c_1 = $ignoredTypes;
|
|
235
|
+
this.q5c_1 = $registrations;
|
|
236
|
+
this.r5c_1 = $this_createClientPlugin;
|
|
233
237
|
CoroutineImpl.call(this, resultContinuation);
|
|
234
238
|
}
|
|
235
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
236
|
-
var tmp = this.
|
|
237
|
-
tmp.
|
|
238
|
-
tmp.
|
|
239
|
-
return tmp.
|
|
239
|
+
protoOf(ContentNegotiation$lambda$slambda_1).m3x = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
240
|
+
var tmp = this.n3x($this$transformResponseBody, response, body, info, $completion);
|
|
241
|
+
tmp.f9_1 = Unit_instance;
|
|
242
|
+
tmp.g9_1 = null;
|
|
243
|
+
return tmp.l9();
|
|
240
244
|
};
|
|
241
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
245
|
+
protoOf(ContentNegotiation$lambda$slambda_1).o3x = function (p1, p2, p3, p4, $completion) {
|
|
242
246
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
243
247
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
244
248
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
245
|
-
return this.
|
|
249
|
+
return this.m3x(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
246
250
|
};
|
|
247
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
248
|
-
var suspendResult = this.
|
|
251
|
+
protoOf(ContentNegotiation$lambda$slambda_1).l9 = function () {
|
|
252
|
+
var suspendResult = this.f9_1;
|
|
249
253
|
$sm: do
|
|
250
254
|
try {
|
|
251
|
-
var tmp = this.
|
|
255
|
+
var tmp = this.d9_1;
|
|
252
256
|
switch (tmp) {
|
|
253
257
|
case 0:
|
|
254
|
-
this.
|
|
255
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
258
|
+
this.e9_1 = 2;
|
|
259
|
+
var tmp0_elvis_lhs = contentType(this.t5c_1);
|
|
256
260
|
var tmp_0;
|
|
257
261
|
if (tmp0_elvis_lhs == null) {
|
|
258
262
|
return null;
|
|
@@ -261,9 +265,9 @@
|
|
|
261
265
|
}
|
|
262
266
|
|
|
263
267
|
var contentType_0 = tmp_0;
|
|
264
|
-
var charset = suitableCharset(get_request(this.
|
|
265
|
-
this.
|
|
266
|
-
suspendResult = invoke$convertResponse(this.
|
|
268
|
+
var charset = suitableCharset(get_request(this.t5c_1).e2x());
|
|
269
|
+
this.d9_1 = 1;
|
|
270
|
+
suspendResult = invoke$convertResponse(this.p5c_1, this.q5c_1, this.r5c_1, get_request(this.t5c_1).r3g(), this.v5c_1, this.u5c_1, contentType_0, charset, this);
|
|
267
271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
268
272
|
return suspendResult;
|
|
269
273
|
}
|
|
@@ -272,68 +276,64 @@
|
|
|
272
276
|
case 1:
|
|
273
277
|
return suspendResult;
|
|
274
278
|
case 2:
|
|
275
|
-
throw this.
|
|
279
|
+
throw this.g9_1;
|
|
276
280
|
}
|
|
277
281
|
} catch ($p) {
|
|
278
282
|
var e = $p;
|
|
279
|
-
if (this.
|
|
283
|
+
if (this.e9_1 === 2) {
|
|
280
284
|
throw e;
|
|
281
285
|
} else {
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
286
|
+
this.d9_1 = this.e9_1;
|
|
287
|
+
this.g9_1 = e;
|
|
284
288
|
}
|
|
285
289
|
}
|
|
286
290
|
while (true);
|
|
287
291
|
};
|
|
288
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
289
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
290
|
-
i.
|
|
291
|
-
i.
|
|
292
|
-
i.
|
|
293
|
-
i.
|
|
292
|
+
protoOf(ContentNegotiation$lambda$slambda_1).n3x = function ($this$transformResponseBody, response, body, info, completion) {
|
|
293
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.p5c_1, this.q5c_1, this.r5c_1, completion);
|
|
294
|
+
i.s5c_1 = $this$transformResponseBody;
|
|
295
|
+
i.t5c_1 = response;
|
|
296
|
+
i.u5c_1 = body;
|
|
297
|
+
i.v5c_1 = info;
|
|
294
298
|
return i;
|
|
295
299
|
};
|
|
296
300
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
297
301
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
298
302
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
299
|
-
return i.
|
|
303
|
+
return i.m3x($this$transformResponseBody, response, body, info, $completion);
|
|
300
304
|
};
|
|
301
305
|
l.$arity = 4;
|
|
302
306
|
return l;
|
|
303
307
|
}
|
|
304
|
-
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
305
|
-
_init_properties_ContentNegotiation_kt__o183go();
|
|
306
|
-
return toString(it.m5a_1);
|
|
307
|
-
}
|
|
308
308
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
309
309
|
CoroutineImpl.call(this, resultContinuation);
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
310
|
+
this.p5a_1 = registrations;
|
|
311
|
+
this.q5a_1 = $this_createClientPlugin;
|
|
312
|
+
this.r5a_1 = ignoredTypes;
|
|
313
|
+
this.s5a_1 = request;
|
|
314
|
+
this.t5a_1 = body;
|
|
315
315
|
}
|
|
316
|
-
protoOf($invoke$convertRequestCOROUTINE$).
|
|
317
|
-
var suspendResult = this.
|
|
316
|
+
protoOf($invoke$convertRequestCOROUTINE$).l9 = function () {
|
|
317
|
+
var suspendResult = this.f9_1;
|
|
318
318
|
$sm: do
|
|
319
319
|
try {
|
|
320
|
-
var tmp = this.
|
|
320
|
+
var tmp = this.d9_1;
|
|
321
321
|
switch (tmp) {
|
|
322
322
|
case 0:
|
|
323
|
-
this.
|
|
323
|
+
this.e9_1 = 7;
|
|
324
324
|
var tmp_0;
|
|
325
|
-
if (this.
|
|
326
|
-
var excluded = this.
|
|
327
|
-
var tmp0 = this.
|
|
325
|
+
if (this.s5a_1.f3f_1.q2h(get_ExcludedContentTypes())) {
|
|
326
|
+
var excluded = this.s5a_1.f3f_1.o2h(get_ExcludedContentTypes());
|
|
327
|
+
var tmp0 = this.p5a_1;
|
|
328
328
|
var destination = ArrayList_init_$Create$();
|
|
329
|
-
var _iterator__ex2g4s = tmp0.
|
|
330
|
-
while (_iterator__ex2g4s.
|
|
331
|
-
var element = _iterator__ex2g4s.
|
|
329
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
330
|
+
while (_iterator__ex2g4s.u()) {
|
|
331
|
+
var element = _iterator__ex2g4s.v();
|
|
332
332
|
var tmp$ret$0;
|
|
333
333
|
l$ret$1: do {
|
|
334
334
|
var tmp_1;
|
|
335
335
|
if (isInterface(excluded, Collection)) {
|
|
336
|
-
tmp_1 = excluded.
|
|
336
|
+
tmp_1 = excluded.r();
|
|
337
337
|
} else {
|
|
338
338
|
tmp_1 = false;
|
|
339
339
|
}
|
|
@@ -341,10 +341,10 @@
|
|
|
341
341
|
tmp$ret$0 = true;
|
|
342
342
|
break l$ret$1;
|
|
343
343
|
}
|
|
344
|
-
var _iterator__ex2g4s_0 = excluded.
|
|
345
|
-
while (_iterator__ex2g4s_0.
|
|
346
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
347
|
-
if (element.
|
|
344
|
+
var _iterator__ex2g4s_0 = excluded.t();
|
|
345
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
346
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
347
|
+
if (element.z59_1.u2s(element_0)) {
|
|
348
348
|
tmp$ret$0 = false;
|
|
349
349
|
break l$ret$1;
|
|
350
350
|
}
|
|
@@ -353,25 +353,25 @@
|
|
|
353
353
|
}
|
|
354
354
|
while (false);
|
|
355
355
|
if (tmp$ret$0) {
|
|
356
|
-
destination.
|
|
356
|
+
destination.j1(element);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
tmp_0 = destination;
|
|
360
360
|
} else {
|
|
361
|
-
tmp_0 = this.
|
|
361
|
+
tmp_0 = this.p5a_1;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
var requestRegistrations = tmp_0;
|
|
365
|
-
var tmp0_elvis_lhs = this.
|
|
365
|
+
var tmp0_elvis_lhs = this.s5a_1.c3f_1.s2l(HttpHeaders_getInstance().a2t_1);
|
|
366
366
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
367
|
-
var _iterator__ex2g4s_1 = requestRegistrations.
|
|
368
|
-
while (_iterator__ex2g4s_1.
|
|
369
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
367
|
+
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
368
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
369
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
370
370
|
var tmp$ret$2;
|
|
371
371
|
l$ret$3: do {
|
|
372
372
|
var tmp_2;
|
|
373
373
|
if (isInterface(acceptHeaders, Collection)) {
|
|
374
|
-
tmp_2 = acceptHeaders.
|
|
374
|
+
tmp_2 = acceptHeaders.r();
|
|
375
375
|
} else {
|
|
376
376
|
tmp_2 = false;
|
|
377
377
|
}
|
|
@@ -379,10 +379,10 @@
|
|
|
379
379
|
tmp$ret$2 = true;
|
|
380
380
|
break l$ret$3;
|
|
381
381
|
}
|
|
382
|
-
var _iterator__ex2g4s_2 = acceptHeaders.
|
|
383
|
-
while (_iterator__ex2g4s_2.
|
|
384
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
385
|
-
if (Companion_getInstance().
|
|
382
|
+
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
383
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
384
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
385
|
+
if (Companion_getInstance().rl(element_2).u2s(element_1.z59_1)) {
|
|
386
386
|
tmp$ret$2 = false;
|
|
387
387
|
break l$ret$3;
|
|
388
388
|
}
|
|
@@ -391,24 +391,24 @@
|
|
|
391
391
|
}
|
|
392
392
|
while (false);
|
|
393
393
|
if (tmp$ret$2) {
|
|
394
|
-
var qValue = this.
|
|
395
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
396
|
-
get_LOGGER().
|
|
397
|
-
accept(this.
|
|
394
|
+
var qValue = this.q5a_1.d3n_1.f5a_1;
|
|
395
|
+
var contentTypeToSend = qValue == null ? element_1.z59_1 : element_1.z59_1.s2s('q', qValue.toString());
|
|
396
|
+
get_LOGGER().i2q('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.s5a_1.a3f_1.toString());
|
|
397
|
+
accept(this.s5a_1, contentTypeToSend);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
var tmp_3;
|
|
402
|
-
var tmp_4 = this.
|
|
402
|
+
var tmp_4 = this.t5a_1;
|
|
403
403
|
if (tmp_4 instanceof OutgoingContent) {
|
|
404
404
|
tmp_3 = true;
|
|
405
405
|
} else {
|
|
406
|
-
var tmp0_0 = this.
|
|
406
|
+
var tmp0_0 = this.r5a_1;
|
|
407
407
|
var tmp$ret$4;
|
|
408
408
|
l$ret$5: do {
|
|
409
409
|
var tmp_5;
|
|
410
410
|
if (isInterface(tmp0_0, Collection)) {
|
|
411
|
-
tmp_5 = tmp0_0.
|
|
411
|
+
tmp_5 = tmp0_0.r();
|
|
412
412
|
} else {
|
|
413
413
|
tmp_5 = false;
|
|
414
414
|
}
|
|
@@ -416,10 +416,10 @@
|
|
|
416
416
|
tmp$ret$4 = false;
|
|
417
417
|
break l$ret$5;
|
|
418
418
|
}
|
|
419
|
-
var _iterator__ex2g4s_3 = tmp0_0.
|
|
420
|
-
while (_iterator__ex2g4s_3.
|
|
421
|
-
var element_3 = _iterator__ex2g4s_3.
|
|
422
|
-
if (element_3.
|
|
419
|
+
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
420
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
421
|
+
var element_3 = _iterator__ex2g4s_3.v();
|
|
422
|
+
if (element_3.eb(this.t5a_1)) {
|
|
423
423
|
tmp$ret$4 = true;
|
|
424
424
|
break l$ret$5;
|
|
425
425
|
}
|
|
@@ -431,42 +431,42 @@
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
if (tmp_3) {
|
|
434
|
-
get_LOGGER().
|
|
434
|
+
get_LOGGER().i2q('Body type ' + toString(getKClassFromExpression(this.t5a_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.s5a_1.a3f_1.toString() + '.'));
|
|
435
435
|
return null;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
var tmp_6 = this;
|
|
439
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
439
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.s5a_1);
|
|
440
440
|
var tmp_7;
|
|
441
441
|
if (tmp0_elvis_lhs_0 == null) {
|
|
442
|
-
this.
|
|
443
|
-
get_LOGGER().
|
|
442
|
+
this.q5a_1;
|
|
443
|
+
get_LOGGER().i2q("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.s5a_1.a3f_1.toString() + '.');
|
|
444
444
|
return null;
|
|
445
445
|
} else {
|
|
446
446
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
tmp_6.
|
|
450
|
-
var tmp_8 = this.
|
|
449
|
+
tmp_6.v5a_1 = tmp_7;
|
|
450
|
+
var tmp_8 = this.t5a_1;
|
|
451
451
|
if (tmp_8 instanceof Unit) {
|
|
452
|
-
get_LOGGER().
|
|
453
|
-
this.
|
|
452
|
+
get_LOGGER().i2q('Sending empty body for ' + this.s5a_1.a3f_1.toString());
|
|
453
|
+
this.s5a_1.c3f_1.c2m(HttpHeaders_getInstance().s2t_1);
|
|
454
454
|
return EmptyContent_getInstance();
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
var tmp_9 = this;
|
|
458
|
-
var tmp0_1 = this.
|
|
458
|
+
var tmp0_1 = this.p5a_1;
|
|
459
459
|
var destination_0 = ArrayList_init_$Create$();
|
|
460
|
-
var _iterator__ex2g4s_4 = tmp0_1.
|
|
461
|
-
while (_iterator__ex2g4s_4.
|
|
462
|
-
var element_4 = _iterator__ex2g4s_4.
|
|
463
|
-
if (element_4.
|
|
464
|
-
destination_0.
|
|
460
|
+
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
461
|
+
while (_iterator__ex2g4s_4.u()) {
|
|
462
|
+
var element_4 = _iterator__ex2g4s_4.v();
|
|
463
|
+
if (element_4.a5a_1.c5a(this.v5a_1)) {
|
|
464
|
+
destination_0.j1(element_4);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
var tmp_10;
|
|
469
|
-
if (!destination_0.
|
|
469
|
+
if (!destination_0.r()) {
|
|
470
470
|
tmp_10 = destination_0;
|
|
471
471
|
} else {
|
|
472
472
|
tmp_10 = null;
|
|
@@ -475,49 +475,48 @@
|
|
|
475
475
|
var tmp1_elvis_lhs = tmp_10;
|
|
476
476
|
var tmp_11;
|
|
477
477
|
if (tmp1_elvis_lhs == null) {
|
|
478
|
-
this.
|
|
479
|
-
get_LOGGER().
|
|
478
|
+
this.q5a_1;
|
|
479
|
+
get_LOGGER().i2q('None of the registered converters match request Content-Type=' + this.v5a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.s5a_1.a3f_1.toString() + '.'));
|
|
480
480
|
return null;
|
|
481
481
|
} else {
|
|
482
482
|
tmp_11 = tmp1_elvis_lhs;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
tmp_9.
|
|
486
|
-
if (this.
|
|
487
|
-
get_LOGGER().
|
|
485
|
+
tmp_9.u5a_1 = tmp_11;
|
|
486
|
+
if (this.s5a_1.f4a() == null) {
|
|
487
|
+
get_LOGGER().i2q('Request has unknown body type. Skipping ContentNegotiation for ' + this.s5a_1.a3f_1.toString() + '.');
|
|
488
488
|
return null;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
this.
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
this.u8_1 = 1;
|
|
491
|
+
this.s5a_1.c3f_1.c2m(HttpHeaders_getInstance().s2t_1);
|
|
492
|
+
this.z5a_1 = this.u5a_1;
|
|
493
|
+
this.d9_1 = 1;
|
|
495
494
|
continue $sm;
|
|
496
495
|
case 1:
|
|
497
|
-
this.
|
|
498
|
-
this.
|
|
496
|
+
this.y5a_1 = this.z5a_1.t();
|
|
497
|
+
this.d9_1 = 2;
|
|
499
498
|
continue $sm;
|
|
500
499
|
case 2:
|
|
501
|
-
if (!this.
|
|
502
|
-
this.
|
|
500
|
+
if (!this.y5a_1.u()) {
|
|
501
|
+
this.d9_1 = 5;
|
|
503
502
|
continue $sm;
|
|
504
503
|
}
|
|
505
504
|
|
|
506
|
-
var element_5 = this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
509
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
510
|
-
var
|
|
511
|
-
var
|
|
512
|
-
var this_0 = this.
|
|
513
|
-
var
|
|
505
|
+
var element_5 = this.y5a_1.v();
|
|
506
|
+
this.x5a_1 = element_5;
|
|
507
|
+
this.d9_1 = 3;
|
|
508
|
+
var tmp0_elvis_lhs_1 = charset(this.v5a_1);
|
|
509
|
+
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().t1v_1 : tmp0_elvis_lhs_1;
|
|
510
|
+
var tmp_13 = ensureNotNull(this.s5a_1.f4a());
|
|
511
|
+
var this_0 = this.t5a_1;
|
|
512
|
+
var tmp_14;
|
|
514
513
|
if (!equals(this_0, NullBody_instance)) {
|
|
515
|
-
|
|
514
|
+
tmp_14 = this_0;
|
|
516
515
|
} else {
|
|
517
|
-
|
|
516
|
+
tmp_14 = null;
|
|
518
517
|
}
|
|
519
518
|
|
|
520
|
-
suspendResult = this.
|
|
519
|
+
suspendResult = this.x5a_1.y59_1.w5c(this.v5a_1, tmp_12, tmp_13, tmp_14, this);
|
|
521
520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
522
521
|
return suspendResult;
|
|
523
522
|
}
|
|
@@ -526,106 +525,106 @@
|
|
|
526
525
|
case 3:
|
|
527
526
|
var result = suspendResult;
|
|
528
527
|
if (!(result == null)) {
|
|
529
|
-
get_LOGGER().
|
|
528
|
+
get_LOGGER().i2q('Converted request body using ' + toString(this.x5a_1.y59_1) + ' for ' + this.s5a_1.a3f_1.toString());
|
|
530
529
|
}
|
|
531
530
|
|
|
532
531
|
var result_0 = result;
|
|
533
532
|
if (!(result_0 == null)) {
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
533
|
+
this.w5a_1 = result_0;
|
|
534
|
+
this.d9_1 = 6;
|
|
536
535
|
continue $sm;
|
|
537
536
|
} else {
|
|
538
|
-
this.
|
|
537
|
+
this.d9_1 = 4;
|
|
539
538
|
continue $sm;
|
|
540
539
|
}
|
|
541
540
|
|
|
542
541
|
case 4:
|
|
543
|
-
this.
|
|
542
|
+
this.d9_1 = 2;
|
|
544
543
|
continue $sm;
|
|
545
544
|
case 5:
|
|
546
|
-
this.
|
|
545
|
+
this.w5a_1 = null;
|
|
547
546
|
if (false) {
|
|
548
|
-
this.
|
|
547
|
+
this.d9_1 = 1;
|
|
549
548
|
continue $sm;
|
|
550
549
|
}
|
|
551
550
|
|
|
552
|
-
this.
|
|
551
|
+
this.d9_1 = 6;
|
|
553
552
|
continue $sm;
|
|
554
553
|
case 6:
|
|
555
|
-
var tmp2_elvis_lhs = this.
|
|
556
|
-
var
|
|
554
|
+
var tmp2_elvis_lhs = this.w5a_1;
|
|
555
|
+
var tmp_15;
|
|
557
556
|
if (tmp2_elvis_lhs == null) {
|
|
558
|
-
var
|
|
559
|
-
throw new ContentConverterException(
|
|
557
|
+
var tmp_16 = "Can't convert " + toString(this.t5a_1) + ' with contentType ' + this.v5a_1.toString() + ' using converters ';
|
|
558
|
+
throw new ContentConverterException(tmp_16 + joinToString(this.u5a_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
560
559
|
} else {
|
|
561
|
-
|
|
560
|
+
tmp_15 = tmp2_elvis_lhs;
|
|
562
561
|
}
|
|
563
562
|
|
|
564
|
-
var serializedContent =
|
|
563
|
+
var serializedContent = tmp_15;
|
|
565
564
|
return serializedContent;
|
|
566
565
|
case 7:
|
|
567
|
-
throw this.
|
|
566
|
+
throw this.g9_1;
|
|
568
567
|
}
|
|
569
568
|
} catch ($p) {
|
|
570
569
|
var e = $p;
|
|
571
|
-
if (this.
|
|
570
|
+
if (this.e9_1 === 7) {
|
|
572
571
|
throw e;
|
|
573
572
|
} else {
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
573
|
+
this.d9_1 = this.e9_1;
|
|
574
|
+
this.g9_1 = e;
|
|
576
575
|
}
|
|
577
576
|
}
|
|
578
577
|
while (true);
|
|
579
578
|
};
|
|
580
579
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
581
580
|
CoroutineImpl.call(this, resultContinuation);
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
581
|
+
this.i5b_1 = ignoredTypes;
|
|
582
|
+
this.j5b_1 = registrations;
|
|
583
|
+
this.k5b_1 = $this_createClientPlugin;
|
|
584
|
+
this.l5b_1 = requestUrl;
|
|
585
|
+
this.m5b_1 = info;
|
|
586
|
+
this.n5b_1 = body;
|
|
587
|
+
this.o5b_1 = responseContentType;
|
|
588
|
+
this.p5b_1 = charset;
|
|
590
589
|
}
|
|
591
|
-
protoOf($invoke$convertResponseCOROUTINE$).
|
|
592
|
-
var suspendResult = this.
|
|
590
|
+
protoOf($invoke$convertResponseCOROUTINE$).l9 = function () {
|
|
591
|
+
var suspendResult = this.f9_1;
|
|
593
592
|
$sm: do
|
|
594
593
|
try {
|
|
595
|
-
var tmp = this.
|
|
594
|
+
var tmp = this.d9_1;
|
|
596
595
|
switch (tmp) {
|
|
597
596
|
case 0:
|
|
598
|
-
this.
|
|
599
|
-
var tmp_0 = this.
|
|
597
|
+
this.e9_1 = 2;
|
|
598
|
+
var tmp_0 = this.n5b_1;
|
|
600
599
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
601
|
-
get_LOGGER().
|
|
600
|
+
get_LOGGER().i2q('Response body is already transformed. Skipping ContentNegotiation for ' + this.l5b_1.toString() + '.');
|
|
602
601
|
return null;
|
|
603
602
|
}
|
|
604
603
|
|
|
605
|
-
if (this.
|
|
606
|
-
get_LOGGER().
|
|
604
|
+
if (this.i5b_1.m2(this.m5b_1.r2p_1)) {
|
|
605
|
+
get_LOGGER().i2q('Response body type ' + toString(this.m5b_1.r2p_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.l5b_1.toString() + '.'));
|
|
607
606
|
return null;
|
|
608
607
|
}
|
|
609
608
|
|
|
610
|
-
var tmp0 = this.
|
|
609
|
+
var tmp0 = this.j5b_1;
|
|
611
610
|
var destination = ArrayList_init_$Create$();
|
|
612
|
-
var _iterator__ex2g4s = tmp0.
|
|
613
|
-
while (_iterator__ex2g4s.
|
|
614
|
-
var element = _iterator__ex2g4s.
|
|
615
|
-
if (element.
|
|
616
|
-
destination.
|
|
611
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
612
|
+
while (_iterator__ex2g4s.u()) {
|
|
613
|
+
var element = _iterator__ex2g4s.v();
|
|
614
|
+
if (element.a5a_1.c5a(this.o5b_1)) {
|
|
615
|
+
destination.j1(element);
|
|
617
616
|
}
|
|
618
617
|
}
|
|
619
618
|
|
|
620
619
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
621
|
-
var _iterator__ex2g4s_0 = destination.
|
|
622
|
-
while (_iterator__ex2g4s_0.
|
|
623
|
-
var item = _iterator__ex2g4s_0.
|
|
624
|
-
destination_0.
|
|
620
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
621
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
622
|
+
var item = _iterator__ex2g4s_0.v();
|
|
623
|
+
destination_0.j1(item.y59_1);
|
|
625
624
|
}
|
|
626
625
|
|
|
627
626
|
var tmp_1;
|
|
628
|
-
if (!destination_0.
|
|
627
|
+
if (!destination_0.r()) {
|
|
629
628
|
tmp_1 = destination_0;
|
|
630
629
|
} else {
|
|
631
630
|
tmp_1 = null;
|
|
@@ -634,16 +633,16 @@
|
|
|
634
633
|
var tmp0_elvis_lhs = tmp_1;
|
|
635
634
|
var tmp_2;
|
|
636
635
|
if (tmp0_elvis_lhs == null) {
|
|
637
|
-
this.
|
|
638
|
-
get_LOGGER().
|
|
636
|
+
this.k5b_1;
|
|
637
|
+
get_LOGGER().i2q('None of the registered converters match response with Content-Type=' + this.o5b_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.l5b_1.toString() + '.'));
|
|
639
638
|
return null;
|
|
640
639
|
} else {
|
|
641
640
|
tmp_2 = tmp0_elvis_lhs;
|
|
642
641
|
}
|
|
643
642
|
|
|
644
643
|
var suitableConverters = tmp_2;
|
|
645
|
-
this.
|
|
646
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
644
|
+
this.d9_1 = 1;
|
|
645
|
+
suspendResult = deserialize(suitableConverters, this.n5b_1, this.m5b_1, this.p5b_1, this);
|
|
647
646
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
648
647
|
return suspendResult;
|
|
649
648
|
}
|
|
@@ -652,20 +651,20 @@
|
|
|
652
651
|
case 1:
|
|
653
652
|
var result = suspendResult;
|
|
654
653
|
if (!isInterface(result, ByteReadChannel)) {
|
|
655
|
-
get_LOGGER().
|
|
654
|
+
get_LOGGER().i2q('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.l5b_1.toString() + '.');
|
|
656
655
|
}
|
|
657
656
|
|
|
658
657
|
return result;
|
|
659
658
|
case 2:
|
|
660
|
-
throw this.
|
|
659
|
+
throw this.g9_1;
|
|
661
660
|
}
|
|
662
661
|
} catch ($p) {
|
|
663
662
|
var e = $p;
|
|
664
|
-
if (this.
|
|
663
|
+
if (this.e9_1 === 2) {
|
|
665
664
|
throw e;
|
|
666
665
|
} else {
|
|
667
|
-
this.
|
|
668
|
-
this.
|
|
666
|
+
this.d9_1 = this.e9_1;
|
|
667
|
+
this.g9_1 = e;
|
|
669
668
|
}
|
|
670
669
|
}
|
|
671
670
|
while (true);
|
|
@@ -675,7 +674,7 @@
|
|
|
675
674
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
676
675
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
677
676
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
678
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
677
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().ic(), PrimitiveClasses_getInstance().ec(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
|
|
679
678
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
680
679
|
var name = 'ExcludedContentTypesAttr';
|
|
681
680
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -703,12 +702,12 @@
|
|
|
703
702
|
}
|
|
704
703
|
function JsonContentTypeMatcher() {
|
|
705
704
|
}
|
|
706
|
-
protoOf(JsonContentTypeMatcher).
|
|
707
|
-
if (contentType.
|
|
705
|
+
protoOf(JsonContentTypeMatcher).c5a = function (contentType) {
|
|
706
|
+
if (contentType.u2s(Application_getInstance().a2r_1)) {
|
|
708
707
|
return true;
|
|
709
708
|
}
|
|
710
|
-
var value = contentType.
|
|
711
|
-
return Application_getInstance().
|
|
709
|
+
var value = contentType.t2s().toString();
|
|
710
|
+
return Application_getInstance().u2r(value) && endsWith(value, '+json', true);
|
|
712
711
|
};
|
|
713
712
|
var JsonContentTypeMatcher_instance;
|
|
714
713
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -728,7 +727,7 @@
|
|
|
728
727
|
}
|
|
729
728
|
}
|
|
730
729
|
//region block: post-declaration
|
|
731
|
-
protoOf(ContentNegotiationConfig).
|
|
730
|
+
protoOf(ContentNegotiationConfig).c3b = register$default;
|
|
732
731
|
//endregion
|
|
733
732
|
//region block: init
|
|
734
733
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|