@doordeck/doordeck-headless-sdk 0.200.0 → 0.202.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 +26 -0
- package/kotlin/doordeck-sdk.js +13201 -12566
- package/kotlin/kotlin-kotlin-stdlib.js +2784 -2211
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2831 -2753
- 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,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.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.gc;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
6
|
+
var plus = kotlin_kotlin.$_$.x7;
|
|
7
|
+
var toMutableSet = kotlin_kotlin.$_$.t8;
|
|
8
8
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
9
9
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
10
10
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
11
11
|
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
12
12
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
13
13
|
var VOID = kotlin_kotlin.$_$.c;
|
|
14
|
-
var Exception = kotlin_kotlin.$_$.
|
|
15
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
16
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
17
|
-
var toString = kotlin_kotlin.$_$.
|
|
14
|
+
var Exception = kotlin_kotlin.$_$.ag;
|
|
15
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.j2;
|
|
16
|
+
var captureStack = kotlin_kotlin.$_$.sa;
|
|
17
|
+
var toString = kotlin_kotlin.$_$.jc;
|
|
18
18
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
19
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
20
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
19
|
+
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.hg;
|
|
21
21
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
22
22
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
23
|
-
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.
|
|
24
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
25
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
23
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
24
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
25
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ob;
|
|
26
26
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
27
27
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
28
28
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.n1;
|
|
29
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
29
|
+
var isInterface = kotlin_kotlin.$_$.yb;
|
|
30
30
|
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
31
31
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
|
|
32
32
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
33
|
-
var Collection = kotlin_kotlin.$_$.
|
|
34
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
33
|
+
var Collection = kotlin_kotlin.$_$.i5;
|
|
34
|
+
var emptyList = kotlin_kotlin.$_$.w6;
|
|
35
35
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
36
36
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.f1;
|
|
37
37
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
38
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
38
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.xc;
|
|
39
39
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
40
40
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
41
|
-
var Unit = kotlin_kotlin.$_$.
|
|
41
|
+
var Unit = kotlin_kotlin.$_$.sg;
|
|
42
42
|
var charset = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
43
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
43
|
+
var ensureNotNull = kotlin_kotlin.$_$.zg;
|
|
44
44
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
45
|
-
var equals = kotlin_kotlin.$_$.
|
|
46
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
48
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
45
|
+
var equals = kotlin_kotlin.$_$.bb;
|
|
46
|
+
var joinToString = kotlin_kotlin.$_$.m7;
|
|
47
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
|
|
48
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
|
|
49
49
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
|
|
50
50
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
51
|
-
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.
|
|
51
|
+
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
52
52
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.o;
|
|
53
53
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
54
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
54
|
+
var getKClass = kotlin_kotlin.$_$.yc;
|
|
55
55
|
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
56
56
|
var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
57
|
-
var setOf = kotlin_kotlin.$_$.
|
|
58
|
-
var KtList = kotlin_kotlin.$_$.
|
|
57
|
+
var setOf = kotlin_kotlin.$_$.f8;
|
|
58
|
+
var KtList = kotlin_kotlin.$_$.n5;
|
|
59
59
|
var ContentType = kotlin_io_ktor_ktor_http.$_$.z;
|
|
60
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
61
|
-
var createKType = kotlin_kotlin.$_$.
|
|
62
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
63
|
-
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.
|
|
60
|
+
var arrayOf = kotlin_kotlin.$_$.vg;
|
|
61
|
+
var createKType = kotlin_kotlin.$_$.wc;
|
|
62
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.uc;
|
|
63
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.q;
|
|
64
64
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
65
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
66
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
65
|
+
var endsWith = kotlin_kotlin.$_$.qd;
|
|
66
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pb;
|
|
67
67
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
68
68
|
//endregion
|
|
69
69
|
//region block: pre-declaration
|
|
@@ -98,35 +98,35 @@
|
|
|
98
98
|
}
|
|
99
99
|
var ContentNegotiation;
|
|
100
100
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
101
|
+
this.d5o_1 = converter;
|
|
102
|
+
this.e5o_1 = contentTypeToSend;
|
|
103
|
+
this.f5o_1 = contentTypeMatcher;
|
|
104
104
|
}
|
|
105
105
|
function defaultMatcher($this, pattern) {
|
|
106
106
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
107
107
|
}
|
|
108
108
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
109
|
-
this.
|
|
109
|
+
this.g5o_1 = $pattern;
|
|
110
110
|
}
|
|
111
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
112
|
-
return contentType.
|
|
111
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).h5o = function (contentType) {
|
|
112
|
+
return contentType.d2x(this.g5o_1);
|
|
113
113
|
};
|
|
114
114
|
function ContentNegotiationConfig() {
|
|
115
|
-
this.
|
|
115
|
+
this.i5o_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
116
116
|
var tmp = this;
|
|
117
117
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
118
|
-
tmp.
|
|
119
|
-
this.
|
|
118
|
+
tmp.j5o_1 = ArrayList_init_$Create$();
|
|
119
|
+
this.k5o_1 = null;
|
|
120
120
|
}
|
|
121
|
-
protoOf(ContentNegotiationConfig).
|
|
122
|
-
var matcher = contentType.
|
|
123
|
-
this.
|
|
121
|
+
protoOf(ContentNegotiationConfig).j3n = function (contentType, converter, configuration) {
|
|
122
|
+
var matcher = contentType.d2x(Application_getInstance().j2v_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
123
|
+
this.l5o(contentType, converter, matcher, configuration);
|
|
124
124
|
};
|
|
125
|
-
protoOf(ContentNegotiationConfig).
|
|
125
|
+
protoOf(ContentNegotiationConfig).l5o = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
126
126
|
// Inline function 'kotlin.apply' call
|
|
127
127
|
configuration(converter);
|
|
128
128
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
129
|
-
this.
|
|
129
|
+
this.j5o_1.j1(registration);
|
|
130
130
|
};
|
|
131
131
|
function ContentConverterException(message) {
|
|
132
132
|
Exception_init_$Init$(message, this);
|
|
@@ -141,57 +141,57 @@
|
|
|
141
141
|
}
|
|
142
142
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
143
143
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
144
|
-
var registrations = $this$createClientPlugin.
|
|
145
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
146
|
-
$this$createClientPlugin.
|
|
147
|
-
$this$createClientPlugin.
|
|
144
|
+
var registrations = $this$createClientPlugin.n3z_1.j5o_1;
|
|
145
|
+
var ignoredTypes = $this$createClientPlugin.n3z_1.i5o_1;
|
|
146
|
+
$this$createClientPlugin.g4k(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
147
|
+
$this$createClientPlugin.s48(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
148
148
|
return Unit_instance;
|
|
149
149
|
}
|
|
150
150
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
151
151
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
152
|
-
return toString(it.
|
|
152
|
+
return toString(it.d5o_1);
|
|
153
153
|
}
|
|
154
154
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
155
155
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
156
|
-
tmp.
|
|
157
|
-
tmp.
|
|
158
|
-
return tmp.
|
|
156
|
+
tmp.f9_1 = Unit_instance;
|
|
157
|
+
tmp.g9_1 = null;
|
|
158
|
+
return tmp.l9();
|
|
159
159
|
}
|
|
160
160
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
161
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
161
|
+
charset = charset === VOID ? Charsets_getInstance().v1y_1 : charset;
|
|
162
162
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
163
|
-
tmp.
|
|
164
|
-
tmp.
|
|
165
|
-
return tmp.
|
|
163
|
+
tmp.f9_1 = Unit_instance;
|
|
164
|
+
tmp.g9_1 = null;
|
|
165
|
+
return tmp.l9();
|
|
166
166
|
}
|
|
167
167
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
168
|
+
this.d5q_1 = $registrations;
|
|
169
|
+
this.e5q_1 = $this_createClientPlugin;
|
|
170
|
+
this.f5q_1 = $ignoredTypes;
|
|
171
171
|
CoroutineImpl.call(this, resultContinuation);
|
|
172
172
|
}
|
|
173
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
174
|
-
var tmp = this.
|
|
175
|
-
tmp.
|
|
176
|
-
tmp.
|
|
177
|
-
return tmp.
|
|
173
|
+
protoOf(ContentNegotiation$lambda$slambda).k5q = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
174
|
+
var tmp = this.l5q($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
175
|
+
tmp.f9_1 = Unit_instance;
|
|
176
|
+
tmp.g9_1 = null;
|
|
177
|
+
return tmp.l9();
|
|
178
178
|
};
|
|
179
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
179
|
+
protoOf(ContentNegotiation$lambda$slambda).x49 = function (p1, p2, p3, p4, $completion) {
|
|
180
180
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
181
181
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
182
182
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
183
|
-
return this.
|
|
183
|
+
return this.k5q(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
184
184
|
};
|
|
185
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
186
|
-
var suspendResult = this.
|
|
185
|
+
protoOf(ContentNegotiation$lambda$slambda).l9 = function () {
|
|
186
|
+
var suspendResult = this.f9_1;
|
|
187
187
|
$sm: do
|
|
188
188
|
try {
|
|
189
|
-
var tmp = this.
|
|
189
|
+
var tmp = this.d9_1;
|
|
190
190
|
switch (tmp) {
|
|
191
191
|
case 0:
|
|
192
|
-
this.
|
|
193
|
-
this.
|
|
194
|
-
suspendResult = invoke$convertRequest(this.
|
|
192
|
+
this.e9_1 = 2;
|
|
193
|
+
this.d9_1 = 1;
|
|
194
|
+
suspendResult = invoke$convertRequest(this.d5q_1, this.e5q_1, this.f5q_1, this.h5q_1, this.i5q_1, this);
|
|
195
195
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
196
196
|
return suspendResult;
|
|
197
197
|
}
|
|
@@ -200,62 +200,62 @@
|
|
|
200
200
|
case 1:
|
|
201
201
|
return suspendResult;
|
|
202
202
|
case 2:
|
|
203
|
-
throw this.
|
|
203
|
+
throw this.g9_1;
|
|
204
204
|
}
|
|
205
205
|
} catch ($p) {
|
|
206
206
|
var e = $p;
|
|
207
|
-
if (this.
|
|
207
|
+
if (this.e9_1 === 2) {
|
|
208
208
|
throw e;
|
|
209
209
|
} else {
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
210
|
+
this.d9_1 = this.e9_1;
|
|
211
|
+
this.g9_1 = e;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
while (true);
|
|
215
215
|
};
|
|
216
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
217
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
218
|
-
i.
|
|
219
|
-
i.
|
|
220
|
-
i.
|
|
221
|
-
i.
|
|
216
|
+
protoOf(ContentNegotiation$lambda$slambda).l5q = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
217
|
+
var i = new ContentNegotiation$lambda$slambda(this.d5q_1, this.e5q_1, this.f5q_1, completion);
|
|
218
|
+
i.g5q_1 = $this$transformRequestBody;
|
|
219
|
+
i.h5q_1 = request;
|
|
220
|
+
i.i5q_1 = body;
|
|
221
|
+
i.j5q_1 = _unused_var__etf5q3;
|
|
222
222
|
return i;
|
|
223
223
|
};
|
|
224
224
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
225
225
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
226
226
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
227
|
-
return i.
|
|
227
|
+
return i.k5q($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
228
228
|
};
|
|
229
229
|
l.$arity = 4;
|
|
230
230
|
return l;
|
|
231
231
|
}
|
|
232
232
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
233
|
+
this.u5q_1 = $ignoredTypes;
|
|
234
|
+
this.v5q_1 = $registrations;
|
|
235
|
+
this.w5q_1 = $this_createClientPlugin;
|
|
236
236
|
CoroutineImpl.call(this, resultContinuation);
|
|
237
237
|
}
|
|
238
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
239
|
-
var tmp = this.
|
|
240
|
-
tmp.
|
|
241
|
-
tmp.
|
|
242
|
-
return tmp.
|
|
238
|
+
protoOf(ContentNegotiation$lambda$slambda_1).v49 = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
239
|
+
var tmp = this.w49($this$transformResponseBody, response, body, info, $completion);
|
|
240
|
+
tmp.f9_1 = Unit_instance;
|
|
241
|
+
tmp.g9_1 = null;
|
|
242
|
+
return tmp.l9();
|
|
243
243
|
};
|
|
244
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
244
|
+
protoOf(ContentNegotiation$lambda$slambda_1).x49 = function (p1, p2, p3, p4, $completion) {
|
|
245
245
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
246
246
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
247
247
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
248
|
-
return this.
|
|
248
|
+
return this.v49(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
249
249
|
};
|
|
250
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
251
|
-
var suspendResult = this.
|
|
250
|
+
protoOf(ContentNegotiation$lambda$slambda_1).l9 = function () {
|
|
251
|
+
var suspendResult = this.f9_1;
|
|
252
252
|
$sm: do
|
|
253
253
|
try {
|
|
254
|
-
var tmp = this.
|
|
254
|
+
var tmp = this.d9_1;
|
|
255
255
|
switch (tmp) {
|
|
256
256
|
case 0:
|
|
257
|
-
this.
|
|
258
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
257
|
+
this.e9_1 = 2;
|
|
258
|
+
var tmp0_elvis_lhs = contentType(this.y5q_1);
|
|
259
259
|
var tmp_0;
|
|
260
260
|
if (tmp0_elvis_lhs == null) {
|
|
261
261
|
return null;
|
|
@@ -264,9 +264,9 @@
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
var contentType_0 = tmp_0;
|
|
267
|
-
var charset = suitableCharset(get_request(this.
|
|
268
|
-
this.
|
|
269
|
-
suspendResult = invoke$convertResponse(this.
|
|
267
|
+
var charset = suitableCharset(get_request(this.y5q_1).p31());
|
|
268
|
+
this.d9_1 = 1;
|
|
269
|
+
suspendResult = invoke$convertResponse(this.u5q_1, this.v5q_1, this.w5q_1, get_request(this.y5q_1).e3t(), this.a5r_1, this.z5q_1, contentType_0, charset, this);
|
|
270
270
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
271
271
|
return suspendResult;
|
|
272
272
|
}
|
|
@@ -275,55 +275,55 @@
|
|
|
275
275
|
case 1:
|
|
276
276
|
return suspendResult;
|
|
277
277
|
case 2:
|
|
278
|
-
throw this.
|
|
278
|
+
throw this.g9_1;
|
|
279
279
|
}
|
|
280
280
|
} catch ($p) {
|
|
281
281
|
var e = $p;
|
|
282
|
-
if (this.
|
|
282
|
+
if (this.e9_1 === 2) {
|
|
283
283
|
throw e;
|
|
284
284
|
} else {
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
285
|
+
this.d9_1 = this.e9_1;
|
|
286
|
+
this.g9_1 = e;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
while (true);
|
|
290
290
|
};
|
|
291
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
292
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
293
|
-
i.
|
|
294
|
-
i.
|
|
295
|
-
i.
|
|
296
|
-
i.
|
|
291
|
+
protoOf(ContentNegotiation$lambda$slambda_1).w49 = function ($this$transformResponseBody, response, body, info, completion) {
|
|
292
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.u5q_1, this.v5q_1, this.w5q_1, completion);
|
|
293
|
+
i.x5q_1 = $this$transformResponseBody;
|
|
294
|
+
i.y5q_1 = response;
|
|
295
|
+
i.z5q_1 = body;
|
|
296
|
+
i.a5r_1 = info;
|
|
297
297
|
return i;
|
|
298
298
|
};
|
|
299
299
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
300
300
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
301
301
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
302
|
-
return i.
|
|
302
|
+
return i.v49($this$transformResponseBody, response, body, info, $completion);
|
|
303
303
|
};
|
|
304
304
|
l.$arity = 4;
|
|
305
305
|
return l;
|
|
306
306
|
}
|
|
307
307
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
308
308
|
CoroutineImpl.call(this, resultContinuation);
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
309
|
+
this.u5o_1 = registrations;
|
|
310
|
+
this.v5o_1 = $this_createClientPlugin;
|
|
311
|
+
this.w5o_1 = ignoredTypes;
|
|
312
|
+
this.x5o_1 = request;
|
|
313
|
+
this.y5o_1 = body;
|
|
314
314
|
}
|
|
315
|
-
protoOf($invoke$convertRequestCOROUTINE$).
|
|
316
|
-
var suspendResult = this.
|
|
315
|
+
protoOf($invoke$convertRequestCOROUTINE$).l9 = function () {
|
|
316
|
+
var suspendResult = this.f9_1;
|
|
317
317
|
$sm: do
|
|
318
318
|
try {
|
|
319
|
-
var tmp = this.
|
|
319
|
+
var tmp = this.d9_1;
|
|
320
320
|
switch (tmp) {
|
|
321
321
|
case 0:
|
|
322
|
-
this.
|
|
322
|
+
this.e9_1 = 7;
|
|
323
323
|
var tmp_0;
|
|
324
|
-
if (this.
|
|
325
|
-
var excluded = this.
|
|
326
|
-
var tmp0 = this.
|
|
324
|
+
if (this.x5o_1.s3r_1.u2k(get_ExcludedContentTypes())) {
|
|
325
|
+
var excluded = this.x5o_1.s3r_1.s2k(get_ExcludedContentTypes());
|
|
326
|
+
var tmp0 = this.u5o_1;
|
|
327
327
|
var destination = ArrayList_init_$Create$();
|
|
328
328
|
var _iterator__ex2g4s = tmp0.t();
|
|
329
329
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
var _iterator__ex2g4s_0 = excluded.t();
|
|
344
344
|
while (_iterator__ex2g4s_0.u()) {
|
|
345
345
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
346
|
-
if (element.
|
|
346
|
+
if (element.e5o_1.d2x(element_0)) {
|
|
347
347
|
tmp$ret$0 = false;
|
|
348
348
|
break l$ret$1;
|
|
349
349
|
}
|
|
@@ -357,11 +357,11 @@
|
|
|
357
357
|
}
|
|
358
358
|
tmp_0 = destination;
|
|
359
359
|
} else {
|
|
360
|
-
tmp_0 = this.
|
|
360
|
+
tmp_0 = this.u5o_1;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
var requestRegistrations = tmp_0;
|
|
364
|
-
var tmp0_elvis_lhs = this.
|
|
364
|
+
var tmp0_elvis_lhs = this.x5o_1.p3r_1.j2p('Accept');
|
|
365
365
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
366
366
|
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
367
367
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
382
382
|
while (_iterator__ex2g4s_2.u()) {
|
|
383
383
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
384
|
-
if (Companion_getInstance().
|
|
384
|
+
if (Companion_getInstance().wn(element_2).d2x(element_1.e5o_1)) {
|
|
385
385
|
tmp$ret$2 = false;
|
|
386
386
|
break l$ret$3;
|
|
387
387
|
}
|
|
@@ -390,19 +390,19 @@
|
|
|
390
390
|
}
|
|
391
391
|
while (false);
|
|
392
392
|
if (tmp$ret$2) {
|
|
393
|
-
var qValue = this.
|
|
394
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
395
|
-
get_LOGGER().
|
|
396
|
-
accept(this.
|
|
393
|
+
var qValue = this.v5o_1.n3z_1.k5o_1;
|
|
394
|
+
var contentTypeToSend = qValue == null ? element_1.e5o_1 : element_1.e5o_1.b2x('q', qValue.toString());
|
|
395
|
+
get_LOGGER().f2u('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.x5o_1.n3r_1.toString());
|
|
396
|
+
accept(this.x5o_1, contentTypeToSend);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
var tmp_3;
|
|
401
|
-
var tmp_4 = this.
|
|
401
|
+
var tmp_4 = this.y5o_1;
|
|
402
402
|
if (tmp_4 instanceof OutgoingContent) {
|
|
403
403
|
tmp_3 = true;
|
|
404
404
|
} else {
|
|
405
|
-
var tmp0_0 = this.
|
|
405
|
+
var tmp0_0 = this.w5o_1;
|
|
406
406
|
var tmp$ret$4;
|
|
407
407
|
l$ret$5: do {
|
|
408
408
|
var tmp_5;
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
419
419
|
while (_iterator__ex2g4s_3.u()) {
|
|
420
420
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
421
|
-
if (element_3.
|
|
421
|
+
if (element_3.eb(this.y5o_1)) {
|
|
422
422
|
tmp$ret$4 = true;
|
|
423
423
|
break l$ret$5;
|
|
424
424
|
}
|
|
@@ -430,36 +430,36 @@
|
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
if (tmp_3) {
|
|
433
|
-
get_LOGGER().
|
|
433
|
+
get_LOGGER().f2u('Body type ' + toString(getKClassFromExpression(this.y5o_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.x5o_1.n3r_1.toString() + '.'));
|
|
434
434
|
return null;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
var tmp_6 = this;
|
|
438
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
438
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.x5o_1);
|
|
439
439
|
var tmp_7;
|
|
440
440
|
if (tmp0_elvis_lhs_0 == null) {
|
|
441
|
-
this.
|
|
442
|
-
get_LOGGER().
|
|
441
|
+
this.v5o_1;
|
|
442
|
+
get_LOGGER().f2u("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.x5o_1.n3r_1.toString() + '.');
|
|
443
443
|
return null;
|
|
444
444
|
} else {
|
|
445
445
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
tmp_6.
|
|
449
|
-
var tmp_8 = this.
|
|
448
|
+
tmp_6.a5p_1 = tmp_7;
|
|
449
|
+
var tmp_8 = this.y5o_1;
|
|
450
450
|
if (tmp_8 instanceof Unit) {
|
|
451
|
-
get_LOGGER().
|
|
452
|
-
this.
|
|
451
|
+
get_LOGGER().f2u('Sending empty body for ' + this.x5o_1.n3r_1.toString());
|
|
452
|
+
this.x5o_1.p3r_1.t2p('Content-Type');
|
|
453
453
|
return EmptyContent_getInstance();
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
var tmp_9 = this;
|
|
457
|
-
var tmp0_1 = this.
|
|
457
|
+
var tmp0_1 = this.u5o_1;
|
|
458
458
|
var destination_0 = ArrayList_init_$Create$();
|
|
459
459
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
460
460
|
while (_iterator__ex2g4s_4.u()) {
|
|
461
461
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
462
|
-
if (element_4.
|
|
462
|
+
if (element_4.f5o_1.h5o(this.a5p_1)) {
|
|
463
463
|
destination_0.j1(element_4);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
@@ -474,40 +474,40 @@
|
|
|
474
474
|
var tmp1_elvis_lhs = tmp_10;
|
|
475
475
|
var tmp_11;
|
|
476
476
|
if (tmp1_elvis_lhs == null) {
|
|
477
|
-
this.
|
|
478
|
-
get_LOGGER().
|
|
477
|
+
this.v5o_1;
|
|
478
|
+
get_LOGGER().f2u('None of the registered converters match request Content-Type=' + this.a5p_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.x5o_1.n3r_1.toString() + '.'));
|
|
479
479
|
return null;
|
|
480
480
|
} else {
|
|
481
481
|
tmp_11 = tmp1_elvis_lhs;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
tmp_9.
|
|
485
|
-
if (this.
|
|
486
|
-
get_LOGGER().
|
|
484
|
+
tmp_9.z5o_1 = tmp_11;
|
|
485
|
+
if (this.x5o_1.o4m() == null) {
|
|
486
|
+
get_LOGGER().f2u('Request has unknown body type. Skipping ContentNegotiation for ' + this.x5o_1.n3r_1.toString() + '.');
|
|
487
487
|
return null;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
492
|
-
this.
|
|
490
|
+
this.x5o_1.p3r_1.t2p('Content-Type');
|
|
491
|
+
this.e5p_1 = this.z5o_1;
|
|
492
|
+
this.d9_1 = 1;
|
|
493
493
|
continue $sm;
|
|
494
494
|
case 1:
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
495
|
+
this.d5p_1 = this.e5p_1.t();
|
|
496
|
+
this.d9_1 = 2;
|
|
497
497
|
continue $sm;
|
|
498
498
|
case 2:
|
|
499
|
-
if (!this.
|
|
500
|
-
this.
|
|
499
|
+
if (!this.d5p_1.u()) {
|
|
500
|
+
this.d9_1 = 5;
|
|
501
501
|
continue $sm;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
var element_5 = this.
|
|
505
|
-
this.
|
|
506
|
-
this.
|
|
507
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
508
|
-
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
509
|
-
var tmp_13 = ensureNotNull(this.
|
|
510
|
-
var this_0 = this.
|
|
504
|
+
var element_5 = this.d5p_1.v();
|
|
505
|
+
this.c5p_1 = element_5;
|
|
506
|
+
this.d9_1 = 3;
|
|
507
|
+
var tmp0_elvis_lhs_1 = charset(this.a5p_1);
|
|
508
|
+
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().v1y_1 : tmp0_elvis_lhs_1;
|
|
509
|
+
var tmp_13 = ensureNotNull(this.x5o_1.o4m());
|
|
510
|
+
var this_0 = this.y5o_1;
|
|
511
511
|
var tmp_14;
|
|
512
512
|
if (!equals(this_0, NullBody_instance)) {
|
|
513
513
|
tmp_14 = this_0;
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
tmp_14 = null;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
suspendResult = this.
|
|
518
|
+
suspendResult = this.c5p_1.d5o_1.b5r(this.a5p_1, tmp_12, tmp_13, tmp_14, this);
|
|
519
519
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
520
520
|
return suspendResult;
|
|
521
521
|
}
|
|
@@ -524,37 +524,37 @@
|
|
|
524
524
|
case 3:
|
|
525
525
|
var result = suspendResult;
|
|
526
526
|
if (!(result == null)) {
|
|
527
|
-
get_LOGGER().
|
|
527
|
+
get_LOGGER().f2u('Converted request body using ' + toString(this.c5p_1.d5o_1) + ' for ' + this.x5o_1.n3r_1.toString());
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
var result_0 = result;
|
|
531
531
|
if (!(result_0 == null)) {
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
532
|
+
this.b5p_1 = result_0;
|
|
533
|
+
this.d9_1 = 6;
|
|
534
534
|
continue $sm;
|
|
535
535
|
} else {
|
|
536
|
-
this.
|
|
536
|
+
this.d9_1 = 4;
|
|
537
537
|
continue $sm;
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
case 4:
|
|
541
|
-
this.
|
|
541
|
+
this.d9_1 = 2;
|
|
542
542
|
continue $sm;
|
|
543
543
|
case 5:
|
|
544
|
-
this.
|
|
544
|
+
this.b5p_1 = null;
|
|
545
545
|
if (false) {
|
|
546
|
-
this.
|
|
546
|
+
this.d9_1 = 1;
|
|
547
547
|
continue $sm;
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
this.
|
|
550
|
+
this.d9_1 = 6;
|
|
551
551
|
continue $sm;
|
|
552
552
|
case 6:
|
|
553
|
-
var tmp2_elvis_lhs = this.
|
|
553
|
+
var tmp2_elvis_lhs = this.b5p_1;
|
|
554
554
|
var tmp_15;
|
|
555
555
|
if (tmp2_elvis_lhs == null) {
|
|
556
|
-
var tmp_16 = "Can't convert " + toString(this.
|
|
557
|
-
throw new ContentConverterException(tmp_16 + joinToString(this.
|
|
556
|
+
var tmp_16 = "Can't convert " + toString(this.y5o_1) + ' with contentType ' + this.a5p_1.toString() + ' using converters ';
|
|
557
|
+
throw new ContentConverterException(tmp_16 + joinToString(this.z5o_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
558
558
|
} else {
|
|
559
559
|
tmp_15 = tmp2_elvis_lhs;
|
|
560
560
|
}
|
|
@@ -562,55 +562,55 @@
|
|
|
562
562
|
var serializedContent = tmp_15;
|
|
563
563
|
return serializedContent;
|
|
564
564
|
case 7:
|
|
565
|
-
throw this.
|
|
565
|
+
throw this.g9_1;
|
|
566
566
|
}
|
|
567
567
|
} catch ($p) {
|
|
568
568
|
var e = $p;
|
|
569
|
-
if (this.
|
|
569
|
+
if (this.e9_1 === 7) {
|
|
570
570
|
throw e;
|
|
571
571
|
} else {
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
572
|
+
this.d9_1 = this.e9_1;
|
|
573
|
+
this.g9_1 = e;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
while (true);
|
|
577
577
|
};
|
|
578
578
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
579
579
|
CoroutineImpl.call(this, resultContinuation);
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
580
|
+
this.n5p_1 = ignoredTypes;
|
|
581
|
+
this.o5p_1 = registrations;
|
|
582
|
+
this.p5p_1 = $this_createClientPlugin;
|
|
583
|
+
this.q5p_1 = requestUrl;
|
|
584
|
+
this.r5p_1 = info;
|
|
585
|
+
this.s5p_1 = body;
|
|
586
|
+
this.t5p_1 = responseContentType;
|
|
587
|
+
this.u5p_1 = charset;
|
|
588
588
|
}
|
|
589
|
-
protoOf($invoke$convertResponseCOROUTINE$).
|
|
590
|
-
var suspendResult = this.
|
|
589
|
+
protoOf($invoke$convertResponseCOROUTINE$).l9 = function () {
|
|
590
|
+
var suspendResult = this.f9_1;
|
|
591
591
|
$sm: do
|
|
592
592
|
try {
|
|
593
|
-
var tmp = this.
|
|
593
|
+
var tmp = this.d9_1;
|
|
594
594
|
switch (tmp) {
|
|
595
595
|
case 0:
|
|
596
|
-
this.
|
|
597
|
-
var tmp_0 = this.
|
|
596
|
+
this.e9_1 = 2;
|
|
597
|
+
var tmp_0 = this.s5p_1;
|
|
598
598
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
599
|
-
get_LOGGER().
|
|
599
|
+
get_LOGGER().f2u('Response body is already transformed. Skipping ContentNegotiation for ' + this.q5p_1.toString() + '.');
|
|
600
600
|
return null;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
if (this.
|
|
604
|
-
get_LOGGER().
|
|
603
|
+
if (this.n5p_1.n2(this.r5p_1.o2t_1)) {
|
|
604
|
+
get_LOGGER().f2u('Response body type ' + toString(this.r5p_1.o2t_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.q5p_1.toString() + '.'));
|
|
605
605
|
return null;
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
var tmp0 = this.
|
|
608
|
+
var tmp0 = this.o5p_1;
|
|
609
609
|
var destination = ArrayList_init_$Create$();
|
|
610
610
|
var _iterator__ex2g4s = tmp0.t();
|
|
611
611
|
while (_iterator__ex2g4s.u()) {
|
|
612
612
|
var element = _iterator__ex2g4s.v();
|
|
613
|
-
if (element.
|
|
613
|
+
if (element.f5o_1.h5o(this.t5p_1)) {
|
|
614
614
|
destination.j1(element);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
var _iterator__ex2g4s_0 = destination.t();
|
|
620
620
|
while (_iterator__ex2g4s_0.u()) {
|
|
621
621
|
var item = _iterator__ex2g4s_0.v();
|
|
622
|
-
destination_0.j1(item.
|
|
622
|
+
destination_0.j1(item.d5o_1);
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
var tmp_1;
|
|
@@ -632,16 +632,16 @@
|
|
|
632
632
|
var tmp0_elvis_lhs = tmp_1;
|
|
633
633
|
var tmp_2;
|
|
634
634
|
if (tmp0_elvis_lhs == null) {
|
|
635
|
-
this.
|
|
636
|
-
get_LOGGER().
|
|
635
|
+
this.p5p_1;
|
|
636
|
+
get_LOGGER().f2u('None of the registered converters match response with Content-Type=' + this.t5p_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.q5p_1.toString() + '.'));
|
|
637
637
|
return null;
|
|
638
638
|
} else {
|
|
639
639
|
tmp_2 = tmp0_elvis_lhs;
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
var suitableConverters = tmp_2;
|
|
643
|
-
this.
|
|
644
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
643
|
+
this.d9_1 = 1;
|
|
644
|
+
suspendResult = deserialize(suitableConverters, this.s5p_1, this.r5p_1, this.u5p_1, this);
|
|
645
645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
646
646
|
return suspendResult;
|
|
647
647
|
}
|
|
@@ -650,20 +650,20 @@
|
|
|
650
650
|
case 1:
|
|
651
651
|
var result = suspendResult;
|
|
652
652
|
if (!isInterface(result, ByteReadChannel)) {
|
|
653
|
-
get_LOGGER().
|
|
653
|
+
get_LOGGER().f2u('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.q5p_1.toString() + '.');
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
return result;
|
|
657
657
|
case 2:
|
|
658
|
-
throw this.
|
|
658
|
+
throw this.g9_1;
|
|
659
659
|
}
|
|
660
660
|
} catch ($p) {
|
|
661
661
|
var e = $p;
|
|
662
|
-
if (this.
|
|
662
|
+
if (this.e9_1 === 2) {
|
|
663
663
|
throw e;
|
|
664
664
|
} else {
|
|
665
|
-
this.
|
|
666
|
-
this.
|
|
665
|
+
this.d9_1 = this.e9_1;
|
|
666
|
+
this.g9_1 = e;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
while (true);
|
|
@@ -673,7 +673,7 @@
|
|
|
673
673
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
674
674
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
675
675
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
676
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
676
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().ic(), PrimitiveClasses_getInstance().ec(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
|
|
677
677
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
678
678
|
var name = 'ExcludedContentTypesAttr';
|
|
679
679
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -701,12 +701,12 @@
|
|
|
701
701
|
}
|
|
702
702
|
function JsonContentTypeMatcher() {
|
|
703
703
|
}
|
|
704
|
-
protoOf(JsonContentTypeMatcher).
|
|
705
|
-
if (contentType.
|
|
704
|
+
protoOf(JsonContentTypeMatcher).h5o = function (contentType) {
|
|
705
|
+
if (contentType.d2x(Application_getInstance().j2v_1)) {
|
|
706
706
|
return true;
|
|
707
707
|
}
|
|
708
|
-
var value = contentType.
|
|
709
|
-
return Application_getInstance().
|
|
708
|
+
var value = contentType.c2x().toString();
|
|
709
|
+
return Application_getInstance().d2w(value) && endsWith(value, '+json', true);
|
|
710
710
|
};
|
|
711
711
|
var JsonContentTypeMatcher_instance;
|
|
712
712
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
//region block: post-declaration
|
|
729
|
-
protoOf(ContentNegotiationConfig).
|
|
729
|
+
protoOf(ContentNegotiationConfig).k3n = register$default;
|
|
730
730
|
//endregion
|
|
731
731
|
//region block: init
|
|
732
732
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|