@doordeck/doordeck-headless-sdk 0.190.0 → 0.194.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 +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +10294 -10331
- package/kotlin/kotlin-kotlin-stdlib.js +1736 -1107
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-browser.js +10 -0
- package/kotlin/kotlinx-coroutines-core.js +2529 -2067
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +52 -52
- package/kotlin/kotlinx-io-kotlinx-io-core.js +489 -493
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1956 -1956
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1483 -1483
- package/kotlin/ktor-ktor-client-auth.js +408 -400
- package/kotlin/ktor-ktor-client-content-negotiation.js +185 -186
- package/kotlin/ktor-ktor-client-core.js +2941 -2275
- package/kotlin/ktor-ktor-client-logging.js +1028 -992
- package/kotlin/ktor-ktor-events.js +15 -15
- package/kotlin/ktor-ktor-http-cio.js +413 -418
- package/kotlin/ktor-ktor-http.js +923 -880
- package/kotlin/ktor-ktor-io.js +1056 -987
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +166 -166
- package/kotlin/ktor-ktor-serialization.js +77 -78
- package/kotlin/ktor-ktor-utils.js +944 -989
- package/kotlin/ktor-ktor-websockets.js +2178 -82
- package/package.json +4 -5
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +0 -329
|
@@ -1,122 +1,140 @@
|
|
|
1
|
-
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu,
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
5
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
6
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
7
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
8
|
-
var trim = kotlin_kotlin.$_$.
|
|
9
|
-
var toString = kotlin_kotlin.$_$.
|
|
10
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
13
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
14
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
15
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.l9;
|
|
5
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.zf;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.nb;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.df;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.cc;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.c5;
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.qa;
|
|
14
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
15
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
18
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
17
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h2;
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.cb;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.b;
|
|
20
|
-
var
|
|
20
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.gb;
|
|
21
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ib;
|
|
22
|
+
var readText = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
23
|
+
var readBuffer = kotlin_io_ktor_ktor_io.$_$.d;
|
|
24
|
+
var isTextType = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
25
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
26
|
+
var charset = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
27
|
+
var readAvailable = kotlin_io_ktor_ktor_io.$_$.c;
|
|
28
|
+
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
29
|
+
var writeFully = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
30
|
+
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
31
|
+
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
32
|
+
var charCodeAt = kotlin_kotlin.$_$.oa;
|
|
33
|
+
var Enum = kotlin_kotlin.$_$.qf;
|
|
21
34
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
22
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
23
|
-
var println = kotlin_kotlin.$_$.
|
|
24
|
-
var
|
|
25
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.db;
|
|
36
|
+
var println = kotlin_kotlin.$_$.p9;
|
|
37
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
26
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
27
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
28
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
39
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
40
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.qc;
|
|
29
41
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.s;
|
|
30
42
|
var NoContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
31
43
|
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.q;
|
|
32
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
44
|
+
var fromInt = kotlin_kotlin.$_$.w9;
|
|
33
45
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
34
|
-
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.
|
|
35
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
46
|
+
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
47
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.hb;
|
|
36
48
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
37
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
38
|
-
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.
|
|
39
|
-
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.
|
|
49
|
+
var isSuspendFunction = kotlin_kotlin.$_$.tb;
|
|
50
|
+
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
51
|
+
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.n;
|
|
40
52
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
41
|
-
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.
|
|
53
|
+
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.j1;
|
|
42
54
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
43
|
-
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.
|
|
44
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
45
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
46
|
-
var writeFully = kotlin_io_ktor_ktor_io.$_$.l;
|
|
47
|
-
var copyTo = kotlin_io_ktor_ktor_io.$_$.b;
|
|
55
|
+
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
56
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
57
|
+
var isInterface = kotlin_kotlin.$_$.rb;
|
|
48
58
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
49
|
-
var readRemaining = kotlin_io_ktor_ktor_io.$_$.
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
62
|
-
var joinToString = kotlin_kotlin.$_$.f7;
|
|
63
|
-
var equals = kotlin_kotlin.$_$.sa;
|
|
64
|
-
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
59
|
+
var readRemaining = kotlin_io_ktor_ktor_io.$_$.g;
|
|
60
|
+
var Collection = kotlin_kotlin.$_$.e5;
|
|
61
|
+
var toString_0 = kotlin_kotlin.$_$.ch;
|
|
62
|
+
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
63
|
+
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
64
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
65
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
66
|
+
var Url = kotlin_io_ktor_ktor_http.$_$.g1;
|
|
67
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
68
|
+
var joinToString = kotlin_kotlin.$_$.h7;
|
|
69
|
+
var equals = kotlin_kotlin.$_$.ua;
|
|
70
|
+
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
65
71
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
69
|
-
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
70
|
-
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
71
|
-
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
72
|
-
var charCodeAt = kotlin_kotlin.$_$.ma;
|
|
73
|
-
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
74
|
-
var add = kotlin_kotlin.$_$.p9;
|
|
75
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ug;
|
|
76
|
-
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
72
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.yg;
|
|
73
|
+
var split = kotlin_io_ktor_ktor_utils.$_$.m1;
|
|
77
74
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
78
|
-
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
75
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
76
|
+
var FormItem = kotlin_io_ktor_ktor_http.$_$.w;
|
|
77
|
+
var MultiPartFormDataContent = kotlin_io_ktor_ktor_client_core.$_$.c1;
|
|
78
|
+
var ObservableContent = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
79
|
+
var URLBuilder = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
80
|
+
var takeFrom = kotlin_io_ktor_ktor_http.$_$.y1;
|
|
81
|
+
var HeadersBuilder = kotlin_io_ktor_ktor_http.$_$.a1;
|
|
82
82
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
|
|
83
|
-
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.
|
|
84
|
-
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.
|
|
85
|
-
var appendAll = kotlin_io_ktor_ktor_utils.$_$.
|
|
86
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
87
|
-
var contentLength = kotlin_io_ktor_ktor_http.$_$.
|
|
88
|
-
var contentType = kotlin_io_ktor_ktor_http.$_$.
|
|
89
|
-
var subtract = kotlin_kotlin.$_$.
|
|
90
|
-
var get_request = kotlin_io_ktor_ktor_client_core.$_$.
|
|
83
|
+
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.n1;
|
|
84
|
+
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.d1;
|
|
85
|
+
var appendAll = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
86
|
+
var toLongOrNull = kotlin_kotlin.$_$.te;
|
|
87
|
+
var contentLength = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
88
|
+
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
89
|
+
var subtract = kotlin_kotlin.$_$.fa;
|
|
90
|
+
var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
|
|
91
91
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
92
92
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
93
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
94
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
95
|
-
var createKType = kotlin_kotlin.$_$.
|
|
96
|
-
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.
|
|
97
|
-
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.
|
|
98
|
-
var Unit = kotlin_kotlin.$_$.
|
|
99
|
-
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.
|
|
100
|
-
var toList = kotlin_kotlin.$_$.
|
|
101
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
102
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
103
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
104
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
105
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
106
|
-
var writer = kotlin_io_ktor_ktor_io.$_$.
|
|
107
|
-
var WriterScope = kotlin_io_ktor_ktor_io.$_$.
|
|
108
|
-
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.
|
|
109
|
-
var
|
|
110
|
-
var
|
|
111
|
-
var
|
|
112
|
-
var
|
|
113
|
-
var
|
|
93
|
+
var getKClass = kotlin_kotlin.$_$.rc;
|
|
94
|
+
var arrayOf = kotlin_kotlin.$_$.ng;
|
|
95
|
+
var createKType = kotlin_kotlin.$_$.pc;
|
|
96
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.p;
|
|
97
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.r;
|
|
98
|
+
var Unit = kotlin_kotlin.$_$.kg;
|
|
99
|
+
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
100
|
+
var toList = kotlin_kotlin.$_$.i8;
|
|
101
|
+
var sortedWith = kotlin_kotlin.$_$.d8;
|
|
102
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ha;
|
|
103
|
+
var Comparator = kotlin_kotlin.$_$.nf;
|
|
104
|
+
var hashCode = kotlin_kotlin.$_$.bb;
|
|
105
|
+
var compareValues = kotlin_kotlin.$_$.t8;
|
|
106
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.w1;
|
|
107
|
+
var WriterScope = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
108
|
+
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.e1;
|
|
109
|
+
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.l;
|
|
110
|
+
var get = kotlin_kotlin.$_$.h9;
|
|
111
|
+
var fold = kotlin_kotlin.$_$.g9;
|
|
112
|
+
var minusKey = kotlin_kotlin.$_$.i9;
|
|
113
|
+
var plus = kotlin_kotlin.$_$.k9;
|
|
114
|
+
var Element = kotlin_kotlin.$_$.j9;
|
|
114
115
|
//endregion
|
|
115
116
|
//region block: pre-declaration
|
|
116
117
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
117
118
|
initMetadataForCoroutine($logResponseBodyCOROUTINE$, CoroutineImpl);
|
|
118
119
|
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
119
120
|
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
121
|
+
function filterRequest(url, contentLength, contentType, headers, body, $completion) {
|
|
122
|
+
return this.g58(contentLength, contentType, headers, body, $completion);
|
|
123
|
+
}
|
|
124
|
+
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
125
|
+
return this.g58(contentLength, contentType, headers, body, $completion);
|
|
126
|
+
}
|
|
127
|
+
initMetadataForInterface(CommonLogBodyFilter, 'CommonLogBodyFilter', VOID, VOID, VOID, [5, 4]);
|
|
128
|
+
function get_byteSize() {
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
initMetadataForInterface(BodyFilterResult, 'BodyFilterResult');
|
|
132
|
+
initMetadataForObject(Empty, 'Empty', VOID, VOID, [BodyFilterResult]);
|
|
133
|
+
initMetadataForClass(Skip, 'Skip', Skip, VOID, [BodyFilterResult]);
|
|
134
|
+
initMetadataForInterface(Content, 'Content', VOID, VOID, [BodyFilterResult]);
|
|
135
|
+
initMetadataForClass(BufferContent, 'BufferContent', VOID, VOID, [Content]);
|
|
136
|
+
initMetadataForCoroutine($filterAllCOROUTINE$, CoroutineImpl);
|
|
137
|
+
initMetadataForClass(BinaryLogBodyFilter$1, VOID, VOID, VOID, [CommonLogBodyFilter], [4, 5]);
|
|
120
138
|
initMetadataForClass(LogLevel, 'LogLevel', VOID, Enum);
|
|
121
139
|
initMetadataForClass(LoggedContent, 'LoggedContent', VOID, ReadChannelContent);
|
|
122
140
|
initMetadataForCompanion(Companion);
|
|
@@ -135,7 +153,6 @@
|
|
|
135
153
|
initMetadataForClass(Context_2, 'Context', VOID, VOID, VOID, [0]);
|
|
136
154
|
initMetadataForLambda(ReceiveHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
137
155
|
initMetadataForObject(ReceiveHook, 'ReceiveHook');
|
|
138
|
-
initMetadataForLambda(Logging$lambda$detectIfBinary$slambda, CoroutineImpl, VOID, [1]);
|
|
139
156
|
initMetadataForLambda(Logging$lambda$logOutgoingContent$slambda, CoroutineImpl, VOID, [1]);
|
|
140
157
|
initMetadataForLambda(Logging$lambda$logRequestBody$slambda, CoroutineImpl, VOID, [1]);
|
|
141
158
|
initMetadataForLambda(Logging$lambda$slambda, CoroutineImpl, VOID, [2]);
|
|
@@ -143,7 +160,6 @@
|
|
|
143
160
|
initMetadataForLambda(Logging$lambda$slambda_3, CoroutineImpl, VOID, [2]);
|
|
144
161
|
initMetadataForLambda(Logging$lambda$slambda_5, CoroutineImpl, VOID, [2]);
|
|
145
162
|
initMetadataForLambda(Logging$lambda$lambda$slambda, CoroutineImpl, VOID, [1]);
|
|
146
|
-
initMetadataForCoroutine($invoke$detectIfBinaryCOROUTINE$, CoroutineImpl);
|
|
147
163
|
initMetadataForCoroutine($invoke$logRequestBodyCOROUTINE$, CoroutineImpl);
|
|
148
164
|
initMetadataForCoroutine($invoke$logOutgoingContentCOROUTINE$, CoroutineImpl);
|
|
149
165
|
initMetadataForCoroutine($invoke$logRequestOkHttpFormatCOROUTINE$, CoroutineImpl);
|
|
@@ -159,8 +175,8 @@
|
|
|
159
175
|
//endregion
|
|
160
176
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
161
177
|
CoroutineImpl.call(this, resultContinuation);
|
|
162
|
-
this.
|
|
163
|
-
this.
|
|
178
|
+
this.w56_1 = _this__u8e3s4;
|
|
179
|
+
this.x56_1 = message;
|
|
164
180
|
}
|
|
165
181
|
protoOf($logResponseExceptionCOROUTINE$).i9 = function () {
|
|
166
182
|
var suspendResult = this.c9_1;
|
|
@@ -171,15 +187,15 @@
|
|
|
171
187
|
case 0:
|
|
172
188
|
this.b9_1 = 2;
|
|
173
189
|
this.a9_1 = 1;
|
|
174
|
-
suspendResult = this.
|
|
190
|
+
suspendResult = this.w56_1.b57_1.cu(this);
|
|
175
191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
176
192
|
return suspendResult;
|
|
177
193
|
}
|
|
178
194
|
|
|
179
195
|
continue $sm;
|
|
180
196
|
case 1:
|
|
181
|
-
var this_0 = this.
|
|
182
|
-
this.
|
|
197
|
+
var this_0 = this.x56_1;
|
|
198
|
+
this.w56_1.y56_1.f57(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
183
199
|
return Unit_instance;
|
|
184
200
|
case 2:
|
|
185
201
|
throw this.d9_1;
|
|
@@ -197,8 +213,8 @@
|
|
|
197
213
|
};
|
|
198
214
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
199
215
|
CoroutineImpl.call(this, resultContinuation);
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
216
|
+
this.o57_1 = _this__u8e3s4;
|
|
217
|
+
this.p57_1 = message;
|
|
202
218
|
}
|
|
203
219
|
protoOf($logResponseBodyCOROUTINE$).i9 = function () {
|
|
204
220
|
var suspendResult = this.c9_1;
|
|
@@ -209,14 +225,14 @@
|
|
|
209
225
|
case 0:
|
|
210
226
|
this.b9_1 = 2;
|
|
211
227
|
this.a9_1 = 1;
|
|
212
|
-
suspendResult = this.
|
|
228
|
+
suspendResult = this.o57_1.c57_1.cu(this);
|
|
213
229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
230
|
return suspendResult;
|
|
215
231
|
}
|
|
216
232
|
|
|
217
233
|
continue $sm;
|
|
218
234
|
case 1:
|
|
219
|
-
this.
|
|
235
|
+
this.o57_1.a57_1.q(this.p57_1);
|
|
220
236
|
return Unit_instance;
|
|
221
237
|
case 2:
|
|
222
238
|
throw this.d9_1;
|
|
@@ -234,7 +250,7 @@
|
|
|
234
250
|
};
|
|
235
251
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
236
252
|
CoroutineImpl.call(this, resultContinuation);
|
|
237
|
-
this.
|
|
253
|
+
this.y57_1 = _this__u8e3s4;
|
|
238
254
|
}
|
|
239
255
|
protoOf($closeResponseLogCOROUTINE$).i9 = function () {
|
|
240
256
|
var suspendResult = this.c9_1;
|
|
@@ -244,19 +260,19 @@
|
|
|
244
260
|
switch (tmp) {
|
|
245
261
|
case 0:
|
|
246
262
|
this.b9_1 = 2;
|
|
247
|
-
if (!this.
|
|
263
|
+
if (!this.y57_1.e57_1.atomicfu$compareAndSet(false, true))
|
|
248
264
|
return Unit_instance;
|
|
249
265
|
this.a9_1 = 1;
|
|
250
|
-
suspendResult = this.
|
|
266
|
+
suspendResult = this.y57_1.b57_1.cu(this);
|
|
251
267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
252
268
|
return suspendResult;
|
|
253
269
|
}
|
|
254
270
|
|
|
255
271
|
continue $sm;
|
|
256
272
|
case 1:
|
|
257
|
-
var message = toString(trim(this.
|
|
273
|
+
var message = toString(trim(this.y57_1.a57_1));
|
|
258
274
|
if (charSequenceLength(message) > 0) {
|
|
259
|
-
this.
|
|
275
|
+
this.y57_1.y56_1.f57(message);
|
|
260
276
|
}
|
|
261
277
|
|
|
262
278
|
return Unit_instance;
|
|
@@ -275,62 +291,261 @@
|
|
|
275
291
|
while (true);
|
|
276
292
|
};
|
|
277
293
|
function HttpClientCallLogger(logger) {
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
}
|
|
286
|
-
protoOf(HttpClientCallLogger).
|
|
287
|
-
var tmp0 = this.
|
|
294
|
+
this.y56_1 = logger;
|
|
295
|
+
this.z56_1 = StringBuilder_init_$Create$();
|
|
296
|
+
this.a57_1 = StringBuilder_init_$Create$();
|
|
297
|
+
this.b57_1 = Job();
|
|
298
|
+
this.c57_1 = Job();
|
|
299
|
+
this.d57_1 = atomic$boolean$1(false);
|
|
300
|
+
this.e57_1 = atomic$boolean$1(false);
|
|
301
|
+
}
|
|
302
|
+
protoOf(HttpClientCallLogger).z57 = function (message) {
|
|
303
|
+
var tmp0 = this.z56_1;
|
|
288
304
|
// Inline function 'kotlin.text.trim' call
|
|
289
305
|
// Inline function 'kotlin.text.appendLine' call
|
|
290
306
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
291
307
|
// Inline function 'kotlin.text.appendLine' call
|
|
292
308
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
293
309
|
};
|
|
294
|
-
protoOf(HttpClientCallLogger).
|
|
295
|
-
var tmp0 = this.
|
|
310
|
+
protoOf(HttpClientCallLogger).a58 = function (message) {
|
|
311
|
+
var tmp0 = this.a57_1;
|
|
296
312
|
// Inline function 'kotlin.text.trim' call
|
|
297
313
|
// Inline function 'kotlin.text.appendLine' call
|
|
298
314
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
299
315
|
// Inline function 'kotlin.text.appendLine' call
|
|
300
316
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
301
|
-
this.
|
|
317
|
+
this.c57_1.g11();
|
|
302
318
|
};
|
|
303
|
-
protoOf(HttpClientCallLogger).
|
|
319
|
+
protoOf(HttpClientCallLogger).b58 = function (message, $completion) {
|
|
304
320
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
305
321
|
tmp.c9_1 = Unit_instance;
|
|
306
322
|
tmp.d9_1 = null;
|
|
307
323
|
return tmp.i9();
|
|
308
324
|
};
|
|
309
|
-
protoOf(HttpClientCallLogger).
|
|
325
|
+
protoOf(HttpClientCallLogger).c58 = function (message, $completion) {
|
|
310
326
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
311
327
|
tmp.c9_1 = Unit_instance;
|
|
312
328
|
tmp.d9_1 = null;
|
|
313
329
|
return tmp.i9();
|
|
314
330
|
};
|
|
315
|
-
protoOf(HttpClientCallLogger).
|
|
316
|
-
if (!this.
|
|
331
|
+
protoOf(HttpClientCallLogger).d58 = function () {
|
|
332
|
+
if (!this.d57_1.atomicfu$compareAndSet(false, true))
|
|
317
333
|
return Unit_instance;
|
|
318
334
|
try {
|
|
319
|
-
var message = toString(trim(this.
|
|
335
|
+
var message = toString(trim(this.z56_1));
|
|
320
336
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
321
337
|
if (charSequenceLength(message) > 0) {
|
|
322
|
-
this.
|
|
338
|
+
this.y56_1.f57(message);
|
|
323
339
|
}
|
|
324
340
|
}finally {
|
|
325
|
-
this.
|
|
341
|
+
this.b57_1.g11();
|
|
326
342
|
}
|
|
327
343
|
};
|
|
328
|
-
protoOf(HttpClientCallLogger).
|
|
344
|
+
protoOf(HttpClientCallLogger).e58 = function ($completion) {
|
|
329
345
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
330
346
|
tmp.c9_1 = Unit_instance;
|
|
331
347
|
tmp.d9_1 = null;
|
|
332
348
|
return tmp.i9();
|
|
333
349
|
};
|
|
350
|
+
function get_BinaryLogBodyFilter() {
|
|
351
|
+
_init_properties_LogBodyFilter_kt__oen9w();
|
|
352
|
+
return BinaryLogBodyFilter;
|
|
353
|
+
}
|
|
354
|
+
var BinaryLogBodyFilter;
|
|
355
|
+
function CommonLogBodyFilter() {
|
|
356
|
+
}
|
|
357
|
+
function Empty() {
|
|
358
|
+
}
|
|
359
|
+
var Empty_instance;
|
|
360
|
+
function Empty_getInstance() {
|
|
361
|
+
return Empty_instance;
|
|
362
|
+
}
|
|
363
|
+
function Skip(reason, byteSize) {
|
|
364
|
+
reason = reason === VOID ? null : reason;
|
|
365
|
+
byteSize = byteSize === VOID ? null : byteSize;
|
|
366
|
+
this.j58_1 = reason;
|
|
367
|
+
this.k58_1 = byteSize;
|
|
368
|
+
}
|
|
369
|
+
protoOf(Skip).i58 = function () {
|
|
370
|
+
return this.k58_1;
|
|
371
|
+
};
|
|
372
|
+
function Content() {
|
|
373
|
+
}
|
|
374
|
+
function BufferContent(buffer, charset, byteSize) {
|
|
375
|
+
byteSize = byteSize === VOID ? buffer.l1() : byteSize;
|
|
376
|
+
this.m58_1 = buffer;
|
|
377
|
+
this.n58_1 = charset;
|
|
378
|
+
this.o58_1 = byteSize;
|
|
379
|
+
}
|
|
380
|
+
protoOf(BufferContent).i58 = function () {
|
|
381
|
+
return this.o58_1;
|
|
382
|
+
};
|
|
383
|
+
protoOf(BufferContent).l58 = function () {
|
|
384
|
+
return readText(this.m58_1, this.n58_1);
|
|
385
|
+
};
|
|
386
|
+
function BodyFilterResult() {
|
|
387
|
+
}
|
|
388
|
+
function $filterAllCOROUTINE$(_this__u8e3s4, contentLength, contentType, headers, body, resultContinuation) {
|
|
389
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
390
|
+
this.x58_1 = _this__u8e3s4;
|
|
391
|
+
this.y58_1 = contentLength;
|
|
392
|
+
this.z58_1 = contentType;
|
|
393
|
+
this.a59_1 = headers;
|
|
394
|
+
this.b59_1 = body;
|
|
395
|
+
}
|
|
396
|
+
protoOf($filterAllCOROUTINE$).i9 = function () {
|
|
397
|
+
var suspendResult = this.c9_1;
|
|
398
|
+
$sm: do
|
|
399
|
+
try {
|
|
400
|
+
var tmp = this.a9_1;
|
|
401
|
+
switch (tmp) {
|
|
402
|
+
case 0:
|
|
403
|
+
this.b9_1 = 6;
|
|
404
|
+
if (this.a59_1.w2n('Content-Encoding')) {
|
|
405
|
+
return new Skip('encoded', this.y58_1);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (!(this.z58_1 == null) && isTextType(this.z58_1)) {
|
|
409
|
+
this.a9_1 = 5;
|
|
410
|
+
suspendResult = readBuffer(this.b59_1, this);
|
|
411
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
412
|
+
return suspendResult;
|
|
413
|
+
}
|
|
414
|
+
continue $sm;
|
|
415
|
+
} else {
|
|
416
|
+
this.a9_1 = 1;
|
|
417
|
+
continue $sm;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
case 1:
|
|
421
|
+
var tmp_0 = this;
|
|
422
|
+
var tmp_1;
|
|
423
|
+
if (!(this.z58_1 == null)) {
|
|
424
|
+
var tmp1_elvis_lhs = charset(this.z58_1);
|
|
425
|
+
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().b1y_1 : tmp1_elvis_lhs;
|
|
426
|
+
} else {
|
|
427
|
+
tmp_1 = Charsets_getInstance().b1y_1;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
tmp_0.h59_1 = tmp_1;
|
|
431
|
+
this.g59_1 = false;
|
|
432
|
+
this.f59_1 = new Int8Array(1024);
|
|
433
|
+
this.a9_1 = 2;
|
|
434
|
+
suspendResult = readAvailable(this.b59_1, this.f59_1, VOID, VOID, this);
|
|
435
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
436
|
+
return suspendResult;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
continue $sm;
|
|
440
|
+
case 2:
|
|
441
|
+
var firstReadSize = suspendResult;
|
|
442
|
+
if (firstReadSize < 1) {
|
|
443
|
+
return Empty_instance;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
var this_0 = new Buffer();
|
|
447
|
+
writeFully(this_0, this.f59_1, 0, firstReadSize);
|
|
448
|
+
var buffer = this_0;
|
|
449
|
+
var tmp_2;
|
|
450
|
+
try {
|
|
451
|
+
tmp_2 = decode(this.h59_1.e1y(), buffer);
|
|
452
|
+
} catch ($p) {
|
|
453
|
+
var tmp_3;
|
|
454
|
+
if ($p instanceof MalformedInputException) {
|
|
455
|
+
var _unused_var__etf5q3 = $p;
|
|
456
|
+
this.g59_1 = true;
|
|
457
|
+
tmp_3 = '';
|
|
458
|
+
} else {
|
|
459
|
+
throw $p;
|
|
460
|
+
}
|
|
461
|
+
tmp_2 = tmp_3;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
var firstChunkText = tmp_2;
|
|
465
|
+
if (!this.g59_1) {
|
|
466
|
+
var lastCharIndex = -1;
|
|
467
|
+
var inductionVariable = 0;
|
|
468
|
+
var last = firstChunkText.length;
|
|
469
|
+
while (inductionVariable < last) {
|
|
470
|
+
var ch = charCodeAt(firstChunkText, inductionVariable);
|
|
471
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
472
|
+
lastCharIndex = lastCharIndex + 1 | 0;
|
|
473
|
+
}
|
|
474
|
+
var inductionVariable_0 = 0;
|
|
475
|
+
var last_0 = firstChunkText.length;
|
|
476
|
+
$l$loop: while (inductionVariable_0 < last_0) {
|
|
477
|
+
var i = inductionVariable_0;
|
|
478
|
+
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
479
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
480
|
+
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
481
|
+
this.g59_1 = true;
|
|
482
|
+
break $l$loop;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (this.g59_1) {
|
|
488
|
+
var tmp_4 = this;
|
|
489
|
+
tmp_4.c59_1 = new Skip('binary', this.y58_1);
|
|
490
|
+
this.a9_1 = 4;
|
|
491
|
+
continue $sm;
|
|
492
|
+
} else {
|
|
493
|
+
this.d59_1 = new Buffer();
|
|
494
|
+
this.e59_1 = this.d59_1;
|
|
495
|
+
writeFully(this.e59_1, this.f59_1, 0, firstReadSize);
|
|
496
|
+
this.a9_1 = 3;
|
|
497
|
+
suspendResult = readBuffer(this.b59_1, this);
|
|
498
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
499
|
+
return suspendResult;
|
|
500
|
+
}
|
|
501
|
+
continue $sm;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
case 3:
|
|
505
|
+
var ARGUMENT = suspendResult;
|
|
506
|
+
this.e59_1.dr(ARGUMENT);
|
|
507
|
+
var ARGUMENT_0 = this.d59_1;
|
|
508
|
+
var tmp_5 = this;
|
|
509
|
+
var tmp2_safe_receiver = this.z58_1;
|
|
510
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
511
|
+
tmp_5.c59_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().b1y_1 : tmp3_elvis_lhs);
|
|
512
|
+
this.a9_1 = 4;
|
|
513
|
+
continue $sm;
|
|
514
|
+
case 4:
|
|
515
|
+
return this.c59_1;
|
|
516
|
+
case 5:
|
|
517
|
+
var ARGUMENT_1 = suspendResult;
|
|
518
|
+
var tmp0_elvis_lhs = charset(this.z58_1);
|
|
519
|
+
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().b1y_1 : tmp0_elvis_lhs);
|
|
520
|
+
case 6:
|
|
521
|
+
throw this.d9_1;
|
|
522
|
+
}
|
|
523
|
+
} catch ($p) {
|
|
524
|
+
var e = $p;
|
|
525
|
+
if (this.b9_1 === 6) {
|
|
526
|
+
throw e;
|
|
527
|
+
} else {
|
|
528
|
+
this.a9_1 = this.b9_1;
|
|
529
|
+
this.d9_1 = e;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
while (true);
|
|
533
|
+
};
|
|
534
|
+
function BinaryLogBodyFilter$1() {
|
|
535
|
+
}
|
|
536
|
+
protoOf(BinaryLogBodyFilter$1).g58 = function (contentLength, contentType, headers, body, $completion) {
|
|
537
|
+
var tmp = new $filterAllCOROUTINE$(this, contentLength, contentType, headers, body, $completion);
|
|
538
|
+
tmp.c9_1 = Unit_instance;
|
|
539
|
+
tmp.d9_1 = null;
|
|
540
|
+
return tmp.i9();
|
|
541
|
+
};
|
|
542
|
+
var properties_initialized_LogBodyFilter_kt_tiz4du;
|
|
543
|
+
function _init_properties_LogBodyFilter_kt__oen9w() {
|
|
544
|
+
if (!properties_initialized_LogBodyFilter_kt_tiz4du) {
|
|
545
|
+
properties_initialized_LogBodyFilter_kt_tiz4du = true;
|
|
546
|
+
BinaryLogBodyFilter = new BinaryLogBodyFilter$1();
|
|
547
|
+
}
|
|
548
|
+
}
|
|
334
549
|
var LogLevel_ALL_instance;
|
|
335
550
|
var LogLevel_HEADERS_instance;
|
|
336
551
|
var LogLevel_BODY_instance;
|
|
@@ -349,9 +564,9 @@
|
|
|
349
564
|
}
|
|
350
565
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
351
566
|
Enum.call(this, name, ordinal);
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
567
|
+
this.k59_1 = info;
|
|
568
|
+
this.l59_1 = headers;
|
|
569
|
+
this.m59_1 = body;
|
|
355
570
|
}
|
|
356
571
|
function LogLevel_ALL_getInstance() {
|
|
357
572
|
LogLevel_initEntries();
|
|
@@ -375,27 +590,27 @@
|
|
|
375
590
|
}
|
|
376
591
|
function LoggedContent(originalContent, channel) {
|
|
377
592
|
ReadChannelContent.call(this);
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
593
|
+
this.o59_1 = originalContent;
|
|
594
|
+
this.p59_1 = channel;
|
|
595
|
+
this.q59_1 = this.o59_1.l35();
|
|
596
|
+
this.r59_1 = this.o59_1.n35();
|
|
597
|
+
this.s59_1 = this.o59_1.m35();
|
|
598
|
+
this.t59_1 = this.o59_1.n2z();
|
|
384
599
|
}
|
|
385
|
-
protoOf(LoggedContent).
|
|
386
|
-
return this.
|
|
600
|
+
protoOf(LoggedContent).l35 = function () {
|
|
601
|
+
return this.q59_1;
|
|
387
602
|
};
|
|
388
|
-
protoOf(LoggedContent).
|
|
389
|
-
return this.
|
|
603
|
+
protoOf(LoggedContent).n35 = function () {
|
|
604
|
+
return this.r59_1;
|
|
390
605
|
};
|
|
391
|
-
protoOf(LoggedContent).
|
|
392
|
-
return this.
|
|
606
|
+
protoOf(LoggedContent).m35 = function () {
|
|
607
|
+
return this.s59_1;
|
|
393
608
|
};
|
|
394
|
-
protoOf(LoggedContent).
|
|
395
|
-
return this.
|
|
609
|
+
protoOf(LoggedContent).n2z = function () {
|
|
610
|
+
return this.t59_1;
|
|
396
611
|
};
|
|
397
|
-
protoOf(LoggedContent).
|
|
398
|
-
return this.
|
|
612
|
+
protoOf(LoggedContent).r35 = function () {
|
|
613
|
+
return this.p59_1;
|
|
399
614
|
};
|
|
400
615
|
function Companion() {
|
|
401
616
|
}
|
|
@@ -408,7 +623,7 @@
|
|
|
408
623
|
}
|
|
409
624
|
function SimpleLogger() {
|
|
410
625
|
}
|
|
411
|
-
protoOf(SimpleLogger).
|
|
626
|
+
protoOf(SimpleLogger).f57 = function (message) {
|
|
412
627
|
println('HttpClient: ' + message);
|
|
413
628
|
};
|
|
414
629
|
var SimpleLogger_instance;
|
|
@@ -433,19 +648,20 @@
|
|
|
433
648
|
function LoggingConfig() {
|
|
434
649
|
var tmp = this;
|
|
435
650
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
436
|
-
tmp.
|
|
651
|
+
tmp.u59_1 = ArrayList_init_$Create$();
|
|
437
652
|
var tmp_0 = this;
|
|
438
653
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
439
|
-
tmp_0.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
654
|
+
tmp_0.v59_1 = ArrayList_init_$Create$();
|
|
655
|
+
this.w59_1 = null;
|
|
656
|
+
this.x59_1 = LoggingFormat_Default_getInstance();
|
|
657
|
+
this.y59_1 = LogLevel_HEADERS_getInstance();
|
|
658
|
+
this.z59_1 = get_BinaryLogBodyFilter();
|
|
443
659
|
}
|
|
444
|
-
protoOf(LoggingConfig).
|
|
445
|
-
this.
|
|
660
|
+
protoOf(LoggingConfig).a5a = function (value) {
|
|
661
|
+
this.w59_1 = value;
|
|
446
662
|
};
|
|
447
|
-
protoOf(LoggingConfig).
|
|
448
|
-
var tmp0_elvis_lhs = this.
|
|
663
|
+
protoOf(LoggingConfig).b5a = function () {
|
|
664
|
+
var tmp0_elvis_lhs = this.w59_1;
|
|
449
665
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
450
666
|
};
|
|
451
667
|
var LoggingFormat_Default_instance;
|
|
@@ -467,17 +683,17 @@
|
|
|
467
683
|
// Inline function 'kotlin.apply' call
|
|
468
684
|
var this_0 = StringBuilder_init_$Create$();
|
|
469
685
|
// Inline function 'kotlin.text.isEmpty' call
|
|
470
|
-
var this_1 = _this__u8e3s4.
|
|
686
|
+
var this_1 = _this__u8e3s4.q34();
|
|
471
687
|
if (charSequenceLength(this_1) === 0) {
|
|
472
688
|
this_0.q('/');
|
|
473
689
|
} else {
|
|
474
|
-
this_0.q(_this__u8e3s4.
|
|
690
|
+
this_0.q(_this__u8e3s4.q34());
|
|
475
691
|
}
|
|
476
692
|
// Inline function 'kotlin.text.isEmpty' call
|
|
477
|
-
var this_2 = _this__u8e3s4.
|
|
693
|
+
var this_2 = _this__u8e3s4.t34();
|
|
478
694
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
479
695
|
this_0.q('?');
|
|
480
|
-
this_0.q(_this__u8e3s4.
|
|
696
|
+
this_0.q(_this__u8e3s4.t34());
|
|
481
697
|
}
|
|
482
698
|
return this_0.toString();
|
|
483
699
|
}
|
|
@@ -489,10 +705,10 @@
|
|
|
489
705
|
}
|
|
490
706
|
var tmp;
|
|
491
707
|
if (content instanceof ByteArrayContent) {
|
|
492
|
-
tmp = fromInt(content.
|
|
708
|
+
tmp = fromInt(content.o35().length);
|
|
493
709
|
} else {
|
|
494
710
|
if (content instanceof ContentWrapper) {
|
|
495
|
-
tmp = computeRequestBodySize(content.
|
|
711
|
+
tmp = computeRequestBodySize(content.x35());
|
|
496
712
|
} else {
|
|
497
713
|
if (content instanceof NoContent) {
|
|
498
714
|
tmp = 0n;
|
|
@@ -509,27 +725,27 @@
|
|
|
509
725
|
return tmp;
|
|
510
726
|
}
|
|
511
727
|
function Context(context) {
|
|
512
|
-
this.
|
|
728
|
+
this.c5a_1 = context;
|
|
513
729
|
}
|
|
514
|
-
protoOf(Context).
|
|
515
|
-
return this.
|
|
730
|
+
protoOf(Context).d5a = function (content, $completion) {
|
|
731
|
+
return this.c5a_1.n2q(content, $completion);
|
|
516
732
|
};
|
|
517
|
-
protoOf(Context).
|
|
518
|
-
return this.
|
|
733
|
+
protoOf(Context).e5a = function ($completion) {
|
|
734
|
+
return this.c5a_1.o2q($completion);
|
|
519
735
|
};
|
|
520
736
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
521
|
-
this.
|
|
737
|
+
this.n5a_1 = $handler;
|
|
522
738
|
CoroutineImpl.call(this, resultContinuation);
|
|
523
739
|
}
|
|
524
|
-
protoOf(SendHook$install$slambda).
|
|
525
|
-
var tmp = this.
|
|
740
|
+
protoOf(SendHook$install$slambda).z3n = function ($this$intercept, it, $completion) {
|
|
741
|
+
var tmp = this.a3o($this$intercept, it, $completion);
|
|
526
742
|
tmp.c9_1 = Unit_instance;
|
|
527
743
|
tmp.d9_1 = null;
|
|
528
744
|
return tmp.i9();
|
|
529
745
|
};
|
|
530
746
|
protoOf(SendHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
531
747
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
532
|
-
return this.
|
|
748
|
+
return this.z3n(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
533
749
|
};
|
|
534
750
|
protoOf(SendHook$install$slambda).i9 = function () {
|
|
535
751
|
var suspendResult = this.c9_1;
|
|
@@ -540,7 +756,7 @@
|
|
|
540
756
|
case 0:
|
|
541
757
|
this.b9_1 = 2;
|
|
542
758
|
this.a9_1 = 1;
|
|
543
|
-
suspendResult = this.
|
|
759
|
+
suspendResult = this.n5a_1(new Context(this.o5a_1), this.o5a_1.j2r_1, this);
|
|
544
760
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
545
761
|
return suspendResult;
|
|
546
762
|
}
|
|
@@ -562,52 +778,52 @@
|
|
|
562
778
|
}
|
|
563
779
|
while (true);
|
|
564
780
|
};
|
|
565
|
-
protoOf(SendHook$install$slambda).
|
|
566
|
-
var i = new SendHook$install$slambda(this.
|
|
567
|
-
i.
|
|
568
|
-
i.
|
|
781
|
+
protoOf(SendHook$install$slambda).a3o = function ($this$intercept, it, completion) {
|
|
782
|
+
var i = new SendHook$install$slambda(this.n5a_1, completion);
|
|
783
|
+
i.o5a_1 = $this$intercept;
|
|
784
|
+
i.p5a_1 = it;
|
|
569
785
|
return i;
|
|
570
786
|
};
|
|
571
787
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
572
788
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
573
789
|
var l = function ($this$intercept, it, $completion) {
|
|
574
|
-
return i.
|
|
790
|
+
return i.z3n($this$intercept, it, $completion);
|
|
575
791
|
};
|
|
576
792
|
l.$arity = 2;
|
|
577
793
|
return l;
|
|
578
794
|
}
|
|
579
795
|
function SendHook() {
|
|
580
796
|
}
|
|
581
|
-
protoOf(SendHook).
|
|
582
|
-
var tmp = Phases_getInstance().
|
|
583
|
-
client.
|
|
797
|
+
protoOf(SendHook).q5a = function (client, handler) {
|
|
798
|
+
var tmp = Phases_getInstance().q3p_1;
|
|
799
|
+
client.i3n_1.n2r(tmp, SendHook$install$slambda_0(handler, null));
|
|
584
800
|
};
|
|
585
|
-
protoOf(SendHook).
|
|
586
|
-
return this.
|
|
801
|
+
protoOf(SendHook).q3w = function (client, handler) {
|
|
802
|
+
return this.q5a(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
587
803
|
};
|
|
588
804
|
var SendHook_instance;
|
|
589
805
|
function SendHook_getInstance() {
|
|
590
806
|
return SendHook_instance;
|
|
591
807
|
}
|
|
592
808
|
function Context_0(context) {
|
|
593
|
-
this.
|
|
809
|
+
this.r5a_1 = context;
|
|
594
810
|
}
|
|
595
|
-
protoOf(Context_0).
|
|
596
|
-
return this.
|
|
811
|
+
protoOf(Context_0).p4l = function (response, $completion) {
|
|
812
|
+
return this.r5a_1.n2q(response, $completion);
|
|
597
813
|
};
|
|
598
814
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
599
|
-
this.
|
|
815
|
+
this.a5b_1 = $handler;
|
|
600
816
|
CoroutineImpl.call(this, resultContinuation);
|
|
601
817
|
}
|
|
602
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
603
|
-
var tmp = this.
|
|
818
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).c3x = function ($this$intercept, it, $completion) {
|
|
819
|
+
var tmp = this.d3x($this$intercept, it, $completion);
|
|
604
820
|
tmp.c9_1 = Unit_instance;
|
|
605
821
|
tmp.d9_1 = null;
|
|
606
822
|
return tmp.i9();
|
|
607
823
|
};
|
|
608
824
|
protoOf(ResponseAfterEncodingHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
609
825
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
610
|
-
return this.
|
|
826
|
+
return this.c3x(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
611
827
|
};
|
|
612
828
|
protoOf(ResponseAfterEncodingHook$install$slambda).i9 = function () {
|
|
613
829
|
var suspendResult = this.c9_1;
|
|
@@ -618,7 +834,7 @@
|
|
|
618
834
|
case 0:
|
|
619
835
|
this.b9_1 = 2;
|
|
620
836
|
this.a9_1 = 1;
|
|
621
|
-
suspendResult = this.
|
|
837
|
+
suspendResult = this.a5b_1(new Context_0(this.b5b_1), this.b5b_1.m2q(), this);
|
|
622
838
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
623
839
|
return suspendResult;
|
|
624
840
|
}
|
|
@@ -640,53 +856,53 @@
|
|
|
640
856
|
}
|
|
641
857
|
while (true);
|
|
642
858
|
};
|
|
643
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
644
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
645
|
-
i.
|
|
646
|
-
i.
|
|
859
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).d3x = function ($this$intercept, it, completion) {
|
|
860
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.a5b_1, completion);
|
|
861
|
+
i.b5b_1 = $this$intercept;
|
|
862
|
+
i.c5b_1 = it;
|
|
647
863
|
return i;
|
|
648
864
|
};
|
|
649
865
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
650
866
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
651
867
|
var l = function ($this$intercept, it, $completion) {
|
|
652
|
-
return i.
|
|
868
|
+
return i.c3x($this$intercept, it, $completion);
|
|
653
869
|
};
|
|
654
870
|
l.$arity = 2;
|
|
655
871
|
return l;
|
|
656
872
|
}
|
|
657
873
|
function ResponseAfterEncodingHook() {
|
|
658
874
|
}
|
|
659
|
-
protoOf(ResponseAfterEncodingHook).
|
|
875
|
+
protoOf(ResponseAfterEncodingHook).d5b = function (client, handler) {
|
|
660
876
|
var afterState = new PipelinePhase('AfterState');
|
|
661
|
-
client.
|
|
662
|
-
client.
|
|
877
|
+
client.j3n_1.k2r(Phases_getInstance_0().g3x_1, afterState);
|
|
878
|
+
client.j3n_1.n2r(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
663
879
|
};
|
|
664
|
-
protoOf(ResponseAfterEncodingHook).
|
|
665
|
-
return this.
|
|
880
|
+
protoOf(ResponseAfterEncodingHook).q3w = function (client, handler) {
|
|
881
|
+
return this.d5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
666
882
|
};
|
|
667
883
|
var ResponseAfterEncodingHook_instance;
|
|
668
884
|
function ResponseAfterEncodingHook_getInstance() {
|
|
669
885
|
return ResponseAfterEncodingHook_instance;
|
|
670
886
|
}
|
|
671
887
|
function Context_1(context) {
|
|
672
|
-
this.
|
|
888
|
+
this.e5b_1 = context;
|
|
673
889
|
}
|
|
674
|
-
protoOf(Context_1).
|
|
675
|
-
return this.
|
|
890
|
+
protoOf(Context_1).f5b = function ($completion) {
|
|
891
|
+
return this.e5b_1.o2q($completion);
|
|
676
892
|
};
|
|
677
893
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
678
|
-
this.
|
|
894
|
+
this.o5b_1 = $handler;
|
|
679
895
|
CoroutineImpl.call(this, resultContinuation);
|
|
680
896
|
}
|
|
681
|
-
protoOf(ResponseHook$install$slambda).
|
|
682
|
-
var tmp = this.
|
|
897
|
+
protoOf(ResponseHook$install$slambda).c3x = function ($this$intercept, it, $completion) {
|
|
898
|
+
var tmp = this.d3x($this$intercept, it, $completion);
|
|
683
899
|
tmp.c9_1 = Unit_instance;
|
|
684
900
|
tmp.d9_1 = null;
|
|
685
901
|
return tmp.i9();
|
|
686
902
|
};
|
|
687
903
|
protoOf(ResponseHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
688
904
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
689
|
-
return this.
|
|
905
|
+
return this.c3x(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
690
906
|
};
|
|
691
907
|
protoOf(ResponseHook$install$slambda).i9 = function () {
|
|
692
908
|
var suspendResult = this.c9_1;
|
|
@@ -697,7 +913,7 @@
|
|
|
697
913
|
case 0:
|
|
698
914
|
this.b9_1 = 2;
|
|
699
915
|
this.a9_1 = 1;
|
|
700
|
-
suspendResult = this.
|
|
916
|
+
suspendResult = this.o5b_1(new Context_1(this.p5b_1), this.p5b_1.m2q(), this);
|
|
701
917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
702
918
|
return suspendResult;
|
|
703
919
|
}
|
|
@@ -719,52 +935,52 @@
|
|
|
719
935
|
}
|
|
720
936
|
while (true);
|
|
721
937
|
};
|
|
722
|
-
protoOf(ResponseHook$install$slambda).
|
|
723
|
-
var i = new ResponseHook$install$slambda(this.
|
|
724
|
-
i.
|
|
725
|
-
i.
|
|
938
|
+
protoOf(ResponseHook$install$slambda).d3x = function ($this$intercept, it, completion) {
|
|
939
|
+
var i = new ResponseHook$install$slambda(this.o5b_1, completion);
|
|
940
|
+
i.p5b_1 = $this$intercept;
|
|
941
|
+
i.q5b_1 = it;
|
|
726
942
|
return i;
|
|
727
943
|
};
|
|
728
944
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
729
945
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
730
946
|
var l = function ($this$intercept, it, $completion) {
|
|
731
|
-
return i.
|
|
947
|
+
return i.c3x($this$intercept, it, $completion);
|
|
732
948
|
};
|
|
733
949
|
l.$arity = 2;
|
|
734
950
|
return l;
|
|
735
951
|
}
|
|
736
952
|
function ResponseHook() {
|
|
737
953
|
}
|
|
738
|
-
protoOf(ResponseHook).
|
|
739
|
-
var tmp = Phases_getInstance_0().
|
|
740
|
-
client.
|
|
954
|
+
protoOf(ResponseHook).r5b = function (client, handler) {
|
|
955
|
+
var tmp = Phases_getInstance_0().g3x_1;
|
|
956
|
+
client.j3n_1.n2r(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
741
957
|
};
|
|
742
|
-
protoOf(ResponseHook).
|
|
743
|
-
return this.
|
|
958
|
+
protoOf(ResponseHook).q3w = function (client, handler) {
|
|
959
|
+
return this.r5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
744
960
|
};
|
|
745
961
|
var ResponseHook_instance;
|
|
746
962
|
function ResponseHook_getInstance() {
|
|
747
963
|
return ResponseHook_instance;
|
|
748
964
|
}
|
|
749
965
|
function Context_2(context) {
|
|
750
|
-
this.
|
|
966
|
+
this.s5b_1 = context;
|
|
751
967
|
}
|
|
752
|
-
protoOf(Context_2).
|
|
753
|
-
return this.
|
|
968
|
+
protoOf(Context_2).t5b = function ($completion) {
|
|
969
|
+
return this.s5b_1.o2q($completion);
|
|
754
970
|
};
|
|
755
971
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
756
|
-
this.
|
|
972
|
+
this.c5c_1 = $handler;
|
|
757
973
|
CoroutineImpl.call(this, resultContinuation);
|
|
758
974
|
}
|
|
759
|
-
protoOf(ReceiveHook$install$slambda).
|
|
760
|
-
var tmp = this.
|
|
975
|
+
protoOf(ReceiveHook$install$slambda).u3o = function ($this$intercept, it, $completion) {
|
|
976
|
+
var tmp = this.v3o($this$intercept, it, $completion);
|
|
761
977
|
tmp.c9_1 = Unit_instance;
|
|
762
978
|
tmp.d9_1 = null;
|
|
763
979
|
return tmp.i9();
|
|
764
980
|
};
|
|
765
981
|
protoOf(ReceiveHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
766
982
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
767
|
-
return this.
|
|
983
|
+
return this.u3o(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
768
984
|
};
|
|
769
985
|
protoOf(ReceiveHook$install$slambda).i9 = function () {
|
|
770
986
|
var suspendResult = this.c9_1;
|
|
@@ -775,7 +991,7 @@
|
|
|
775
991
|
case 0:
|
|
776
992
|
this.b9_1 = 2;
|
|
777
993
|
this.a9_1 = 1;
|
|
778
|
-
suspendResult = this.
|
|
994
|
+
suspendResult = this.c5c_1(new Context_2(this.d5c_1), this.d5c_1.j2r_1, this);
|
|
779
995
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
780
996
|
return suspendResult;
|
|
781
997
|
}
|
|
@@ -797,28 +1013,28 @@
|
|
|
797
1013
|
}
|
|
798
1014
|
while (true);
|
|
799
1015
|
};
|
|
800
|
-
protoOf(ReceiveHook$install$slambda).
|
|
801
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
802
|
-
i.
|
|
803
|
-
i.
|
|
1016
|
+
protoOf(ReceiveHook$install$slambda).v3o = function ($this$intercept, it, completion) {
|
|
1017
|
+
var i = new ReceiveHook$install$slambda(this.c5c_1, completion);
|
|
1018
|
+
i.d5c_1 = $this$intercept;
|
|
1019
|
+
i.e5c_1 = it;
|
|
804
1020
|
return i;
|
|
805
1021
|
};
|
|
806
1022
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
807
1023
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
808
1024
|
var l = function ($this$intercept, it, $completion) {
|
|
809
|
-
return i.
|
|
1025
|
+
return i.u3o($this$intercept, it, $completion);
|
|
810
1026
|
};
|
|
811
1027
|
l.$arity = 2;
|
|
812
1028
|
return l;
|
|
813
1029
|
}
|
|
814
1030
|
function ReceiveHook() {
|
|
815
1031
|
}
|
|
816
|
-
protoOf(ReceiveHook).
|
|
817
|
-
var tmp = Phases_getInstance_1().
|
|
818
|
-
client.
|
|
1032
|
+
protoOf(ReceiveHook).f5c = function (client, handler) {
|
|
1033
|
+
var tmp = Phases_getInstance_1().e3q_1;
|
|
1034
|
+
client.h3n_1.n2r(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
819
1035
|
};
|
|
820
|
-
protoOf(ReceiveHook).
|
|
821
|
-
return this.
|
|
1036
|
+
protoOf(ReceiveHook).q3w = function (client, handler) {
|
|
1037
|
+
return this.f5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
822
1038
|
};
|
|
823
1039
|
var ReceiveHook_instance;
|
|
824
1040
|
function ReceiveHook_getInstance() {
|
|
@@ -833,122 +1049,46 @@
|
|
|
833
1049
|
}
|
|
834
1050
|
function Logging$lambda($this$createClientPlugin) {
|
|
835
1051
|
_init_properties_Logging_kt__66pui5();
|
|
836
|
-
var logger = $this$createClientPlugin.
|
|
837
|
-
var level = $this$createClientPlugin.
|
|
838
|
-
var filters = $this$createClientPlugin.
|
|
839
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
840
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
1052
|
+
var logger = $this$createClientPlugin.k3x_1.b5a();
|
|
1053
|
+
var level = $this$createClientPlugin.k3x_1.y59_1;
|
|
1054
|
+
var filters = $this$createClientPlugin.k3x_1.u59_1;
|
|
1055
|
+
var sanitizedHeaders = $this$createClientPlugin.k3x_1.v59_1;
|
|
1056
|
+
var okHttpFormat = $this$createClientPlugin.k3x_1.x59_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1057
|
+
var bodyFilter = $this$createClientPlugin.k3x_1.z59_1;
|
|
841
1058
|
var tmp = SendHook_instance;
|
|
842
|
-
$this$createClientPlugin.
|
|
1059
|
+
$this$createClientPlugin.n3x(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
843
1060
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
844
|
-
$this$createClientPlugin.
|
|
1061
|
+
$this$createClientPlugin.n3x(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
845
1062
|
var tmp_1 = ResponseHook_instance;
|
|
846
|
-
$this$createClientPlugin.
|
|
1063
|
+
$this$createClientPlugin.n3x(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
847
1064
|
var tmp_2 = ReceiveHook_instance;
|
|
848
|
-
$this$createClientPlugin.
|
|
1065
|
+
$this$createClientPlugin.n3x(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
849
1066
|
if (okHttpFormat)
|
|
850
1067
|
return Unit_instance;
|
|
851
|
-
if (!level.
|
|
1068
|
+
if (!level.m59_1)
|
|
852
1069
|
return Unit_instance;
|
|
853
1070
|
var tmp_3 = get_ResponseObserver();
|
|
854
|
-
var responseObserver = tmp_3.
|
|
855
|
-
get_ResponseObserver().
|
|
1071
|
+
var responseObserver = tmp_3.l3q(Logging$lambda$lambda(level));
|
|
1072
|
+
get_ResponseObserver().m3q(responseObserver, $this$createClientPlugin.j3x_1);
|
|
856
1073
|
return Unit_instance;
|
|
857
1074
|
}
|
|
858
|
-
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
859
|
-
this.j4z_1 = $channel;
|
|
860
|
-
this.k4z_1 = $firstChunk;
|
|
861
|
-
this.l4z_1 = $firstReadSize;
|
|
862
|
-
this.m4z_1 = $body;
|
|
863
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
864
|
-
}
|
|
865
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).p4z = function ($this$async, $completion) {
|
|
866
|
-
var tmp = this.w1u($this$async, $completion);
|
|
867
|
-
tmp.c9_1 = Unit_instance;
|
|
868
|
-
tmp.d9_1 = null;
|
|
869
|
-
return tmp.i9();
|
|
870
|
-
};
|
|
871
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).u9 = function (p1, $completion) {
|
|
872
|
-
return this.p4z((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
873
|
-
};
|
|
874
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).i9 = function () {
|
|
875
|
-
var suspendResult = this.c9_1;
|
|
876
|
-
$sm: do
|
|
877
|
-
try {
|
|
878
|
-
var tmp = this.a9_1;
|
|
879
|
-
switch (tmp) {
|
|
880
|
-
case 0:
|
|
881
|
-
this.b9_1 = 4;
|
|
882
|
-
this.a9_1 = 1;
|
|
883
|
-
suspendResult = writeFully(this.j4z_1, this.k4z_1, 0, this.l4z_1, this);
|
|
884
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
885
|
-
return suspendResult;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
continue $sm;
|
|
889
|
-
case 1:
|
|
890
|
-
this.a9_1 = 2;
|
|
891
|
-
suspendResult = copyTo(this.m4z_1, this.j4z_1, this);
|
|
892
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
893
|
-
return suspendResult;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
continue $sm;
|
|
897
|
-
case 2:
|
|
898
|
-
this.o4z_1 = suspendResult;
|
|
899
|
-
this.a9_1 = 3;
|
|
900
|
-
suspendResult = this.j4z_1.w1l(this);
|
|
901
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
902
|
-
return suspendResult;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
continue $sm;
|
|
906
|
-
case 3:
|
|
907
|
-
return this.o4z_1;
|
|
908
|
-
case 4:
|
|
909
|
-
throw this.d9_1;
|
|
910
|
-
}
|
|
911
|
-
} catch ($p) {
|
|
912
|
-
var e = $p;
|
|
913
|
-
if (this.b9_1 === 4) {
|
|
914
|
-
throw e;
|
|
915
|
-
} else {
|
|
916
|
-
this.a9_1 = this.b9_1;
|
|
917
|
-
this.d9_1 = e;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
while (true);
|
|
921
|
-
};
|
|
922
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).w1u = function ($this$async, completion) {
|
|
923
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.j4z_1, this.k4z_1, this.l4z_1, this.m4z_1, completion);
|
|
924
|
-
i.n4z_1 = $this$async;
|
|
925
|
-
return i;
|
|
926
|
-
};
|
|
927
|
-
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
928
|
-
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
929
|
-
var l = function ($this$async, $completion) {
|
|
930
|
-
return i.p4z($this$async, $completion);
|
|
931
|
-
};
|
|
932
|
-
l.$arity = 1;
|
|
933
|
-
return l;
|
|
934
|
-
}
|
|
935
1075
|
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
936
1076
|
_init_properties_Logging_kt__66pui5();
|
|
937
1077
|
return it;
|
|
938
1078
|
}
|
|
939
1079
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
1080
|
+
this.o5c_1 = $content;
|
|
1081
|
+
this.p5c_1 = $channel;
|
|
942
1082
|
CoroutineImpl.call(this, resultContinuation);
|
|
943
1083
|
}
|
|
944
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
945
|
-
var tmp = this.
|
|
1084
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).b1x = function ($this$launch, $completion) {
|
|
1085
|
+
var tmp = this.c1x($this$launch, $completion);
|
|
946
1086
|
tmp.c9_1 = Unit_instance;
|
|
947
1087
|
tmp.d9_1 = null;
|
|
948
1088
|
return tmp.i9();
|
|
949
1089
|
};
|
|
950
1090
|
protoOf(Logging$lambda$logOutgoingContent$slambda).u9 = function (p1, $completion) {
|
|
951
|
-
return this.
|
|
1091
|
+
return this.b1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
952
1092
|
};
|
|
953
1093
|
protoOf(Logging$lambda$logOutgoingContent$slambda).i9 = function () {
|
|
954
1094
|
var suspendResult = this.c9_1;
|
|
@@ -959,14 +1099,14 @@
|
|
|
959
1099
|
case 0:
|
|
960
1100
|
this.b9_1 = 2;
|
|
961
1101
|
this.a9_1 = 1;
|
|
962
|
-
suspendResult = this.
|
|
1102
|
+
suspendResult = this.o5c_1.t35(this.p5c_1, this);
|
|
963
1103
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
964
1104
|
return suspendResult;
|
|
965
1105
|
}
|
|
966
1106
|
|
|
967
1107
|
continue $sm;
|
|
968
1108
|
case 1:
|
|
969
|
-
this.
|
|
1109
|
+
this.p5c_1.l4();
|
|
970
1110
|
return Unit_instance;
|
|
971
1111
|
case 2:
|
|
972
1112
|
throw this.d9_1;
|
|
@@ -982,22 +1122,22 @@
|
|
|
982
1122
|
}
|
|
983
1123
|
while (true);
|
|
984
1124
|
};
|
|
985
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
986
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
987
|
-
i.
|
|
1125
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).c1x = function ($this$launch, completion) {
|
|
1126
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.o5c_1, this.p5c_1, completion);
|
|
1127
|
+
i.q5c_1 = $this$launch;
|
|
988
1128
|
return i;
|
|
989
1129
|
};
|
|
990
1130
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
991
1131
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
992
1132
|
var l = function ($this$launch, $completion) {
|
|
993
|
-
return i.
|
|
1133
|
+
return i.b1x($this$launch, $completion);
|
|
994
1134
|
};
|
|
995
1135
|
l.$arity = 1;
|
|
996
1136
|
return l;
|
|
997
1137
|
}
|
|
998
1138
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
999
1139
|
_init_properties_Logging_kt__66pui5();
|
|
1000
|
-
return GZipEncoder_getInstance().
|
|
1140
|
+
return GZipEncoder_getInstance().k2n(channel);
|
|
1001
1141
|
}
|
|
1002
1142
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1003
1143
|
return function ($this$replaceResponse) {
|
|
@@ -1005,20 +1145,20 @@
|
|
|
1005
1145
|
};
|
|
1006
1146
|
}
|
|
1007
1147
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1148
|
+
this.z5c_1 = $channel;
|
|
1149
|
+
this.a5d_1 = $charset;
|
|
1150
|
+
this.b5d_1 = $requestLog;
|
|
1151
|
+
this.c5d_1 = $logger;
|
|
1012
1152
|
CoroutineImpl.call(this, resultContinuation);
|
|
1013
1153
|
}
|
|
1014
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1015
|
-
var tmp = this.
|
|
1154
|
+
protoOf(Logging$lambda$logRequestBody$slambda).b1x = function ($this$launch, $completion) {
|
|
1155
|
+
var tmp = this.c1x($this$launch, $completion);
|
|
1016
1156
|
tmp.c9_1 = Unit_instance;
|
|
1017
1157
|
tmp.d9_1 = null;
|
|
1018
1158
|
return tmp.i9();
|
|
1019
1159
|
};
|
|
1020
1160
|
protoOf(Logging$lambda$logRequestBody$slambda).u9 = function (p1, $completion) {
|
|
1021
|
-
return this.
|
|
1161
|
+
return this.b1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1022
1162
|
};
|
|
1023
1163
|
protoOf(Logging$lambda$logRequestBody$slambda).i9 = function () {
|
|
1024
1164
|
var suspendResult = this.c9_1;
|
|
@@ -1032,8 +1172,8 @@
|
|
|
1032
1172
|
continue $sm;
|
|
1033
1173
|
case 1:
|
|
1034
1174
|
this.b9_1 = 6;
|
|
1035
|
-
var tmp0 = this.
|
|
1036
|
-
this.
|
|
1175
|
+
var tmp0 = this.z5c_1;
|
|
1176
|
+
this.g5d_1 = this.a5d_1;
|
|
1037
1177
|
this.b9_1 = 3;
|
|
1038
1178
|
this.a9_1 = 2;
|
|
1039
1179
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1044,7 +1184,7 @@
|
|
|
1044
1184
|
continue $sm;
|
|
1045
1185
|
case 2:
|
|
1046
1186
|
var ARGUMENT = suspendResult;
|
|
1047
|
-
this.
|
|
1187
|
+
this.f5d_1 = readText(ARGUMENT, this.g5d_1);
|
|
1048
1188
|
this.b9_1 = 6;
|
|
1049
1189
|
this.a9_1 = 4;
|
|
1050
1190
|
continue $sm;
|
|
@@ -1054,7 +1194,7 @@
|
|
|
1054
1194
|
if (tmp_0 instanceof Error) {
|
|
1055
1195
|
var cause = this.d9_1;
|
|
1056
1196
|
var tmp_1 = this;
|
|
1057
|
-
tmp_1.
|
|
1197
|
+
tmp_1.f5d_1 = null;
|
|
1058
1198
|
this.a9_1 = 4;
|
|
1059
1199
|
continue $sm;
|
|
1060
1200
|
} else {
|
|
@@ -1063,27 +1203,27 @@
|
|
|
1063
1203
|
|
|
1064
1204
|
case 4:
|
|
1065
1205
|
this.b9_1 = 6;
|
|
1066
|
-
var tmp0_elvis_lhs = this.
|
|
1206
|
+
var tmp0_elvis_lhs = this.f5d_1;
|
|
1067
1207
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1068
|
-
var tmp0_0 = this.
|
|
1208
|
+
var tmp0_0 = this.b5d_1;
|
|
1069
1209
|
var value = 'BODY START';
|
|
1070
1210
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1211
|
+
this.b5d_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1212
|
+
this.e5d_1 = this.b5d_1.q('BODY END');
|
|
1073
1213
|
this.b9_1 = 7;
|
|
1074
1214
|
this.a9_1 = 5;
|
|
1075
1215
|
continue $sm;
|
|
1076
1216
|
case 5:
|
|
1077
|
-
this.
|
|
1217
|
+
this.e5d_1;
|
|
1078
1218
|
this.b9_1 = 7;
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1219
|
+
this.c5d_1.z57(this.b5d_1.toString());
|
|
1220
|
+
this.c5d_1.d58();
|
|
1081
1221
|
return Unit_instance;
|
|
1082
1222
|
case 6:
|
|
1083
1223
|
this.b9_1 = 7;
|
|
1084
1224
|
var t = this.d9_1;
|
|
1085
|
-
this.
|
|
1086
|
-
this.
|
|
1225
|
+
this.c5d_1.z57(this.b5d_1.toString());
|
|
1226
|
+
this.c5d_1.d58();
|
|
1087
1227
|
throw t;
|
|
1088
1228
|
case 7:
|
|
1089
1229
|
throw this.d9_1;
|
|
@@ -1099,15 +1239,15 @@
|
|
|
1099
1239
|
}
|
|
1100
1240
|
while (true);
|
|
1101
1241
|
};
|
|
1102
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1103
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1104
|
-
i.
|
|
1242
|
+
protoOf(Logging$lambda$logRequestBody$slambda).c1x = function ($this$launch, completion) {
|
|
1243
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.z5c_1, this.a5d_1, this.b5d_1, this.c5d_1, completion);
|
|
1244
|
+
i.d5d_1 = $this$launch;
|
|
1105
1245
|
return i;
|
|
1106
1246
|
};
|
|
1107
1247
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1108
1248
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1109
1249
|
var l = function ($this$launch, $completion) {
|
|
1110
|
-
return i.
|
|
1250
|
+
return i.b1x($this$launch, $completion);
|
|
1111
1251
|
};
|
|
1112
1252
|
l.$arity = 1;
|
|
1113
1253
|
return l;
|
|
@@ -1156,19 +1296,13 @@
|
|
|
1156
1296
|
function invoke$isBody(level) {
|
|
1157
1297
|
return level.equals(LogLevel_BODY_getInstance()) || level.equals(LogLevel_ALL_getInstance());
|
|
1158
1298
|
}
|
|
1159
|
-
function invoke$
|
|
1160
|
-
var tmp = new $invoke$
|
|
1161
|
-
tmp.c9_1 = Unit_instance;
|
|
1162
|
-
tmp.d9_1 = null;
|
|
1163
|
-
return tmp.i9();
|
|
1164
|
-
}
|
|
1165
|
-
function invoke$logRequestBody($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion) {
|
|
1166
|
-
var tmp = new $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion);
|
|
1299
|
+
function invoke$logRequestBody(bodyFilter, url, content, contentLength, headers, method, logLines, body, $completion) {
|
|
1300
|
+
var tmp = new $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, $completion);
|
|
1167
1301
|
tmp.c9_1 = Unit_instance;
|
|
1168
1302
|
tmp.d9_1 = null;
|
|
1169
1303
|
return tmp.i9();
|
|
1170
1304
|
}
|
|
1171
|
-
function invoke$logOutgoingContent($this_createClientPlugin, content, method, headers, logLines, process, $completion) {
|
|
1305
|
+
function invoke$logOutgoingContent($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, $completion) {
|
|
1172
1306
|
var tmp;
|
|
1173
1307
|
if (process === VOID) {
|
|
1174
1308
|
tmp = Logging$lambda$logOutgoingContent$lambda;
|
|
@@ -1176,25 +1310,25 @@
|
|
|
1176
1310
|
tmp = process;
|
|
1177
1311
|
}
|
|
1178
1312
|
process = tmp;
|
|
1179
|
-
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, $completion);
|
|
1313
|
+
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, $completion);
|
|
1180
1314
|
tmp_0.c9_1 = Unit_instance;
|
|
1181
1315
|
tmp_0.d9_1 = null;
|
|
1182
1316
|
return tmp_0.i9();
|
|
1183
1317
|
}
|
|
1184
|
-
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion) {
|
|
1185
|
-
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion);
|
|
1318
|
+
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, $completion) {
|
|
1319
|
+
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, $completion);
|
|
1186
1320
|
tmp.c9_1 = Unit_instance;
|
|
1187
1321
|
tmp.d9_1 = null;
|
|
1188
1322
|
return tmp.i9();
|
|
1189
1323
|
}
|
|
1190
|
-
function invoke$logResponseBody(
|
|
1191
|
-
var tmp = new $invoke$logResponseBodyCOROUTINE$(
|
|
1324
|
+
function invoke$logResponseBody(bodyFilter, response, body, logLines, $completion) {
|
|
1325
|
+
var tmp = new $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, $completion);
|
|
1192
1326
|
tmp.c9_1 = Unit_instance;
|
|
1193
1327
|
tmp.d9_1 = null;
|
|
1194
1328
|
return tmp.i9();
|
|
1195
1329
|
}
|
|
1196
|
-
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level,
|
|
1197
|
-
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level,
|
|
1330
|
+
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level, bodyFilter, response, logLines, $completion) {
|
|
1331
|
+
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, $completion);
|
|
1198
1332
|
tmp.c9_1 = Unit_instance;
|
|
1199
1333
|
tmp.d9_1 = null;
|
|
1200
1334
|
return tmp.i9();
|
|
@@ -1202,47 +1336,47 @@
|
|
|
1202
1336
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1203
1337
|
var requestLog = StringBuilder_init_$Create$();
|
|
1204
1338
|
// Inline function 'kotlin.text.appendLine' call
|
|
1205
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1339
|
+
var value = 'BODY Content-Type: ' + toString_0(content.l35());
|
|
1206
1340
|
// Inline function 'kotlin.text.appendLine' call
|
|
1207
1341
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1208
|
-
var tmp0_safe_receiver = content.
|
|
1342
|
+
var tmp0_safe_receiver = content.l35();
|
|
1209
1343
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1210
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
1344
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().b1y_1 : tmp1_elvis_lhs;
|
|
1211
1345
|
var channel = new ByteChannel();
|
|
1212
1346
|
var tmp = GlobalScope_instance;
|
|
1213
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1347
|
+
var tmp_0 = Dispatchers_getInstance().m15_1.ch(MDCContext());
|
|
1214
1348
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1215
1349
|
return observe(content, channel, $completion);
|
|
1216
1350
|
}
|
|
1217
1351
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1218
|
-
if (level.
|
|
1219
|
-
logger.
|
|
1352
|
+
if (level.k59_1) {
|
|
1353
|
+
logger.f57('REQUEST ' + Url(context.g3p_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1220
1354
|
}
|
|
1221
1355
|
}
|
|
1222
1356
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1223
|
-
var tmp = request.
|
|
1357
|
+
var tmp = request.j3p_1;
|
|
1224
1358
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1225
1359
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1226
|
-
request.
|
|
1360
|
+
request.l3p_1.z2j(get_ClientCallLogger(), callLogger);
|
|
1227
1361
|
// Inline function 'kotlin.text.buildString' call
|
|
1228
1362
|
// Inline function 'kotlin.apply' call
|
|
1229
1363
|
var this_0 = StringBuilder_init_$Create$();
|
|
1230
|
-
if (level.
|
|
1364
|
+
if (level.k59_1) {
|
|
1231
1365
|
// Inline function 'kotlin.text.appendLine' call
|
|
1232
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1366
|
+
var value = 'REQUEST: ' + Url(request.g3p_1).toString();
|
|
1233
1367
|
// Inline function 'kotlin.text.appendLine' call
|
|
1234
1368
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1235
1369
|
// Inline function 'kotlin.text.appendLine' call
|
|
1236
|
-
var value_0 = 'METHOD: ' + request.
|
|
1370
|
+
var value_0 = 'METHOD: ' + request.h3p_1.toString();
|
|
1237
1371
|
// Inline function 'kotlin.text.appendLine' call
|
|
1238
1372
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1239
1373
|
}
|
|
1240
|
-
if (level.
|
|
1374
|
+
if (level.l59_1) {
|
|
1241
1375
|
// Inline function 'kotlin.text.appendLine' call
|
|
1242
1376
|
var value_1 = 'COMMON HEADERS';
|
|
1243
1377
|
// Inline function 'kotlin.text.appendLine' call
|
|
1244
1378
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1245
|
-
logHeaders(this_0, request.
|
|
1379
|
+
logHeaders(this_0, request.i3p_1.y2n(), sanitizedHeaders);
|
|
1246
1380
|
// Inline function 'kotlin.text.appendLine' call
|
|
1247
1381
|
var value_2 = 'CONTENT HEADERS';
|
|
1248
1382
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -1253,7 +1387,7 @@
|
|
|
1253
1387
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1254
1388
|
while (_iterator__ex2g4s.u()) {
|
|
1255
1389
|
var element = _iterator__ex2g4s.v();
|
|
1256
|
-
if (element.
|
|
1390
|
+
if (element.g5g_1('Content-Length')) {
|
|
1257
1391
|
tmp$ret$9 = element;
|
|
1258
1392
|
break $l$block;
|
|
1259
1393
|
}
|
|
@@ -1261,14 +1395,14 @@
|
|
|
1261
1395
|
tmp$ret$9 = null;
|
|
1262
1396
|
}
|
|
1263
1397
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
1264
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1398
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f5g_1;
|
|
1265
1399
|
var tmp$ret$11;
|
|
1266
1400
|
$l$block_0: {
|
|
1267
1401
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1268
1402
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1269
1403
|
while (_iterator__ex2g4s_0.u()) {
|
|
1270
1404
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1271
|
-
if (element_0.
|
|
1405
|
+
if (element_0.g5g_1('Content-Type')) {
|
|
1272
1406
|
tmp$ret$11 = element_0;
|
|
1273
1407
|
break $l$block_0;
|
|
1274
1408
|
}
|
|
@@ -1276,66 +1410,65 @@
|
|
|
1276
1410
|
tmp$ret$11 = null;
|
|
1277
1411
|
}
|
|
1278
1412
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1279
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1280
|
-
var tmp2_safe_receiver = content.
|
|
1413
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f5g_1;
|
|
1414
|
+
var tmp2_safe_receiver = content.n35();
|
|
1281
1415
|
if (tmp2_safe_receiver == null)
|
|
1282
1416
|
null;
|
|
1283
1417
|
else {
|
|
1284
1418
|
// Inline function 'kotlin.let' call
|
|
1285
|
-
|
|
1286
|
-
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1419
|
+
logHeader(this_0, 'Content-Length', contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1287
1420
|
}
|
|
1288
|
-
var tmp3_safe_receiver = content.
|
|
1421
|
+
var tmp3_safe_receiver = content.l35();
|
|
1289
1422
|
if (tmp3_safe_receiver == null)
|
|
1290
1423
|
null;
|
|
1291
1424
|
else {
|
|
1292
1425
|
// Inline function 'kotlin.let' call
|
|
1293
|
-
|
|
1294
|
-
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1426
|
+
logHeader(this_0, 'Content-Type', contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1295
1427
|
}
|
|
1296
|
-
logHeaders(this_0, content.
|
|
1428
|
+
logHeaders(this_0, content.n2z().y2n(), sanitizedHeaders);
|
|
1297
1429
|
}
|
|
1298
1430
|
var message = this_0.toString();
|
|
1299
1431
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1300
1432
|
if (charSequenceLength(message) > 0) {
|
|
1301
|
-
callLogger.
|
|
1433
|
+
callLogger.z57(message);
|
|
1302
1434
|
}
|
|
1303
|
-
var
|
|
1435
|
+
var tmp_0;
|
|
1304
1436
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1305
1437
|
if (charSequenceLength(message) === 0) {
|
|
1306
|
-
|
|
1438
|
+
tmp_0 = true;
|
|
1307
1439
|
} else {
|
|
1308
|
-
|
|
1440
|
+
tmp_0 = !level.m59_1;
|
|
1309
1441
|
}
|
|
1310
|
-
if (
|
|
1311
|
-
callLogger.
|
|
1442
|
+
if (tmp_0) {
|
|
1443
|
+
callLogger.d58();
|
|
1312
1444
|
return null;
|
|
1313
1445
|
}
|
|
1314
1446
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1315
1447
|
}
|
|
1316
1448
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1317
|
-
if (!level.
|
|
1449
|
+
if (!level.k59_1)
|
|
1318
1450
|
return Unit_instance;
|
|
1319
|
-
log.q('RESPONSE ' + request.
|
|
1320
|
-
}
|
|
1321
|
-
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1451
|
+
log.q('RESPONSE ' + request.x3q().toString() + ' failed with exception: ' + cause.toString());
|
|
1452
|
+
}
|
|
1453
|
+
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1454
|
+
this.p5g_1 = $okHttpFormat;
|
|
1455
|
+
this.q5g_1 = $logger;
|
|
1456
|
+
this.r5g_1 = $filters;
|
|
1457
|
+
this.s5g_1 = $sanitizedHeaders;
|
|
1458
|
+
this.t5g_1 = $level;
|
|
1459
|
+
this.u5g_1 = $this_createClientPlugin;
|
|
1460
|
+
this.v5g_1 = $bodyFilter;
|
|
1328
1461
|
CoroutineImpl.call(this, resultContinuation);
|
|
1329
1462
|
}
|
|
1330
|
-
protoOf(Logging$lambda$slambda).
|
|
1331
|
-
var tmp = this.
|
|
1463
|
+
protoOf(Logging$lambda$slambda).e5h = function ($this$on, request, $completion) {
|
|
1464
|
+
var tmp = this.f5h($this$on, request, $completion);
|
|
1332
1465
|
tmp.c9_1 = Unit_instance;
|
|
1333
1466
|
tmp.d9_1 = null;
|
|
1334
1467
|
return tmp.i9();
|
|
1335
1468
|
};
|
|
1336
1469
|
protoOf(Logging$lambda$slambda).v9 = function (p1, p2, $completion) {
|
|
1337
1470
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1338
|
-
return this.
|
|
1471
|
+
return this.e5h(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1339
1472
|
};
|
|
1340
1473
|
protoOf(Logging$lambda$slambda).i9 = function () {
|
|
1341
1474
|
var suspendResult = this.c9_1;
|
|
@@ -1345,16 +1478,16 @@
|
|
|
1345
1478
|
switch (tmp) {
|
|
1346
1479
|
case 0:
|
|
1347
1480
|
this.b9_1 = 16;
|
|
1348
|
-
if (!invoke$shouldBeLogged(this.
|
|
1349
|
-
this.
|
|
1481
|
+
if (!invoke$shouldBeLogged(this.r5g_1, this.x5g_1)) {
|
|
1482
|
+
this.x5g_1.l3p_1.z2j(get_DisableLogging(), Unit_instance);
|
|
1350
1483
|
return Unit_instance;
|
|
1351
1484
|
}
|
|
1352
1485
|
|
|
1353
|
-
if (this.
|
|
1486
|
+
if (this.p5g_1) {
|
|
1354
1487
|
var tmp_0 = this;
|
|
1355
|
-
tmp_0.
|
|
1488
|
+
tmp_0.a5h_1 = ArrayList_init_$Create$();
|
|
1356
1489
|
this.a9_1 = 10;
|
|
1357
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1490
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.s5g_1, this.t5g_1, this.u5g_1, this.v5g_1, this.x5g_1, this.a5h_1, this);
|
|
1358
1491
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1359
1492
|
return suspendResult;
|
|
1360
1493
|
}
|
|
@@ -1367,14 +1500,14 @@
|
|
|
1367
1500
|
case 1:
|
|
1368
1501
|
this.b9_1 = 3;
|
|
1369
1502
|
this.a9_1 = 2;
|
|
1370
|
-
suspendResult = invoke$logRequest(this.
|
|
1503
|
+
suspendResult = invoke$logRequest(this.q5g_1, this.t5g_1, this.s5g_1, this.x5g_1, this);
|
|
1371
1504
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1372
1505
|
return suspendResult;
|
|
1373
1506
|
}
|
|
1374
1507
|
|
|
1375
1508
|
continue $sm;
|
|
1376
1509
|
case 2:
|
|
1377
|
-
this.
|
|
1510
|
+
this.d5h_1 = suspendResult;
|
|
1378
1511
|
this.b9_1 = 16;
|
|
1379
1512
|
this.a9_1 = 4;
|
|
1380
1513
|
continue $sm;
|
|
@@ -1384,7 +1517,7 @@
|
|
|
1384
1517
|
if (tmp_1 instanceof Error) {
|
|
1385
1518
|
var _unused_var__etf5q3 = this.d9_1;
|
|
1386
1519
|
var tmp_2 = this;
|
|
1387
|
-
tmp_2.
|
|
1520
|
+
tmp_2.d5h_1 = null;
|
|
1388
1521
|
this.a9_1 = 4;
|
|
1389
1522
|
continue $sm;
|
|
1390
1523
|
} else {
|
|
@@ -1393,23 +1526,23 @@
|
|
|
1393
1526
|
|
|
1394
1527
|
case 4:
|
|
1395
1528
|
this.b9_1 = 16;
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1529
|
+
this.c5h_1 = this.d5h_1;
|
|
1530
|
+
this.b5h_1 = Unit_instance;
|
|
1398
1531
|
this.a9_1 = 5;
|
|
1399
1532
|
continue $sm;
|
|
1400
1533
|
case 5:
|
|
1401
1534
|
this.b9_1 = 8;
|
|
1402
1535
|
this.b9_1 = 7;
|
|
1403
1536
|
this.a9_1 = 6;
|
|
1404
|
-
var tmp0_elvis_lhs = this.
|
|
1405
|
-
suspendResult = this.
|
|
1537
|
+
var tmp0_elvis_lhs = this.c5h_1;
|
|
1538
|
+
suspendResult = this.w5g_1.d5a(tmp0_elvis_lhs == null ? this.x5g_1.j3p_1 : tmp0_elvis_lhs, this);
|
|
1406
1539
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1407
1540
|
return suspendResult;
|
|
1408
1541
|
}
|
|
1409
1542
|
|
|
1410
1543
|
continue $sm;
|
|
1411
1544
|
case 6:
|
|
1412
|
-
this.
|
|
1545
|
+
this.b5h_1 = suspendResult;
|
|
1413
1546
|
this.b9_1 = 16;
|
|
1414
1547
|
this.a9_1 = 9;
|
|
1415
1548
|
continue $sm;
|
|
@@ -1419,7 +1552,7 @@
|
|
|
1419
1552
|
if (tmp_3 instanceof Error) {
|
|
1420
1553
|
var cause = this.d9_1;
|
|
1421
1554
|
var tmp_4 = this;
|
|
1422
|
-
invoke$logRequestException(this.
|
|
1555
|
+
invoke$logRequestException(this.t5g_1, this.q5g_1, this.x5g_1, cause);
|
|
1423
1556
|
throw cause;
|
|
1424
1557
|
} else {
|
|
1425
1558
|
throw this.d9_1;
|
|
@@ -1430,26 +1563,26 @@
|
|
|
1430
1563
|
var t = this.d9_1;
|
|
1431
1564
|
throw t;
|
|
1432
1565
|
case 9:
|
|
1433
|
-
this.
|
|
1566
|
+
this.b5h_1;
|
|
1434
1567
|
this.b9_1 = 16;
|
|
1435
1568
|
return Unit_instance;
|
|
1436
1569
|
case 10:
|
|
1437
1570
|
var content = suspendResult;
|
|
1438
|
-
if (this.
|
|
1439
|
-
this.
|
|
1571
|
+
if (this.a5h_1.l1() > 0) {
|
|
1572
|
+
this.q5g_1.f57(joinToString(this.a5h_1, '\n'));
|
|
1440
1573
|
}
|
|
1441
1574
|
|
|
1442
1575
|
this.b9_1 = 14;
|
|
1443
1576
|
if (!(content == null)) {
|
|
1444
1577
|
this.a9_1 = 12;
|
|
1445
|
-
suspendResult = this.
|
|
1578
|
+
suspendResult = this.w5g_1.d5a(content, this);
|
|
1446
1579
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1447
1580
|
return suspendResult;
|
|
1448
1581
|
}
|
|
1449
1582
|
continue $sm;
|
|
1450
1583
|
} else {
|
|
1451
1584
|
this.a9_1 = 11;
|
|
1452
|
-
suspendResult = this.
|
|
1585
|
+
suspendResult = this.w5g_1.e5a(this);
|
|
1453
1586
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1587
|
return suspendResult;
|
|
1455
1588
|
}
|
|
@@ -1457,15 +1590,15 @@
|
|
|
1457
1590
|
}
|
|
1458
1591
|
|
|
1459
1592
|
case 11:
|
|
1460
|
-
this.
|
|
1593
|
+
this.z5g_1 = suspendResult;
|
|
1461
1594
|
this.a9_1 = 13;
|
|
1462
1595
|
continue $sm;
|
|
1463
1596
|
case 12:
|
|
1464
|
-
this.
|
|
1597
|
+
this.z5g_1 = suspendResult;
|
|
1465
1598
|
this.a9_1 = 13;
|
|
1466
1599
|
continue $sm;
|
|
1467
1600
|
case 13:
|
|
1468
|
-
this.
|
|
1601
|
+
this.y5g_1 = this.z5g_1;
|
|
1469
1602
|
this.b9_1 = 16;
|
|
1470
1603
|
this.a9_1 = 15;
|
|
1471
1604
|
continue $sm;
|
|
@@ -1475,7 +1608,7 @@
|
|
|
1475
1608
|
if (tmp_5 instanceof Error) {
|
|
1476
1609
|
var cause_0 = this.d9_1;
|
|
1477
1610
|
var tmp_6 = this;
|
|
1478
|
-
this.
|
|
1611
|
+
this.q5g_1.f57('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1479
1612
|
throw cause_0;
|
|
1480
1613
|
} else {
|
|
1481
1614
|
throw this.d9_1;
|
|
@@ -1498,37 +1631,37 @@
|
|
|
1498
1631
|
}
|
|
1499
1632
|
while (true);
|
|
1500
1633
|
};
|
|
1501
|
-
protoOf(Logging$lambda$slambda).
|
|
1502
|
-
var i = new Logging$lambda$slambda(this.
|
|
1503
|
-
i.
|
|
1504
|
-
i.
|
|
1634
|
+
protoOf(Logging$lambda$slambda).f5h = function ($this$on, request, completion) {
|
|
1635
|
+
var i = new Logging$lambda$slambda(this.p5g_1, this.q5g_1, this.r5g_1, this.s5g_1, this.t5g_1, this.u5g_1, this.v5g_1, completion);
|
|
1636
|
+
i.w5g_1 = $this$on;
|
|
1637
|
+
i.x5g_1 = request;
|
|
1505
1638
|
return i;
|
|
1506
1639
|
};
|
|
1507
|
-
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1508
|
-
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1640
|
+
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1641
|
+
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1509
1642
|
var l = function ($this$on, request, $completion) {
|
|
1510
|
-
return i.
|
|
1643
|
+
return i.e5h($this$on, request, $completion);
|
|
1511
1644
|
};
|
|
1512
1645
|
l.$arity = 2;
|
|
1513
1646
|
return l;
|
|
1514
1647
|
}
|
|
1515
|
-
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $
|
|
1516
|
-
this.
|
|
1517
|
-
this.
|
|
1518
|
-
this.
|
|
1519
|
-
this.
|
|
1520
|
-
this.
|
|
1648
|
+
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1649
|
+
this.o5h_1 = $okHttpFormat;
|
|
1650
|
+
this.p5h_1 = $logger;
|
|
1651
|
+
this.q5h_1 = $sanitizedHeaders;
|
|
1652
|
+
this.r5h_1 = $level;
|
|
1653
|
+
this.s5h_1 = $bodyFilter;
|
|
1521
1654
|
CoroutineImpl.call(this, resultContinuation);
|
|
1522
1655
|
}
|
|
1523
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1524
|
-
var tmp = this.
|
|
1656
|
+
protoOf(Logging$lambda$slambda_1).w5h = function ($this$on, response, $completion) {
|
|
1657
|
+
var tmp = this.x5h($this$on, response, $completion);
|
|
1525
1658
|
tmp.c9_1 = Unit_instance;
|
|
1526
1659
|
tmp.d9_1 = null;
|
|
1527
1660
|
return tmp.i9();
|
|
1528
1661
|
};
|
|
1529
1662
|
protoOf(Logging$lambda$slambda_1).v9 = function (p1, p2, $completion) {
|
|
1530
1663
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1531
|
-
return this.
|
|
1664
|
+
return this.w5h(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1532
1665
|
};
|
|
1533
1666
|
protoOf(Logging$lambda$slambda_1).i9 = function () {
|
|
1534
1667
|
var suspendResult = this.c9_1;
|
|
@@ -1538,11 +1671,11 @@
|
|
|
1538
1671
|
switch (tmp) {
|
|
1539
1672
|
case 0:
|
|
1540
1673
|
this.b9_1 = 5;
|
|
1541
|
-
if (this.
|
|
1674
|
+
if (this.o5h_1) {
|
|
1542
1675
|
var tmp_0 = this;
|
|
1543
|
-
tmp_0.
|
|
1676
|
+
tmp_0.v5h_1 = ArrayList_init_$Create$();
|
|
1544
1677
|
this.a9_1 = 1;
|
|
1545
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1678
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.q5h_1, this.r5h_1, this.s5h_1, this.u5h_1, this.v5h_1, this);
|
|
1546
1679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1547
1680
|
return suspendResult;
|
|
1548
1681
|
}
|
|
@@ -1554,13 +1687,13 @@
|
|
|
1554
1687
|
|
|
1555
1688
|
case 1:
|
|
1556
1689
|
var newResponse = suspendResult;
|
|
1557
|
-
if (this.
|
|
1558
|
-
this.
|
|
1690
|
+
if (this.v5h_1.l1() > 0) {
|
|
1691
|
+
this.p5h_1.f57(joinToString(this.v5h_1, '\n'));
|
|
1559
1692
|
}
|
|
1560
1693
|
|
|
1561
|
-
if (!equals(newResponse, this.
|
|
1694
|
+
if (!equals(newResponse, this.u5h_1)) {
|
|
1562
1695
|
this.a9_1 = 2;
|
|
1563
|
-
suspendResult = this.
|
|
1696
|
+
suspendResult = this.t5h_1.p4l(newResponse, this);
|
|
1564
1697
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1565
1698
|
return suspendResult;
|
|
1566
1699
|
}
|
|
@@ -1592,35 +1725,35 @@
|
|
|
1592
1725
|
}
|
|
1593
1726
|
while (true);
|
|
1594
1727
|
};
|
|
1595
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1596
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1597
|
-
i.
|
|
1598
|
-
i.
|
|
1728
|
+
protoOf(Logging$lambda$slambda_1).x5h = function ($this$on, response, completion) {
|
|
1729
|
+
var i = new Logging$lambda$slambda_1(this.o5h_1, this.p5h_1, this.q5h_1, this.r5h_1, this.s5h_1, completion);
|
|
1730
|
+
i.t5h_1 = $this$on;
|
|
1731
|
+
i.u5h_1 = response;
|
|
1599
1732
|
return i;
|
|
1600
1733
|
};
|
|
1601
|
-
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $
|
|
1602
|
-
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $
|
|
1734
|
+
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1735
|
+
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1603
1736
|
var l = function ($this$on, response, $completion) {
|
|
1604
|
-
return i.
|
|
1737
|
+
return i.w5h($this$on, response, $completion);
|
|
1605
1738
|
};
|
|
1606
1739
|
l.$arity = 2;
|
|
1607
1740
|
return l;
|
|
1608
1741
|
}
|
|
1609
1742
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1743
|
+
this.g5i_1 = $okHttpFormat;
|
|
1744
|
+
this.h5i_1 = $level;
|
|
1745
|
+
this.i5i_1 = $sanitizedHeaders;
|
|
1613
1746
|
CoroutineImpl.call(this, resultContinuation);
|
|
1614
1747
|
}
|
|
1615
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1616
|
-
var tmp = this.
|
|
1748
|
+
protoOf(Logging$lambda$slambda_3).r5i = function ($this$on, response, $completion) {
|
|
1749
|
+
var tmp = this.s5i($this$on, response, $completion);
|
|
1617
1750
|
tmp.c9_1 = Unit_instance;
|
|
1618
1751
|
tmp.d9_1 = null;
|
|
1619
1752
|
return tmp.i9();
|
|
1620
1753
|
};
|
|
1621
1754
|
protoOf(Logging$lambda$slambda_3).v9 = function (p1, p2, $completion) {
|
|
1622
1755
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1623
|
-
return this.
|
|
1756
|
+
return this.r5i(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1624
1757
|
};
|
|
1625
1758
|
protoOf(Logging$lambda$slambda_3).i9 = function () {
|
|
1626
1759
|
var suspendResult = this.c9_1;
|
|
@@ -1630,28 +1763,28 @@
|
|
|
1630
1763
|
switch (tmp) {
|
|
1631
1764
|
case 0:
|
|
1632
1765
|
this.b9_1 = 14;
|
|
1633
|
-
if (this.
|
|
1766
|
+
if (this.g5i_1)
|
|
1634
1767
|
return Unit_instance;
|
|
1635
|
-
if (this.
|
|
1768
|
+
if (this.h5i_1.equals(LogLevel_NONE_getInstance()) || this.k5i_1.v3q().p3q().y2j(get_DisableLogging()))
|
|
1636
1769
|
return Unit_instance;
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1770
|
+
this.m5i_1 = this.k5i_1.v3q().p3q().w2j(get_ClientCallLogger());
|
|
1771
|
+
this.o5i_1 = StringBuilder_init_$Create$();
|
|
1772
|
+
this.n5i_1 = false;
|
|
1640
1773
|
this.a9_1 = 1;
|
|
1641
1774
|
continue $sm;
|
|
1642
1775
|
case 1:
|
|
1643
1776
|
this.b9_1 = 4;
|
|
1644
1777
|
this.b9_1 = 3;
|
|
1645
|
-
logResponseHeader(this.
|
|
1778
|
+
logResponseHeader(this.o5i_1, this.k5i_1.v3q().g3o(), this.h5i_1, this.i5i_1);
|
|
1646
1779
|
this.a9_1 = 2;
|
|
1647
|
-
suspendResult = this.
|
|
1780
|
+
suspendResult = this.j5i_1.f5b(this);
|
|
1648
1781
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1649
1782
|
return suspendResult;
|
|
1650
1783
|
}
|
|
1651
1784
|
|
|
1652
1785
|
continue $sm;
|
|
1653
1786
|
case 2:
|
|
1654
|
-
this.
|
|
1787
|
+
this.p5i_1 = suspendResult;
|
|
1655
1788
|
this.b9_1 = 14;
|
|
1656
1789
|
this.a9_1 = 9;
|
|
1657
1790
|
continue $sm;
|
|
@@ -1661,8 +1794,8 @@
|
|
|
1661
1794
|
if (tmp_0 instanceof Error) {
|
|
1662
1795
|
var cause = this.d9_1;
|
|
1663
1796
|
var tmp_1 = this;
|
|
1664
|
-
invoke$logResponseException(this.
|
|
1665
|
-
this.
|
|
1797
|
+
invoke$logResponseException(this.h5i_1, this.o5i_1, this.k5i_1.v3q().o3q(), cause);
|
|
1798
|
+
this.n5i_1 = true;
|
|
1666
1799
|
throw cause;
|
|
1667
1800
|
} else {
|
|
1668
1801
|
throw this.d9_1;
|
|
@@ -1670,19 +1803,19 @@
|
|
|
1670
1803
|
|
|
1671
1804
|
case 4:
|
|
1672
1805
|
this.b9_1 = 14;
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
if (this.
|
|
1806
|
+
this.q5i_1 = this.d9_1;
|
|
1807
|
+
this.m5i_1.a58(this.o5i_1.toString());
|
|
1808
|
+
if (this.n5i_1 || !this.h5i_1.m59_1) {
|
|
1676
1809
|
this.a9_1 = 7;
|
|
1677
|
-
suspendResult = this.
|
|
1810
|
+
suspendResult = this.m5i_1.e58(this);
|
|
1678
1811
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1679
1812
|
return suspendResult;
|
|
1680
1813
|
}
|
|
1681
1814
|
continue $sm;
|
|
1682
1815
|
} else {
|
|
1683
|
-
if (this.
|
|
1816
|
+
if (this.h5i_1.m59_1 && get_isSaved(this.k5i_1)) {
|
|
1684
1817
|
this.a9_1 = 5;
|
|
1685
|
-
suspendResult = logResponseBody(this.
|
|
1818
|
+
suspendResult = logResponseBody(this.m5i_1, this.k5i_1, this);
|
|
1686
1819
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1687
1820
|
return suspendResult;
|
|
1688
1821
|
}
|
|
@@ -1695,7 +1828,7 @@
|
|
|
1695
1828
|
|
|
1696
1829
|
case 5:
|
|
1697
1830
|
this.a9_1 = 6;
|
|
1698
|
-
suspendResult = this.
|
|
1831
|
+
suspendResult = this.m5i_1.e58(this);
|
|
1699
1832
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1700
1833
|
return suspendResult;
|
|
1701
1834
|
}
|
|
@@ -1708,22 +1841,22 @@
|
|
|
1708
1841
|
this.a9_1 = 8;
|
|
1709
1842
|
continue $sm;
|
|
1710
1843
|
case 8:
|
|
1711
|
-
throw this.
|
|
1844
|
+
throw this.q5i_1;
|
|
1712
1845
|
case 9:
|
|
1713
|
-
this.
|
|
1846
|
+
this.l5i_1 = this.p5i_1;
|
|
1714
1847
|
this.b9_1 = 14;
|
|
1715
|
-
this.
|
|
1716
|
-
if (this.
|
|
1848
|
+
this.m5i_1.a58(this.o5i_1.toString());
|
|
1849
|
+
if (this.n5i_1 || !this.h5i_1.m59_1) {
|
|
1717
1850
|
this.a9_1 = 12;
|
|
1718
|
-
suspendResult = this.
|
|
1851
|
+
suspendResult = this.m5i_1.e58(this);
|
|
1719
1852
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1720
1853
|
return suspendResult;
|
|
1721
1854
|
}
|
|
1722
1855
|
continue $sm;
|
|
1723
1856
|
} else {
|
|
1724
|
-
if (this.
|
|
1857
|
+
if (this.h5i_1.m59_1 && get_isSaved(this.k5i_1)) {
|
|
1725
1858
|
this.a9_1 = 10;
|
|
1726
|
-
suspendResult = logResponseBody(this.
|
|
1859
|
+
suspendResult = logResponseBody(this.m5i_1, this.k5i_1, this);
|
|
1727
1860
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1728
1861
|
return suspendResult;
|
|
1729
1862
|
}
|
|
@@ -1736,7 +1869,7 @@
|
|
|
1736
1869
|
|
|
1737
1870
|
case 10:
|
|
1738
1871
|
this.a9_1 = 11;
|
|
1739
|
-
suspendResult = this.
|
|
1872
|
+
suspendResult = this.m5i_1.e58(this);
|
|
1740
1873
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1741
1874
|
return suspendResult;
|
|
1742
1875
|
}
|
|
@@ -1764,34 +1897,34 @@
|
|
|
1764
1897
|
}
|
|
1765
1898
|
while (true);
|
|
1766
1899
|
};
|
|
1767
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1768
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1769
|
-
i.
|
|
1770
|
-
i.
|
|
1900
|
+
protoOf(Logging$lambda$slambda_3).s5i = function ($this$on, response, completion) {
|
|
1901
|
+
var i = new Logging$lambda$slambda_3(this.g5i_1, this.h5i_1, this.i5i_1, completion);
|
|
1902
|
+
i.j5i_1 = $this$on;
|
|
1903
|
+
i.k5i_1 = response;
|
|
1771
1904
|
return i;
|
|
1772
1905
|
};
|
|
1773
1906
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1774
1907
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1775
1908
|
var l = function ($this$on, response, $completion) {
|
|
1776
|
-
return i.
|
|
1909
|
+
return i.r5i($this$on, response, $completion);
|
|
1777
1910
|
};
|
|
1778
1911
|
l.$arity = 2;
|
|
1779
1912
|
return l;
|
|
1780
1913
|
}
|
|
1781
1914
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1915
|
+
this.b5j_1 = $okHttpFormat;
|
|
1916
|
+
this.c5j_1 = $level;
|
|
1784
1917
|
CoroutineImpl.call(this, resultContinuation);
|
|
1785
1918
|
}
|
|
1786
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1787
|
-
var tmp = this.
|
|
1919
|
+
protoOf(Logging$lambda$slambda_5).i5j = function ($this$on, call, $completion) {
|
|
1920
|
+
var tmp = this.j5j($this$on, call, $completion);
|
|
1788
1921
|
tmp.c9_1 = Unit_instance;
|
|
1789
1922
|
tmp.d9_1 = null;
|
|
1790
1923
|
return tmp.i9();
|
|
1791
1924
|
};
|
|
1792
1925
|
protoOf(Logging$lambda$slambda_5).v9 = function (p1, p2, $completion) {
|
|
1793
1926
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1794
|
-
return this.
|
|
1927
|
+
return this.i5j(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1795
1928
|
};
|
|
1796
1929
|
protoOf(Logging$lambda$slambda_5).i9 = function () {
|
|
1797
1930
|
var suspendResult = this.c9_1;
|
|
@@ -1801,22 +1934,22 @@
|
|
|
1801
1934
|
switch (tmp) {
|
|
1802
1935
|
case 0:
|
|
1803
1936
|
this.b9_1 = 6;
|
|
1804
|
-
if (this.
|
|
1937
|
+
if (this.b5j_1)
|
|
1805
1938
|
return Unit_instance;
|
|
1806
|
-
if (this.
|
|
1939
|
+
if (this.c5j_1.equals(LogLevel_NONE_getInstance()) || this.e5j_1.p3q().y2j(get_DisableLogging())) {
|
|
1807
1940
|
return Unit_instance;
|
|
1808
1941
|
}
|
|
1809
1942
|
|
|
1810
1943
|
this.b9_1 = 2;
|
|
1811
1944
|
this.a9_1 = 1;
|
|
1812
|
-
suspendResult = this.
|
|
1945
|
+
suspendResult = this.d5j_1.t5b(this);
|
|
1813
1946
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1814
1947
|
return suspendResult;
|
|
1815
1948
|
}
|
|
1816
1949
|
|
|
1817
1950
|
continue $sm;
|
|
1818
1951
|
case 1:
|
|
1819
|
-
this.
|
|
1952
|
+
this.f5j_1 = suspendResult;
|
|
1820
1953
|
this.b9_1 = 6;
|
|
1821
1954
|
this.a9_1 = 5;
|
|
1822
1955
|
continue $sm;
|
|
@@ -1824,12 +1957,12 @@
|
|
|
1824
1957
|
this.b9_1 = 6;
|
|
1825
1958
|
var tmp_0 = this.d9_1;
|
|
1826
1959
|
if (tmp_0 instanceof Error) {
|
|
1827
|
-
this.
|
|
1960
|
+
this.g5j_1 = this.d9_1;
|
|
1828
1961
|
var log = StringBuilder_init_$Create$();
|
|
1829
|
-
this.
|
|
1830
|
-
invoke$logResponseException(this.
|
|
1962
|
+
this.h5j_1 = this.e5j_1.p3q().w2j(get_ClientCallLogger());
|
|
1963
|
+
invoke$logResponseException(this.c5j_1, log, this.e5j_1.o3q(), this.g5j_1);
|
|
1831
1964
|
this.a9_1 = 3;
|
|
1832
|
-
suspendResult = this.
|
|
1965
|
+
suspendResult = this.h5j_1.b58(log.toString(), this);
|
|
1833
1966
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1834
1967
|
return suspendResult;
|
|
1835
1968
|
}
|
|
@@ -1840,7 +1973,7 @@
|
|
|
1840
1973
|
|
|
1841
1974
|
case 3:
|
|
1842
1975
|
this.a9_1 = 4;
|
|
1843
|
-
suspendResult = this.
|
|
1976
|
+
suspendResult = this.h5j_1.e58(this);
|
|
1844
1977
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1845
1978
|
return suspendResult;
|
|
1846
1979
|
}
|
|
@@ -1848,7 +1981,7 @@
|
|
|
1848
1981
|
continue $sm;
|
|
1849
1982
|
case 4:
|
|
1850
1983
|
var tmp_1 = this;
|
|
1851
|
-
throw this.
|
|
1984
|
+
throw this.g5j_1;
|
|
1852
1985
|
case 5:
|
|
1853
1986
|
this.b9_1 = 6;
|
|
1854
1987
|
return Unit_instance;
|
|
@@ -1866,36 +1999,36 @@
|
|
|
1866
1999
|
}
|
|
1867
2000
|
while (true);
|
|
1868
2001
|
};
|
|
1869
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1870
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1871
|
-
i.
|
|
1872
|
-
i.
|
|
2002
|
+
protoOf(Logging$lambda$slambda_5).j5j = function ($this$on, call, completion) {
|
|
2003
|
+
var i = new Logging$lambda$slambda_5(this.b5j_1, this.c5j_1, completion);
|
|
2004
|
+
i.d5j_1 = $this$on;
|
|
2005
|
+
i.e5j_1 = call;
|
|
1873
2006
|
return i;
|
|
1874
2007
|
};
|
|
1875
2008
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1876
2009
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1877
2010
|
var l = function ($this$on, call, $completion) {
|
|
1878
|
-
return i.
|
|
2011
|
+
return i.i5j($this$on, call, $completion);
|
|
1879
2012
|
};
|
|
1880
2013
|
l.$arity = 2;
|
|
1881
2014
|
return l;
|
|
1882
2015
|
}
|
|
1883
2016
|
function Logging$lambda$lambda$lambda(it) {
|
|
1884
2017
|
_init_properties_Logging_kt__66pui5();
|
|
1885
|
-
return !get_isSaved(it.
|
|
2018
|
+
return !get_isSaved(it.g3o());
|
|
1886
2019
|
}
|
|
1887
2020
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1888
|
-
this.
|
|
2021
|
+
this.s5j_1 = $level;
|
|
1889
2022
|
CoroutineImpl.call(this, resultContinuation);
|
|
1890
2023
|
}
|
|
1891
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1892
|
-
var tmp = this.
|
|
2024
|
+
protoOf(Logging$lambda$lambda$slambda).x3z = function (response, $completion) {
|
|
2025
|
+
var tmp = this.k3y(response, $completion);
|
|
1893
2026
|
tmp.c9_1 = Unit_instance;
|
|
1894
2027
|
tmp.d9_1 = null;
|
|
1895
2028
|
return tmp.i9();
|
|
1896
2029
|
};
|
|
1897
2030
|
protoOf(Logging$lambda$lambda$slambda).u9 = function (p1, $completion) {
|
|
1898
|
-
return this.
|
|
2031
|
+
return this.x3z(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1899
2032
|
};
|
|
1900
2033
|
protoOf(Logging$lambda$lambda$slambda).i9 = function () {
|
|
1901
2034
|
var suspendResult = this.c9_1;
|
|
@@ -1905,11 +2038,11 @@
|
|
|
1905
2038
|
switch (tmp) {
|
|
1906
2039
|
case 0:
|
|
1907
2040
|
this.b9_1 = 3;
|
|
1908
|
-
if (this.
|
|
2041
|
+
if (this.s5j_1.equals(LogLevel_NONE_getInstance()) || this.t5j_1.v3q().p3q().y2j(get_DisableLogging()))
|
|
1909
2042
|
return Unit_instance;
|
|
1910
|
-
this.
|
|
2043
|
+
this.u5j_1 = this.t5j_1.v3q().p3q().w2j(get_ClientCallLogger());
|
|
1911
2044
|
this.a9_1 = 1;
|
|
1912
|
-
suspendResult = logResponseBody(this.
|
|
2045
|
+
suspendResult = logResponseBody(this.u5j_1, this.t5j_1, this);
|
|
1913
2046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1914
2047
|
return suspendResult;
|
|
1915
2048
|
}
|
|
@@ -1917,7 +2050,7 @@
|
|
|
1917
2050
|
continue $sm;
|
|
1918
2051
|
case 1:
|
|
1919
2052
|
this.a9_1 = 2;
|
|
1920
|
-
suspendResult = this.
|
|
2053
|
+
suspendResult = this.u5j_1.e58(this);
|
|
1921
2054
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
2055
|
return suspendResult;
|
|
1923
2056
|
}
|
|
@@ -1939,155 +2072,36 @@
|
|
|
1939
2072
|
}
|
|
1940
2073
|
while (true);
|
|
1941
2074
|
};
|
|
1942
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1943
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
1944
|
-
i.
|
|
2075
|
+
protoOf(Logging$lambda$lambda$slambda).k3y = function (response, completion) {
|
|
2076
|
+
var i = new Logging$lambda$lambda$slambda(this.s5j_1, completion);
|
|
2077
|
+
i.t5j_1 = response;
|
|
1945
2078
|
return i;
|
|
1946
2079
|
};
|
|
1947
2080
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1948
2081
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1949
2082
|
var l = function (response, $completion) {
|
|
1950
|
-
return i.
|
|
2083
|
+
return i.x3z(response, $completion);
|
|
1951
2084
|
};
|
|
1952
2085
|
l.$arity = 1;
|
|
1953
2086
|
return l;
|
|
1954
2087
|
}
|
|
1955
2088
|
function Logging$lambda$lambda($level) {
|
|
1956
2089
|
return function ($this$prepare) {
|
|
1957
|
-
$this$prepare.
|
|
1958
|
-
$this$prepare.
|
|
2090
|
+
$this$prepare.n4l(Logging$lambda$lambda$lambda);
|
|
2091
|
+
$this$prepare.m4l(Logging$lambda$lambda$slambda_0($level, null));
|
|
1959
2092
|
return Unit_instance;
|
|
1960
2093
|
};
|
|
1961
2094
|
}
|
|
1962
|
-
function $invoke$
|
|
2095
|
+
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
1963
2096
|
CoroutineImpl.call(this, resultContinuation);
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1968
|
-
this.
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
$sm: do
|
|
1973
|
-
try {
|
|
1974
|
-
var tmp = this.a9_1;
|
|
1975
|
-
switch (tmp) {
|
|
1976
|
-
case 0:
|
|
1977
|
-
this.b9_1 = 4;
|
|
1978
|
-
if (this.d51_1.k2l(HttpHeaders_getInstance().k2t_1)) {
|
|
1979
|
-
return new Triple(true, this.b51_1, this.a51_1);
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
var tmp_0 = this;
|
|
1983
|
-
var tmp_1;
|
|
1984
|
-
if (!(this.c51_1 == null)) {
|
|
1985
|
-
var tmp0_elvis_lhs = charset(this.c51_1);
|
|
1986
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().q1v_1 : tmp0_elvis_lhs;
|
|
1987
|
-
} else {
|
|
1988
|
-
tmp_1 = Charsets_getInstance().q1v_1;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
tmp_0.i51_1 = tmp_1;
|
|
1992
|
-
this.g51_1 = false;
|
|
1993
|
-
this.h51_1 = new Int8Array(1024);
|
|
1994
|
-
this.a9_1 = 1;
|
|
1995
|
-
suspendResult = readAvailable(this.a51_1, this.h51_1, VOID, VOID, this);
|
|
1996
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1997
|
-
return suspendResult;
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
continue $sm;
|
|
2001
|
-
case 1:
|
|
2002
|
-
this.f51_1 = suspendResult;
|
|
2003
|
-
if (this.f51_1 < 1) {
|
|
2004
|
-
return new Triple(false, 0n, this.a51_1);
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
var this_0 = new Buffer();
|
|
2008
|
-
writeFully_0(this_0, this.h51_1, 0, this.f51_1);
|
|
2009
|
-
var buffer = this_0;
|
|
2010
|
-
var tmp_2;
|
|
2011
|
-
try {
|
|
2012
|
-
tmp_2 = decode(this.i51_1.t1v(), buffer);
|
|
2013
|
-
} catch ($p) {
|
|
2014
|
-
var tmp_3;
|
|
2015
|
-
if ($p instanceof MalformedInputException) {
|
|
2016
|
-
var _unused_var__etf5q3 = $p;
|
|
2017
|
-
this.g51_1 = true;
|
|
2018
|
-
tmp_3 = '';
|
|
2019
|
-
} else {
|
|
2020
|
-
throw $p;
|
|
2021
|
-
}
|
|
2022
|
-
tmp_2 = tmp_3;
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
var firstChunkText = tmp_2;
|
|
2026
|
-
if (!this.g51_1) {
|
|
2027
|
-
var lastCharIndex = -1;
|
|
2028
|
-
var inductionVariable = 0;
|
|
2029
|
-
var last = firstChunkText.length;
|
|
2030
|
-
while (inductionVariable < last) {
|
|
2031
|
-
var ch = charCodeAt(firstChunkText, inductionVariable);
|
|
2032
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
2033
|
-
lastCharIndex = lastCharIndex + 1 | 0;
|
|
2034
|
-
}
|
|
2035
|
-
var inductionVariable_0 = 0;
|
|
2036
|
-
var last_0 = firstChunkText.length;
|
|
2037
|
-
$l$loop: while (inductionVariable_0 < last_0) {
|
|
2038
|
-
var i = inductionVariable_0;
|
|
2039
|
-
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
2040
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2041
|
-
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
2042
|
-
this.g51_1 = true;
|
|
2043
|
-
break $l$loop;
|
|
2044
|
-
}
|
|
2045
|
-
}
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
|
-
if (!this.g51_1) {
|
|
2049
|
-
this.e51_1 = new ByteChannel();
|
|
2050
|
-
this.a9_1 = 3;
|
|
2051
|
-
suspendResult = async(this.z50_1.z3m_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.e51_1, this.h51_1, this.f51_1, this.a51_1, null)).zw(this);
|
|
2052
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2053
|
-
return suspendResult;
|
|
2054
|
-
}
|
|
2055
|
-
continue $sm;
|
|
2056
|
-
} else {
|
|
2057
|
-
this.a9_1 = 2;
|
|
2058
|
-
continue $sm;
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
case 2:
|
|
2062
|
-
return new Triple(this.g51_1, this.b51_1, this.a51_1);
|
|
2063
|
-
case 3:
|
|
2064
|
-
var copied = suspendResult;
|
|
2065
|
-
var tmp_4 = this.g51_1;
|
|
2066
|
-
var other = this.f51_1;
|
|
2067
|
-
return new Triple(tmp_4, add(copied, fromInt(other)), this.e51_1);
|
|
2068
|
-
case 4:
|
|
2069
|
-
throw this.d9_1;
|
|
2070
|
-
}
|
|
2071
|
-
} catch ($p) {
|
|
2072
|
-
var e = $p;
|
|
2073
|
-
if (this.b9_1 === 4) {
|
|
2074
|
-
throw e;
|
|
2075
|
-
} else {
|
|
2076
|
-
this.a9_1 = this.b9_1;
|
|
2077
|
-
this.d9_1 = e;
|
|
2078
|
-
}
|
|
2079
|
-
}
|
|
2080
|
-
while (true);
|
|
2081
|
-
};
|
|
2082
|
-
function $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2083
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2084
|
-
this.r51_1 = $this_createClientPlugin;
|
|
2085
|
-
this.s51_1 = content;
|
|
2086
|
-
this.t51_1 = contentLength;
|
|
2087
|
-
this.u51_1 = headers;
|
|
2088
|
-
this.v51_1 = method;
|
|
2089
|
-
this.w51_1 = logLines;
|
|
2090
|
-
this.x51_1 = body;
|
|
2097
|
+
this.p5d_1 = bodyFilter;
|
|
2098
|
+
this.q5d_1 = url;
|
|
2099
|
+
this.r5d_1 = content;
|
|
2100
|
+
this.s5d_1 = contentLength;
|
|
2101
|
+
this.t5d_1 = headers;
|
|
2102
|
+
this.u5d_1 = method;
|
|
2103
|
+
this.v5d_1 = logLines;
|
|
2104
|
+
this.w5d_1 = body;
|
|
2091
2105
|
}
|
|
2092
2106
|
protoOf($invoke$logRequestBodyCOROUTINE$).i9 = function () {
|
|
2093
2107
|
var suspendResult = this.c9_1;
|
|
@@ -2096,68 +2110,53 @@
|
|
|
2096
2110
|
var tmp = this.a9_1;
|
|
2097
2111
|
switch (tmp) {
|
|
2098
2112
|
case 0:
|
|
2099
|
-
this.b9_1 =
|
|
2113
|
+
this.b9_1 = 2;
|
|
2100
2114
|
this.a9_1 = 1;
|
|
2101
|
-
suspendResult =
|
|
2115
|
+
suspendResult = this.p5d_1.f58(this.q5d_1, this.s5d_1, this.r5d_1.l35(), this.t5d_1, this.w5d_1, this);
|
|
2102
2116
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2103
2117
|
return suspendResult;
|
|
2104
2118
|
}
|
|
2105
2119
|
|
|
2106
2120
|
continue $sm;
|
|
2107
2121
|
case 1:
|
|
2108
|
-
var
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
var newBody = _destruct__k2r9zo.ml();
|
|
2112
|
-
if (!isBinary) {
|
|
2113
|
-
var contentType = this.s51_1.x32();
|
|
2114
|
-
var tmp_0 = this;
|
|
2115
|
-
var tmp_1;
|
|
2116
|
-
if (!(contentType == null)) {
|
|
2117
|
-
var tmp0_elvis_lhs = charset(contentType);
|
|
2118
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().q1v_1 : tmp0_elvis_lhs;
|
|
2119
|
-
} else {
|
|
2120
|
-
tmp_1 = Charsets_getInstance().q1v_1;
|
|
2121
|
-
}
|
|
2122
|
-
tmp_0.a52_1 = tmp_1;
|
|
2123
|
-
this.a9_1 = 2;
|
|
2124
|
-
suspendResult = readRemaining(newBody, this);
|
|
2125
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2126
|
-
return suspendResult;
|
|
2127
|
-
}
|
|
2128
|
-
continue $sm;
|
|
2122
|
+
var filteredBody = suspendResult;
|
|
2123
|
+
if (filteredBody instanceof Empty) {
|
|
2124
|
+
this.v5d_1.j1('--> END ' + this.u5d_1.y2z_1 + ' (0-byte body)');
|
|
2129
2125
|
} else {
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2126
|
+
if (filteredBody instanceof Skip) {
|
|
2127
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
2128
|
+
this_0.q('--> END ' + this.u5d_1.y2z_1 + ' (');
|
|
2129
|
+
var tmp0_safe_receiver = filteredBody.j58_1;
|
|
2130
|
+
if (tmp0_safe_receiver == null)
|
|
2131
|
+
null;
|
|
2132
|
+
else {
|
|
2133
|
+
this_0.q(tmp0_safe_receiver + ' ');
|
|
2134
|
+
}
|
|
2135
|
+
var tmp1_safe_receiver = filteredBody.k58_1;
|
|
2136
|
+
if (tmp1_safe_receiver == null)
|
|
2137
|
+
null;
|
|
2138
|
+
else {
|
|
2139
|
+
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2140
|
+
}
|
|
2141
|
+
this_0.q('body omitted)');
|
|
2142
|
+
this.v5d_1.j1(this_0.toString());
|
|
2138
2143
|
} else {
|
|
2139
|
-
|
|
2144
|
+
if (isInterface(filteredBody, Content)) {
|
|
2145
|
+
this.v5d_1.j1(filteredBody.l58());
|
|
2146
|
+
this.v5d_1.j1('--> END ' + this.u5d_1.y2z_1 + ' (' + toString_0(filteredBody.i58()) + '-byte body)');
|
|
2147
|
+
} else {
|
|
2148
|
+
noWhenBranchMatchedException();
|
|
2149
|
+
}
|
|
2140
2150
|
}
|
|
2141
|
-
tmp_2.y51_1 = tmp_3;
|
|
2142
|
-
this.a9_1 = 3;
|
|
2143
|
-
continue $sm;
|
|
2144
2151
|
}
|
|
2145
2152
|
|
|
2146
|
-
case 2:
|
|
2147
|
-
var ARGUMENT = suspendResult;
|
|
2148
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.a52_1);
|
|
2149
|
-
this.w51_1.j1(ARGUMENT_0);
|
|
2150
|
-
this.y51_1 = this.w51_1.j1('--> END ' + this.v51_1.k2x_1 + ' (' + toString_0(this.z51_1) + '-byte body)');
|
|
2151
|
-
this.a9_1 = 3;
|
|
2152
|
-
continue $sm;
|
|
2153
|
-
case 3:
|
|
2154
2153
|
return Unit_instance;
|
|
2155
|
-
case
|
|
2154
|
+
case 2:
|
|
2156
2155
|
throw this.d9_1;
|
|
2157
2156
|
}
|
|
2158
2157
|
} catch ($p) {
|
|
2159
2158
|
var e = $p;
|
|
2160
|
-
if (this.b9_1 ===
|
|
2159
|
+
if (this.b9_1 === 2) {
|
|
2161
2160
|
throw e;
|
|
2162
2161
|
} else {
|
|
2163
2162
|
this.a9_1 = this.b9_1;
|
|
@@ -2166,14 +2165,16 @@
|
|
|
2166
2165
|
}
|
|
2167
2166
|
while (true);
|
|
2168
2167
|
};
|
|
2169
|
-
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2168
|
+
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2170
2169
|
CoroutineImpl.call(this, resultContinuation);
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2170
|
+
this.f5e_1 = $this_createClientPlugin;
|
|
2171
|
+
this.g5e_1 = bodyFilter;
|
|
2172
|
+
this.h5e_1 = url;
|
|
2173
|
+
this.i5e_1 = content;
|
|
2174
|
+
this.j5e_1 = method;
|
|
2175
|
+
this.k5e_1 = headers;
|
|
2176
|
+
this.l5e_1 = logLines;
|
|
2177
|
+
this.m5e_1 = process;
|
|
2177
2178
|
}
|
|
2178
2179
|
protoOf($invoke$logOutgoingContentCOROUTINE$).i9 = function () {
|
|
2179
2180
|
var suspendResult = this.c9_1;
|
|
@@ -2182,65 +2183,108 @@
|
|
|
2182
2183
|
var tmp = this.a9_1;
|
|
2183
2184
|
switch (tmp) {
|
|
2184
2185
|
case 0:
|
|
2185
|
-
this.b9_1 =
|
|
2186
|
-
var tmp0_subject = this.
|
|
2187
|
-
if (tmp0_subject instanceof
|
|
2188
|
-
|
|
2189
|
-
this.
|
|
2190
|
-
suspendResult = invoke$logRequestBody(this.j52_1, this.k52_1, fromInt(bytes.length), this.m52_1, this.l52_1, this.n52_1, ByteReadChannel(bytes), this);
|
|
2186
|
+
this.b9_1 = 7;
|
|
2187
|
+
var tmp0_subject = this.i5e_1;
|
|
2188
|
+
if (tmp0_subject instanceof ObservableContent) {
|
|
2189
|
+
this.a9_1 = 5;
|
|
2190
|
+
suspendResult = invoke$logOutgoingContent(this.f5e_1, this.g5e_1, this.h5e_1, this.i5e_1.g3t_1, this.j5e_1, this.k5e_1, this.l5e_1, this.m5e_1, this);
|
|
2191
2191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2192
2192
|
return suspendResult;
|
|
2193
2193
|
}
|
|
2194
2194
|
continue $sm;
|
|
2195
2195
|
} else {
|
|
2196
|
-
if (tmp0_subject instanceof
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2196
|
+
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2197
|
+
var tmp_0 = this;
|
|
2198
|
+
var _iterator__ex2g4s = this.i5e_1.w5j_1.t();
|
|
2199
|
+
while (_iterator__ex2g4s.u()) {
|
|
2200
|
+
var part = _iterator__ex2g4s.v();
|
|
2201
|
+
this.l5e_1.j1('--' + this.i5e_1.x5j_1);
|
|
2202
|
+
var _iterator__ex2g4s_0 = part.y5j_1.y2n().t();
|
|
2203
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2204
|
+
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2205
|
+
var key = _destruct__k2r9zo.r1();
|
|
2206
|
+
var values = _destruct__k2r9zo.s1();
|
|
2207
|
+
this.l5e_1.j1(key + ': ' + joinToString(values, '; '));
|
|
2208
|
+
}
|
|
2209
|
+
if (part instanceof FormItem) {
|
|
2210
|
+
this.l5e_1.j1('Content-Length: ' + part.a5k_1.length);
|
|
2211
|
+
this.l5e_1.j1('');
|
|
2212
|
+
this.l5e_1.j1(part.a5k_1);
|
|
2213
|
+
} else {
|
|
2214
|
+
this.l5e_1.j1('');
|
|
2215
|
+
var contentLength = part.y5j_1.p2m('Content-Length');
|
|
2216
|
+
if (!(contentLength == null)) {
|
|
2217
|
+
this.l5e_1.j1('binary ' + contentLength + '-byte body omitted');
|
|
2218
|
+
} else {
|
|
2219
|
+
this.l5e_1.j1('binary body omitted');
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2201
2222
|
}
|
|
2223
|
+
this.l5e_1.j1('--' + this.i5e_1.x5j_1 + '--');
|
|
2224
|
+
this.l5e_1.j1('--> END ' + this.j5e_1.y2z_1);
|
|
2225
|
+
tmp_0.n5e_1 = null;
|
|
2226
|
+
this.a9_1 = 6;
|
|
2202
2227
|
continue $sm;
|
|
2203
2228
|
} else {
|
|
2204
|
-
if (tmp0_subject instanceof
|
|
2205
|
-
var
|
|
2206
|
-
this.
|
|
2207
|
-
|
|
2208
|
-
|
|
2229
|
+
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2230
|
+
var bytes = this.i5e_1.o35();
|
|
2231
|
+
this.a9_1 = 4;
|
|
2232
|
+
suspendResult = invoke$logRequestBody(this.g5e_1, this.h5e_1, this.i5e_1, fromInt(bytes.length), this.k5e_1, this.j5e_1, this.l5e_1, ByteReadChannel(bytes), this);
|
|
2233
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2234
|
+
return suspendResult;
|
|
2235
|
+
}
|
|
2209
2236
|
continue $sm;
|
|
2210
2237
|
} else {
|
|
2211
|
-
if (tmp0_subject instanceof
|
|
2212
|
-
|
|
2213
|
-
this.
|
|
2214
|
-
|
|
2215
|
-
|
|
2238
|
+
if (tmp0_subject instanceof ContentWrapper) {
|
|
2239
|
+
this.a9_1 = 3;
|
|
2240
|
+
suspendResult = invoke$logOutgoingContent(this.f5e_1, this.g5e_1, this.h5e_1, this.i5e_1.x35(), this.j5e_1, this.k5e_1, this.l5e_1, this.m5e_1, this);
|
|
2241
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2242
|
+
return suspendResult;
|
|
2243
|
+
}
|
|
2216
2244
|
continue $sm;
|
|
2217
2245
|
} else {
|
|
2218
|
-
if (tmp0_subject instanceof
|
|
2219
|
-
var
|
|
2220
|
-
this.
|
|
2221
|
-
|
|
2222
|
-
this.a9_1 =
|
|
2223
|
-
suspendResult = invoke$logRequestBody(this.j52_1, this.k52_1, this.k52_1.z32(), this.m52_1, this.l52_1, this.n52_1, newChannel, this);
|
|
2224
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2225
|
-
return suspendResult;
|
|
2226
|
-
}
|
|
2246
|
+
if (tmp0_subject instanceof NoContent) {
|
|
2247
|
+
var tmp_1 = this;
|
|
2248
|
+
this.l5e_1.j1('--> END ' + this.j5e_1.y2z_1);
|
|
2249
|
+
tmp_1.n5e_1 = null;
|
|
2250
|
+
this.a9_1 = 6;
|
|
2227
2251
|
continue $sm;
|
|
2228
2252
|
} else {
|
|
2229
|
-
if (tmp0_subject instanceof
|
|
2230
|
-
var
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
this.
|
|
2234
|
-
var newChannel_0 = _destruct__k2r9zo_0.gg();
|
|
2235
|
-
this.a9_1 = 1;
|
|
2236
|
-
suspendResult = invoke$logRequestBody(this.j52_1, this.k52_1, this.k52_1.z32(), this.m52_1, this.l52_1, this.n52_1, newChannel_0, this);
|
|
2237
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2238
|
-
return suspendResult;
|
|
2239
|
-
}
|
|
2253
|
+
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2254
|
+
var tmp_2 = this;
|
|
2255
|
+
this.l5e_1.j1('--> END ' + this.j5e_1.y2z_1);
|
|
2256
|
+
tmp_2.n5e_1 = null;
|
|
2257
|
+
this.a9_1 = 6;
|
|
2240
2258
|
continue $sm;
|
|
2241
2259
|
} else {
|
|
2242
|
-
|
|
2243
|
-
|
|
2260
|
+
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2261
|
+
var _destruct__k2r9zo_0 = split(this.i5e_1.r35(), this.f5e_1.j3x_1);
|
|
2262
|
+
this.o5e_1 = _destruct__k2r9zo_0.fg();
|
|
2263
|
+
var newChannel = _destruct__k2r9zo_0.gg();
|
|
2264
|
+
this.a9_1 = 2;
|
|
2265
|
+
suspendResult = invoke$logRequestBody(this.g5e_1, this.h5e_1, this.i5e_1, this.i5e_1.n35(), this.k5e_1, this.j5e_1, this.l5e_1, newChannel, this);
|
|
2266
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2267
|
+
return suspendResult;
|
|
2268
|
+
}
|
|
2269
|
+
continue $sm;
|
|
2270
|
+
} else {
|
|
2271
|
+
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2272
|
+
var channel = new ByteChannel();
|
|
2273
|
+
launch(this.f5e_1.j3x_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.i5e_1, channel, null));
|
|
2274
|
+
var _destruct__k2r9zo_1 = split(channel, this.f5e_1.j3x_1);
|
|
2275
|
+
this.p5e_1 = _destruct__k2r9zo_1.fg();
|
|
2276
|
+
var newChannel_0 = _destruct__k2r9zo_1.gg();
|
|
2277
|
+
this.a9_1 = 1;
|
|
2278
|
+
suspendResult = invoke$logRequestBody(this.g5e_1, this.h5e_1, this.i5e_1, this.i5e_1.n35(), this.k5e_1, this.j5e_1, this.l5e_1, newChannel_0, this);
|
|
2279
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2280
|
+
return suspendResult;
|
|
2281
|
+
}
|
|
2282
|
+
continue $sm;
|
|
2283
|
+
} else {
|
|
2284
|
+
var tmp_3 = this;
|
|
2285
|
+
noWhenBranchMatchedException();
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2244
2288
|
}
|
|
2245
2289
|
}
|
|
2246
2290
|
}
|
|
@@ -2250,29 +2294,33 @@
|
|
|
2250
2294
|
|
|
2251
2295
|
break;
|
|
2252
2296
|
case 1:
|
|
2253
|
-
this.
|
|
2254
|
-
this.a9_1 =
|
|
2297
|
+
this.n5e_1 = new LoggedContent(this.i5e_1, this.p5e_1);
|
|
2298
|
+
this.a9_1 = 6;
|
|
2255
2299
|
continue $sm;
|
|
2256
2300
|
case 2:
|
|
2257
|
-
this.
|
|
2258
|
-
this.a9_1 =
|
|
2301
|
+
this.n5e_1 = new LoggedContent(this.i5e_1, this.o5e_1);
|
|
2302
|
+
this.a9_1 = 6;
|
|
2259
2303
|
continue $sm;
|
|
2260
2304
|
case 3:
|
|
2261
|
-
this.
|
|
2262
|
-
this.a9_1 =
|
|
2305
|
+
this.n5e_1 = suspendResult;
|
|
2306
|
+
this.a9_1 = 6;
|
|
2263
2307
|
continue $sm;
|
|
2264
2308
|
case 4:
|
|
2265
|
-
this.
|
|
2266
|
-
this.a9_1 =
|
|
2309
|
+
this.n5e_1 = null;
|
|
2310
|
+
this.a9_1 = 6;
|
|
2267
2311
|
continue $sm;
|
|
2268
2312
|
case 5:
|
|
2269
|
-
|
|
2313
|
+
this.n5e_1 = suspendResult;
|
|
2314
|
+
this.a9_1 = 6;
|
|
2315
|
+
continue $sm;
|
|
2270
2316
|
case 6:
|
|
2317
|
+
return this.n5e_1;
|
|
2318
|
+
case 7:
|
|
2271
2319
|
throw this.d9_1;
|
|
2272
2320
|
}
|
|
2273
2321
|
} catch ($p) {
|
|
2274
2322
|
var e = $p;
|
|
2275
|
-
if (this.b9_1 ===
|
|
2323
|
+
if (this.b9_1 === 7) {
|
|
2276
2324
|
throw e;
|
|
2277
2325
|
} else {
|
|
2278
2326
|
this.a9_1 = this.b9_1;
|
|
@@ -2281,13 +2329,14 @@
|
|
|
2281
2329
|
}
|
|
2282
2330
|
while (true);
|
|
2283
2331
|
};
|
|
2284
|
-
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2332
|
+
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2285
2333
|
CoroutineImpl.call(this, resultContinuation);
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2289
|
-
this.
|
|
2290
|
-
this.
|
|
2334
|
+
this.y5e_1 = sanitizedHeaders;
|
|
2335
|
+
this.z5e_1 = level;
|
|
2336
|
+
this.a5f_1 = $this_createClientPlugin;
|
|
2337
|
+
this.b5f_1 = bodyFilter;
|
|
2338
|
+
this.c5f_1 = request;
|
|
2339
|
+
this.d5f_1 = logLines;
|
|
2291
2340
|
}
|
|
2292
2341
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2293
2342
|
var suspendResult = this.c9_1;
|
|
@@ -2297,22 +2346,22 @@
|
|
|
2297
2346
|
switch (tmp) {
|
|
2298
2347
|
case 0:
|
|
2299
2348
|
this.b9_1 = 4;
|
|
2300
|
-
if (invoke$isNone(this.
|
|
2349
|
+
if (invoke$isNone(this.z5e_1))
|
|
2301
2350
|
return null;
|
|
2302
|
-
var uri = pathQuery(takeFrom(new URLBuilder(), this.
|
|
2303
|
-
var body = this.
|
|
2351
|
+
var uri = pathQuery(takeFrom(new URLBuilder(), this.c5f_1.g3p_1).i2v());
|
|
2352
|
+
var body = this.c5f_1.j3p_1;
|
|
2304
2353
|
var this_0 = new HeadersBuilder();
|
|
2305
2354
|
var tmp_0;
|
|
2306
2355
|
var tmp_1;
|
|
2307
2356
|
var tmp_2;
|
|
2308
2357
|
if (body instanceof OutgoingContent) {
|
|
2309
|
-
tmp_2 = !this.
|
|
2358
|
+
tmp_2 = !this.c5f_1.h3p_1.equals(Companion_getInstance().o2z_1);
|
|
2310
2359
|
} else {
|
|
2311
2360
|
tmp_2 = false;
|
|
2312
2361
|
}
|
|
2313
2362
|
|
|
2314
2363
|
if (tmp_2) {
|
|
2315
|
-
tmp_1 = !this.
|
|
2364
|
+
tmp_1 = !this.c5f_1.h3p_1.equals(Companion_getInstance().t2z_1);
|
|
2316
2365
|
} else {
|
|
2317
2366
|
tmp_1 = false;
|
|
2318
2367
|
}
|
|
@@ -2324,30 +2373,30 @@
|
|
|
2324
2373
|
}
|
|
2325
2374
|
|
|
2326
2375
|
if (tmp_0) {
|
|
2327
|
-
var tmp0_safe_receiver = body.
|
|
2376
|
+
var tmp0_safe_receiver = body.l35();
|
|
2328
2377
|
if (tmp0_safe_receiver == null)
|
|
2329
2378
|
null;
|
|
2330
2379
|
else {
|
|
2331
|
-
appendIfNameAbsent(this_0,
|
|
2380
|
+
appendIfNameAbsent(this_0, 'Content-Type', tmp0_safe_receiver.toString());
|
|
2332
2381
|
}
|
|
2333
|
-
var tmp1_safe_receiver = body.
|
|
2382
|
+
var tmp1_safe_receiver = body.n35();
|
|
2334
2383
|
if (tmp1_safe_receiver == null)
|
|
2335
2384
|
null;
|
|
2336
2385
|
else {
|
|
2337
|
-
appendIfNameAbsent(this_0,
|
|
2386
|
+
appendIfNameAbsent(this_0, 'Content-Length', tmp1_safe_receiver.toString());
|
|
2338
2387
|
}
|
|
2339
2388
|
}
|
|
2340
2389
|
|
|
2341
|
-
appendAll(this_0, this.
|
|
2342
|
-
var headers = this_0.
|
|
2343
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2390
|
+
appendAll(this_0, this.c5f_1.i3p_1);
|
|
2391
|
+
var headers = this_0.i2v();
|
|
2392
|
+
var tmp0_safe_receiver_0 = headers.p2m('Content-Length');
|
|
2344
2393
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2345
2394
|
var tmp_3;
|
|
2346
|
-
if (this.
|
|
2347
|
-
tmp_3 = '--> ' + this.
|
|
2395
|
+
if (this.c5f_1.h3p_1.equals(Companion_getInstance().o2z_1) || this.c5f_1.h3p_1.equals(Companion_getInstance().t2z_1) || ((invoke$isHeaders(this.z5e_1) || invoke$isBody(this.z5e_1)) && !(contentLength == null)) || (invoke$isHeaders(this.z5e_1) && contentLength == null) || headers.w2n('Content-Encoding')) {
|
|
2396
|
+
tmp_3 = '--> ' + this.c5f_1.h3p_1.y2z_1 + ' ' + uri;
|
|
2348
2397
|
} else {
|
|
2349
|
-
if (invoke$isInfo(this.
|
|
2350
|
-
tmp_3 = '--> ' + this.
|
|
2398
|
+
if (invoke$isInfo(this.z5e_1) && !(contentLength == null)) {
|
|
2399
|
+
tmp_3 = '--> ' + this.c5f_1.h3p_1.y2z_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2351
2400
|
} else {
|
|
2352
2401
|
var tmp_4;
|
|
2353
2402
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2356,32 +2405,32 @@
|
|
|
2356
2405
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2357
2406
|
}
|
|
2358
2407
|
if (tmp_4) {
|
|
2359
|
-
tmp_3 = '--> ' + this.
|
|
2408
|
+
tmp_3 = '--> ' + this.c5f_1.h3p_1.y2z_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2360
2409
|
} else {
|
|
2361
|
-
var size = computeRequestBodySize(this.
|
|
2362
|
-
tmp_3 = '--> ' + this.
|
|
2410
|
+
var size = computeRequestBodySize(this.c5f_1.j3p_1);
|
|
2411
|
+
tmp_3 = '--> ' + this.c5f_1.h3p_1.y2z_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2363
2412
|
}
|
|
2364
2413
|
}
|
|
2365
2414
|
}
|
|
2366
2415
|
|
|
2367
2416
|
var startLine = tmp_3;
|
|
2368
|
-
this.
|
|
2369
|
-
if (!invoke$isHeaders(this.
|
|
2417
|
+
this.d5f_1.j1(startLine);
|
|
2418
|
+
if (!invoke$isHeaders(this.z5e_1) && !invoke$isBody(this.z5e_1)) {
|
|
2370
2419
|
return null;
|
|
2371
2420
|
}
|
|
2372
2421
|
|
|
2373
|
-
var _iterator__ex2g4s = headers.
|
|
2422
|
+
var _iterator__ex2g4s = headers.y2n().t();
|
|
2374
2423
|
while (_iterator__ex2g4s.u()) {
|
|
2375
2424
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2376
|
-
var name = _destruct__k2r9zo.
|
|
2377
|
-
var values = _destruct__k2r9zo.
|
|
2378
|
-
var tmp0 = this.
|
|
2425
|
+
var name = _destruct__k2r9zo.r1();
|
|
2426
|
+
var values = _destruct__k2r9zo.s1();
|
|
2427
|
+
var tmp0 = this.y5e_1;
|
|
2379
2428
|
var tmp$ret$0 = Unit_instance;
|
|
2380
2429
|
l$ret$1: do {
|
|
2381
2430
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2382
2431
|
while (_iterator__ex2g4s_0.u()) {
|
|
2383
2432
|
var element = _iterator__ex2g4s_0.v();
|
|
2384
|
-
if (element.
|
|
2433
|
+
if (element.g5g_1(name)) {
|
|
2385
2434
|
tmp$ret$0 = element;
|
|
2386
2435
|
break l$ret$1;
|
|
2387
2436
|
}
|
|
@@ -2390,34 +2439,35 @@
|
|
|
2390
2439
|
}
|
|
2391
2440
|
while (false);
|
|
2392
2441
|
if (tmp$ret$0 == null) {
|
|
2393
|
-
this.
|
|
2442
|
+
this.d5f_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2394
2443
|
} else {
|
|
2395
|
-
this.
|
|
2444
|
+
this.d5f_1.j1(name + ': \u2588\u2588');
|
|
2396
2445
|
}
|
|
2397
2446
|
}
|
|
2398
2447
|
|
|
2399
|
-
if (!invoke$isBody(this.
|
|
2400
|
-
this.
|
|
2448
|
+
if (!invoke$isBody(this.z5e_1) || this.c5f_1.h3p_1.equals(Companion_getInstance().o2z_1) || this.c5f_1.h3p_1.equals(Companion_getInstance().t2z_1)) {
|
|
2449
|
+
this.d5f_1.j1('--> END ' + this.c5f_1.h3p_1.y2z_1);
|
|
2401
2450
|
return null;
|
|
2402
2451
|
}
|
|
2403
2452
|
|
|
2404
|
-
this.
|
|
2453
|
+
this.d5f_1.j1('');
|
|
2405
2454
|
if (!(body instanceof OutgoingContent)) {
|
|
2406
|
-
this.
|
|
2455
|
+
this.d5f_1.j1('--> END ' + this.c5f_1.h3p_1.y2z_1);
|
|
2407
2456
|
return null;
|
|
2408
2457
|
}
|
|
2409
2458
|
|
|
2410
|
-
if (this.
|
|
2459
|
+
if (this.c5f_1.i3p_1.p2m('Content-Encoding') === 'gzip') {
|
|
2411
2460
|
this.a9_1 = 2;
|
|
2412
|
-
var tmp_5 = this.
|
|
2413
|
-
|
|
2461
|
+
var tmp_5 = this.c5f_1.g3p_1.i2v();
|
|
2462
|
+
var tmp_6 = this.c5f_1.h3p_1;
|
|
2463
|
+
suspendResult = invoke$logOutgoingContent(this.a5f_1, this.b5f_1, tmp_5, body, tmp_6, headers, this.d5f_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2414
2464
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2415
2465
|
return suspendResult;
|
|
2416
2466
|
}
|
|
2417
2467
|
continue $sm;
|
|
2418
2468
|
} else {
|
|
2419
2469
|
this.a9_1 = 1;
|
|
2420
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2470
|
+
suspendResult = invoke$logOutgoingContent(this.a5f_1, this.b5f_1, this.c5f_1.g3p_1.i2v(), body, this.c5f_1.h3p_1, headers, this.d5f_1, VOID, this);
|
|
2421
2471
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2422
2472
|
return suspendResult;
|
|
2423
2473
|
}
|
|
@@ -2425,15 +2475,15 @@
|
|
|
2425
2475
|
}
|
|
2426
2476
|
|
|
2427
2477
|
case 1:
|
|
2428
|
-
this.
|
|
2478
|
+
this.e5f_1 = suspendResult;
|
|
2429
2479
|
this.a9_1 = 3;
|
|
2430
2480
|
continue $sm;
|
|
2431
2481
|
case 2:
|
|
2432
|
-
this.
|
|
2482
|
+
this.e5f_1 = suspendResult;
|
|
2433
2483
|
this.a9_1 = 3;
|
|
2434
2484
|
continue $sm;
|
|
2435
2485
|
case 3:
|
|
2436
|
-
var newContent = this.
|
|
2486
|
+
var newContent = this.e5f_1;
|
|
2437
2487
|
return newContent;
|
|
2438
2488
|
case 4:
|
|
2439
2489
|
throw this.d9_1;
|
|
@@ -2449,12 +2499,12 @@
|
|
|
2449
2499
|
}
|
|
2450
2500
|
while (true);
|
|
2451
2501
|
};
|
|
2452
|
-
function $invoke$logResponseBodyCOROUTINE$(
|
|
2502
|
+
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2453
2503
|
CoroutineImpl.call(this, resultContinuation);
|
|
2454
|
-
this.
|
|
2455
|
-
this.
|
|
2456
|
-
this.
|
|
2457
|
-
this.
|
|
2504
|
+
this.n5f_1 = bodyFilter;
|
|
2505
|
+
this.o5f_1 = response;
|
|
2506
|
+
this.p5f_1 = body;
|
|
2507
|
+
this.q5f_1 = logLines;
|
|
2458
2508
|
}
|
|
2459
2509
|
protoOf($invoke$logResponseBodyCOROUTINE$).i9 = function () {
|
|
2460
2510
|
var suspendResult = this.c9_1;
|
|
@@ -2463,75 +2513,57 @@
|
|
|
2463
2513
|
var tmp = this.a9_1;
|
|
2464
2514
|
switch (tmp) {
|
|
2465
2515
|
case 0:
|
|
2466
|
-
this.b9_1 =
|
|
2467
|
-
this.
|
|
2516
|
+
this.b9_1 = 2;
|
|
2517
|
+
this.q5f_1.j1('');
|
|
2468
2518
|
this.a9_1 = 1;
|
|
2469
|
-
suspendResult =
|
|
2519
|
+
suspendResult = this.n5f_1.h58(this.o5f_1.v3q().o3q().x3q(), contentLength(this.o5f_1), contentType(this.o5f_1), this.o5f_1.n2z(), this.p5f_1, this);
|
|
2470
2520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2471
2521
|
return suspendResult;
|
|
2472
2522
|
}
|
|
2473
2523
|
|
|
2474
2524
|
continue $sm;
|
|
2475
2525
|
case 1:
|
|
2476
|
-
var
|
|
2477
|
-
var
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
this.u53_1 = subtract(this.p53_1.x3g().v2m_1, this.p53_1.w3g().v2m_1);
|
|
2481
|
-
if (this.t53_1 === 0n) {
|
|
2482
|
-
this.r53_1.j1('<-- END HTTP (' + this.u53_1.toString() + 'ms, ' + this.t53_1.toString() + '-byte body)');
|
|
2483
|
-
return Unit_instance;
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
|
-
if (!isBinary) {
|
|
2487
|
-
var contentType_0 = contentType(this.p53_1);
|
|
2488
|
-
var tmp_0 = this;
|
|
2489
|
-
var tmp_1;
|
|
2490
|
-
if (!(contentType_0 == null)) {
|
|
2491
|
-
var tmp0_elvis_lhs = charset(contentType_0);
|
|
2492
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().q1v_1 : tmp0_elvis_lhs;
|
|
2493
|
-
} else {
|
|
2494
|
-
tmp_1 = Charsets_getInstance().q1v_1;
|
|
2495
|
-
}
|
|
2496
|
-
tmp_0.v53_1 = tmp_1;
|
|
2497
|
-
this.a9_1 = 2;
|
|
2498
|
-
suspendResult = readRemaining(newBody, this);
|
|
2499
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2500
|
-
return suspendResult;
|
|
2501
|
-
}
|
|
2502
|
-
continue $sm;
|
|
2526
|
+
var filteredBody = suspendResult;
|
|
2527
|
+
var duration = subtract(this.o5f_1.h3r().h2p_1, this.o5f_1.g3r().h2p_1);
|
|
2528
|
+
if (filteredBody instanceof Empty) {
|
|
2529
|
+
this.q5f_1.j1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2503
2530
|
} else {
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2531
|
+
if (filteredBody instanceof Skip) {
|
|
2532
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
2533
|
+
this_0.q('<-- END HTTP (');
|
|
2534
|
+
this_0.nc(duration);
|
|
2535
|
+
this_0.q('ms, ');
|
|
2536
|
+
var tmp0_safe_receiver = filteredBody.j58_1;
|
|
2537
|
+
if (tmp0_safe_receiver == null)
|
|
2538
|
+
null;
|
|
2539
|
+
else {
|
|
2540
|
+
this_0.q(tmp0_safe_receiver + ' ');
|
|
2541
|
+
}
|
|
2542
|
+
var tmp1_safe_receiver = filteredBody.k58_1;
|
|
2543
|
+
if (tmp1_safe_receiver == null)
|
|
2544
|
+
null;
|
|
2545
|
+
else {
|
|
2546
|
+
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2547
|
+
}
|
|
2548
|
+
this_0.q('body omitted)');
|
|
2549
|
+
this.q5f_1.j1(this_0.toString());
|
|
2512
2550
|
} else {
|
|
2513
|
-
|
|
2551
|
+
if (isInterface(filteredBody, Content)) {
|
|
2552
|
+
this.q5f_1.j1(filteredBody.l58());
|
|
2553
|
+
this.q5f_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.i58()) + '-byte body)');
|
|
2554
|
+
} else {
|
|
2555
|
+
noWhenBranchMatchedException();
|
|
2556
|
+
}
|
|
2514
2557
|
}
|
|
2515
|
-
tmp_2.s53_1 = tmp_3;
|
|
2516
|
-
this.a9_1 = 3;
|
|
2517
|
-
continue $sm;
|
|
2518
2558
|
}
|
|
2519
2559
|
|
|
2520
|
-
case 2:
|
|
2521
|
-
var ARGUMENT = suspendResult;
|
|
2522
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.v53_1);
|
|
2523
|
-
this.r53_1.j1(ARGUMENT_0);
|
|
2524
|
-
this.s53_1 = this.r53_1.j1('<-- END HTTP (' + this.u53_1.toString() + 'ms, ' + toString_0(this.t53_1) + '-byte body)');
|
|
2525
|
-
this.a9_1 = 3;
|
|
2526
|
-
continue $sm;
|
|
2527
|
-
case 3:
|
|
2528
2560
|
return Unit_instance;
|
|
2529
|
-
case
|
|
2561
|
+
case 2:
|
|
2530
2562
|
throw this.d9_1;
|
|
2531
2563
|
}
|
|
2532
2564
|
} catch ($p) {
|
|
2533
2565
|
var e = $p;
|
|
2534
|
-
if (this.b9_1 ===
|
|
2566
|
+
if (this.b9_1 === 2) {
|
|
2535
2567
|
throw e;
|
|
2536
2568
|
} else {
|
|
2537
2569
|
this.a9_1 = this.b9_1;
|
|
@@ -2540,13 +2572,13 @@
|
|
|
2540
2572
|
}
|
|
2541
2573
|
while (true);
|
|
2542
2574
|
};
|
|
2543
|
-
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level,
|
|
2575
|
+
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2544
2576
|
CoroutineImpl.call(this, resultContinuation);
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
this.
|
|
2549
|
-
this.
|
|
2577
|
+
this.z5f_1 = sanitizedHeaders;
|
|
2578
|
+
this.a5g_1 = level;
|
|
2579
|
+
this.b5g_1 = bodyFilter;
|
|
2580
|
+
this.c5g_1 = response;
|
|
2581
|
+
this.d5g_1 = logLines;
|
|
2550
2582
|
}
|
|
2551
2583
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2552
2584
|
var suspendResult = this.c9_1;
|
|
@@ -2556,30 +2588,30 @@
|
|
|
2556
2588
|
switch (tmp) {
|
|
2557
2589
|
case 0:
|
|
2558
2590
|
this.b9_1 = 4;
|
|
2559
|
-
if (invoke$isNone(this.
|
|
2560
|
-
return this.
|
|
2561
|
-
var tmp0_safe_receiver = this.
|
|
2591
|
+
if (invoke$isNone(this.a5g_1))
|
|
2592
|
+
return this.c5g_1;
|
|
2593
|
+
var tmp0_safe_receiver = this.c5g_1.n2z().p2m('Content-Length');
|
|
2562
2594
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2563
|
-
var request = get_request(this.
|
|
2564
|
-
var duration = subtract(this.
|
|
2565
|
-
var startLine = this.
|
|
2566
|
-
this.
|
|
2567
|
-
if (!invoke$isHeaders(this.
|
|
2568
|
-
return this.
|
|
2595
|
+
var request = get_request(this.c5g_1);
|
|
2596
|
+
var duration = subtract(this.c5g_1.h3r().h2p_1, this.c5g_1.g3r().h2p_1);
|
|
2597
|
+
var startLine = this.c5g_1.n2z().p2m('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.a5g_1) || invoke$isHeaders(this.a5g_1)) ? '<-- ' + this.c5g_1.m35().toString() + ' ' + pathQuery(request.x3q()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.a5g_1) && !(contentLength == null) ? '<-- ' + this.c5g_1.m35().toString() + ' ' + pathQuery(request.x3q()) + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.a5g_1) || (invoke$isInfo(this.a5g_1) && contentLength == null) || (invoke$isHeaders(this.a5g_1) && !(contentLength == null)) || this.c5g_1.n2z().p2m('Content-Encoding') === 'gzip' ? '<-- ' + this.c5g_1.m35().toString() + ' ' + pathQuery(request.x3q()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.c5g_1.m35().toString() + ' ' + pathQuery(request.x3q()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2598
|
+
this.d5g_1.j1(startLine);
|
|
2599
|
+
if (!invoke$isHeaders(this.a5g_1) && !invoke$isBody(this.a5g_1)) {
|
|
2600
|
+
return this.c5g_1;
|
|
2569
2601
|
}
|
|
2570
2602
|
|
|
2571
|
-
var _iterator__ex2g4s = this.
|
|
2603
|
+
var _iterator__ex2g4s = this.c5g_1.n2z().y2n().t();
|
|
2572
2604
|
while (_iterator__ex2g4s.u()) {
|
|
2573
2605
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2574
|
-
var name = _destruct__k2r9zo.
|
|
2575
|
-
var values = _destruct__k2r9zo.
|
|
2576
|
-
var tmp0 = this.
|
|
2606
|
+
var name = _destruct__k2r9zo.r1();
|
|
2607
|
+
var values = _destruct__k2r9zo.s1();
|
|
2608
|
+
var tmp0 = this.z5f_1;
|
|
2577
2609
|
var tmp$ret$0 = Unit_instance;
|
|
2578
2610
|
l$ret$1: do {
|
|
2579
2611
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2580
2612
|
while (_iterator__ex2g4s_0.u()) {
|
|
2581
2613
|
var element = _iterator__ex2g4s_0.v();
|
|
2582
|
-
if (element.
|
|
2614
|
+
if (element.g5g_1(name)) {
|
|
2583
2615
|
tmp$ret$0 = element;
|
|
2584
2616
|
break l$ret$1;
|
|
2585
2617
|
}
|
|
@@ -2588,30 +2620,30 @@
|
|
|
2588
2620
|
}
|
|
2589
2621
|
while (false);
|
|
2590
2622
|
if (tmp$ret$0 == null) {
|
|
2591
|
-
this.
|
|
2623
|
+
this.d5g_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2592
2624
|
} else {
|
|
2593
|
-
this.
|
|
2625
|
+
this.d5g_1.j1(name + ': \u2588\u2588');
|
|
2594
2626
|
}
|
|
2595
2627
|
}
|
|
2596
2628
|
|
|
2597
|
-
if (!invoke$isBody(this.
|
|
2598
|
-
this.
|
|
2599
|
-
return this.
|
|
2629
|
+
if (!invoke$isBody(this.a5g_1)) {
|
|
2630
|
+
this.d5g_1.j1('<-- END HTTP');
|
|
2631
|
+
return this.c5g_1;
|
|
2600
2632
|
}
|
|
2601
2633
|
|
|
2602
2634
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2603
|
-
this.
|
|
2604
|
-
return this.
|
|
2635
|
+
this.d5g_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2636
|
+
return this.c5g_1;
|
|
2605
2637
|
}
|
|
2606
2638
|
|
|
2607
|
-
if (equals(contentType(this.
|
|
2608
|
-
this.
|
|
2609
|
-
return this.
|
|
2639
|
+
if (equals(contentType(this.c5g_1), Text_getInstance().w2u_1)) {
|
|
2640
|
+
this.d5g_1.j1('<-- END HTTP (streaming)');
|
|
2641
|
+
return this.c5g_1;
|
|
2610
2642
|
}
|
|
2611
2643
|
|
|
2612
|
-
if (get_isSaved(this.
|
|
2644
|
+
if (get_isSaved(this.c5g_1)) {
|
|
2613
2645
|
this.a9_1 = 3;
|
|
2614
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2646
|
+
suspendResult = invoke$logResponseBody(this.b5g_1, this.c5g_1, this.c5g_1.e3r(), this.d5g_1, this);
|
|
2615
2647
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2616
2648
|
return suspendResult;
|
|
2617
2649
|
}
|
|
@@ -2622,22 +2654,22 @@
|
|
|
2622
2654
|
}
|
|
2623
2655
|
|
|
2624
2656
|
case 1:
|
|
2625
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2626
|
-
this.
|
|
2657
|
+
var _destruct__k2r9zo_0 = split(this.c5g_1.e3r(), this.c5g_1);
|
|
2658
|
+
this.e5g_1 = _destruct__k2r9zo_0.fg();
|
|
2627
2659
|
var newChannel = _destruct__k2r9zo_0.gg();
|
|
2628
2660
|
this.a9_1 = 2;
|
|
2629
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2661
|
+
suspendResult = invoke$logResponseBody(this.b5g_1, this.c5g_1, newChannel, this.d5g_1, this);
|
|
2630
2662
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2631
2663
|
return suspendResult;
|
|
2632
2664
|
}
|
|
2633
2665
|
|
|
2634
2666
|
continue $sm;
|
|
2635
2667
|
case 2:
|
|
2636
|
-
var tmp_0 = this.
|
|
2637
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2638
|
-
return call.
|
|
2668
|
+
var tmp_0 = this.c5g_1.v3q();
|
|
2669
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.e5g_1));
|
|
2670
|
+
return call.g3o();
|
|
2639
2671
|
case 3:
|
|
2640
|
-
return this.
|
|
2672
|
+
return this.c5g_1;
|
|
2641
2673
|
case 4:
|
|
2642
2674
|
throw this.d9_1;
|
|
2643
2675
|
}
|
|
@@ -2722,16 +2754,16 @@
|
|
|
2722
2754
|
while (_iterator__ex2g4s.u()) {
|
|
2723
2755
|
var element = _iterator__ex2g4s.v();
|
|
2724
2756
|
// Inline function 'kotlin.collections.component1' call
|
|
2725
|
-
var key = element.
|
|
2757
|
+
var key = element.r1();
|
|
2726
2758
|
// Inline function 'kotlin.collections.component2' call
|
|
2727
|
-
var values = element.
|
|
2759
|
+
var values = element.s1();
|
|
2728
2760
|
var tmp$ret$5;
|
|
2729
2761
|
$l$block: {
|
|
2730
2762
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2731
2763
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2732
2764
|
while (_iterator__ex2g4s_0.u()) {
|
|
2733
2765
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2734
|
-
if (element_0.
|
|
2766
|
+
if (element_0.g5g_1(key)) {
|
|
2735
2767
|
tmp$ret$5 = element_0;
|
|
2736
2768
|
break $l$block;
|
|
2737
2769
|
}
|
|
@@ -2739,7 +2771,7 @@
|
|
|
2739
2771
|
tmp$ret$5 = null;
|
|
2740
2772
|
}
|
|
2741
2773
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
2742
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2774
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f5g_1;
|
|
2743
2775
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2744
2776
|
}
|
|
2745
2777
|
}
|
|
@@ -2751,26 +2783,26 @@
|
|
|
2751
2783
|
}
|
|
2752
2784
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2753
2785
|
// Inline function 'kotlin.with' call
|
|
2754
|
-
if (level.
|
|
2786
|
+
if (level.k59_1) {
|
|
2755
2787
|
// Inline function 'kotlin.text.appendLine' call
|
|
2756
|
-
var value = 'RESPONSE: ' + response.
|
|
2788
|
+
var value = 'RESPONSE: ' + response.m35().toString();
|
|
2757
2789
|
// Inline function 'kotlin.text.appendLine' call
|
|
2758
2790
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2759
2791
|
// Inline function 'kotlin.text.appendLine' call
|
|
2760
|
-
var value_0 = 'METHOD: ' + response.
|
|
2792
|
+
var value_0 = 'METHOD: ' + response.v3q().o3q().w3q().toString();
|
|
2761
2793
|
// Inline function 'kotlin.text.appendLine' call
|
|
2762
2794
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2763
2795
|
// Inline function 'kotlin.text.appendLine' call
|
|
2764
|
-
var value_1 = 'FROM: ' + response.
|
|
2796
|
+
var value_1 = 'FROM: ' + response.v3q().o3q().x3q().toString();
|
|
2765
2797
|
// Inline function 'kotlin.text.appendLine' call
|
|
2766
2798
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2767
2799
|
}
|
|
2768
|
-
if (level.
|
|
2800
|
+
if (level.l59_1) {
|
|
2769
2801
|
// Inline function 'kotlin.text.appendLine' call
|
|
2770
2802
|
var value_2 = 'COMMON HEADERS';
|
|
2771
2803
|
// Inline function 'kotlin.text.appendLine' call
|
|
2772
2804
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2773
|
-
logHeaders(log, response.
|
|
2805
|
+
logHeaders(log, response.n2z().y2n(), sanitizedHeaders);
|
|
2774
2806
|
}
|
|
2775
2807
|
}
|
|
2776
2808
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2786,16 +2818,16 @@
|
|
|
2786
2818
|
return tmp.i9();
|
|
2787
2819
|
}
|
|
2788
2820
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2789
|
-
this.
|
|
2821
|
+
this.a5l_1 = function_0;
|
|
2790
2822
|
}
|
|
2791
2823
|
protoOf(sam$kotlin_Comparator$0).wd = function (a, b) {
|
|
2792
|
-
return this.
|
|
2824
|
+
return this.a5l_1(a, b);
|
|
2793
2825
|
};
|
|
2794
2826
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2795
2827
|
return this.wd(a, b);
|
|
2796
2828
|
};
|
|
2797
2829
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2798
|
-
return this.
|
|
2830
|
+
return this.a5l_1;
|
|
2799
2831
|
};
|
|
2800
2832
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2801
2833
|
var tmp;
|
|
@@ -2817,14 +2849,14 @@
|
|
|
2817
2849
|
};
|
|
2818
2850
|
function logHeaders$lambda(a, b) {
|
|
2819
2851
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
2820
|
-
var tmp = a.
|
|
2821
|
-
var tmp$ret$1 = b.
|
|
2852
|
+
var tmp = a.r1();
|
|
2853
|
+
var tmp$ret$1 = b.r1();
|
|
2822
2854
|
return compareValues(tmp, tmp$ret$1);
|
|
2823
2855
|
}
|
|
2824
2856
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2825
2857
|
CoroutineImpl.call(this, resultContinuation);
|
|
2826
|
-
this.
|
|
2827
|
-
this.
|
|
2858
|
+
this.j5k_1 = _this__u8e3s4;
|
|
2859
|
+
this.k5k_1 = response;
|
|
2828
2860
|
}
|
|
2829
2861
|
protoOf($logResponseBodyCOROUTINE$_0).i9 = function () {
|
|
2830
2862
|
var suspendResult = this.c9_1;
|
|
@@ -2834,14 +2866,14 @@
|
|
|
2834
2866
|
switch (tmp) {
|
|
2835
2867
|
case 0:
|
|
2836
2868
|
this.b9_1 = 8;
|
|
2837
|
-
this.
|
|
2869
|
+
this.l5k_1 = StringBuilder_init_$Create$();
|
|
2838
2870
|
this.a9_1 = 1;
|
|
2839
2871
|
continue $sm;
|
|
2840
2872
|
case 1:
|
|
2841
2873
|
this.b9_1 = 4;
|
|
2842
2874
|
this.b9_1 = 3;
|
|
2843
2875
|
this.a9_1 = 2;
|
|
2844
|
-
suspendResult = appendResponseBody(this.
|
|
2876
|
+
suspendResult = appendResponseBody(this.l5k_1, contentType(this.k5k_1), this.k5k_1.e3r(), this);
|
|
2845
2877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2846
2878
|
return suspendResult;
|
|
2847
2879
|
}
|
|
@@ -2865,22 +2897,22 @@
|
|
|
2865
2897
|
|
|
2866
2898
|
case 4:
|
|
2867
2899
|
this.b9_1 = 8;
|
|
2868
|
-
this.
|
|
2900
|
+
this.m5k_1 = this.d9_1;
|
|
2869
2901
|
this.a9_1 = 5;
|
|
2870
|
-
var this_0 = this.
|
|
2871
|
-
suspendResult = this.
|
|
2902
|
+
var this_0 = this.l5k_1.toString();
|
|
2903
|
+
suspendResult = this.j5k_1.c58(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2872
2904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2873
2905
|
return suspendResult;
|
|
2874
2906
|
}
|
|
2875
2907
|
|
|
2876
2908
|
continue $sm;
|
|
2877
2909
|
case 5:
|
|
2878
|
-
throw this.
|
|
2910
|
+
throw this.m5k_1;
|
|
2879
2911
|
case 6:
|
|
2880
2912
|
this.b9_1 = 8;
|
|
2881
2913
|
this.a9_1 = 7;
|
|
2882
|
-
var this_1 = this.
|
|
2883
|
-
suspendResult = this.
|
|
2914
|
+
var this_1 = this.l5k_1.toString();
|
|
2915
|
+
suspendResult = this.j5k_1.c58(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2884
2916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2885
2917
|
return suspendResult;
|
|
2886
2918
|
}
|
|
@@ -2904,9 +2936,9 @@
|
|
|
2904
2936
|
};
|
|
2905
2937
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2906
2938
|
CoroutineImpl.call(this, resultContinuation);
|
|
2907
|
-
this.
|
|
2908
|
-
this.
|
|
2909
|
-
this.
|
|
2939
|
+
this.v5k_1 = _this__u8e3s4;
|
|
2940
|
+
this.w5k_1 = contentType;
|
|
2941
|
+
this.x5k_1 = content;
|
|
2910
2942
|
}
|
|
2911
2943
|
protoOf($appendResponseBodyCOROUTINE$).i9 = function () {
|
|
2912
2944
|
var suspendResult = this.c9_1;
|
|
@@ -2916,16 +2948,16 @@
|
|
|
2916
2948
|
switch (tmp) {
|
|
2917
2949
|
case 0:
|
|
2918
2950
|
this.b9_1 = 3;
|
|
2919
|
-
var tmp0 = this.
|
|
2920
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2951
|
+
var tmp0 = this.v5k_1;
|
|
2952
|
+
var value = 'BODY Content-Type: ' + toString_0(this.w5k_1);
|
|
2921
2953
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2922
|
-
var tmp0_0 = this.
|
|
2954
|
+
var tmp0_0 = this.v5k_1;
|
|
2923
2955
|
var value_0 = 'BODY START';
|
|
2924
2956
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2925
|
-
var tmp0_1 = this.
|
|
2926
|
-
var tmp0_safe_receiver = this.
|
|
2957
|
+
var tmp0_1 = this.x5k_1;
|
|
2958
|
+
var tmp0_safe_receiver = this.w5k_1;
|
|
2927
2959
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2928
|
-
this.
|
|
2960
|
+
this.z5k_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().b1y_1 : tmp1_elvis_lhs;
|
|
2929
2961
|
this.b9_1 = 2;
|
|
2930
2962
|
this.a9_1 = 1;
|
|
2931
2963
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2936,7 +2968,7 @@
|
|
|
2936
2968
|
continue $sm;
|
|
2937
2969
|
case 1:
|
|
2938
2970
|
var ARGUMENT = suspendResult;
|
|
2939
|
-
this.
|
|
2971
|
+
this.y5k_1 = readText(ARGUMENT, this.z5k_1);
|
|
2940
2972
|
this.b9_1 = 3;
|
|
2941
2973
|
this.a9_1 = 4;
|
|
2942
2974
|
continue $sm;
|
|
@@ -2946,7 +2978,7 @@
|
|
|
2946
2978
|
if (tmp_0 instanceof Error) {
|
|
2947
2979
|
var cause = this.d9_1;
|
|
2948
2980
|
var tmp_1 = this;
|
|
2949
|
-
tmp_1.
|
|
2981
|
+
tmp_1.y5k_1 = null;
|
|
2950
2982
|
this.a9_1 = 4;
|
|
2951
2983
|
continue $sm;
|
|
2952
2984
|
} else {
|
|
@@ -2957,10 +2989,10 @@
|
|
|
2957
2989
|
throw this.d9_1;
|
|
2958
2990
|
case 4:
|
|
2959
2991
|
this.b9_1 = 3;
|
|
2960
|
-
var tmp2_elvis_lhs = this.
|
|
2992
|
+
var tmp2_elvis_lhs = this.y5k_1;
|
|
2961
2993
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2962
|
-
this.
|
|
2963
|
-
this.
|
|
2994
|
+
this.v5k_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2995
|
+
this.v5k_1.q('BODY END');
|
|
2964
2996
|
return Unit_instance;
|
|
2965
2997
|
}
|
|
2966
2998
|
} catch ($p) {
|
|
@@ -2982,21 +3014,21 @@
|
|
|
2982
3014
|
}
|
|
2983
3015
|
function toReadChannel(_this__u8e3s4) {
|
|
2984
3016
|
var tmp = GlobalScope_instance;
|
|
2985
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
2986
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3017
|
+
var tmp_0 = Dispatchers_getInstance().m15_1;
|
|
3018
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).t1v_1;
|
|
2987
3019
|
}
|
|
2988
3020
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
2989
|
-
this.
|
|
3021
|
+
this.v5l_1 = $this_toReadChannel;
|
|
2990
3022
|
CoroutineImpl.call(this, resultContinuation);
|
|
2991
3023
|
}
|
|
2992
|
-
protoOf(toReadChannel$slambda).
|
|
2993
|
-
var tmp = this.
|
|
3024
|
+
protoOf(toReadChannel$slambda).s3a = function ($this$writer, $completion) {
|
|
3025
|
+
var tmp = this.t3a($this$writer, $completion);
|
|
2994
3026
|
tmp.c9_1 = Unit_instance;
|
|
2995
3027
|
tmp.d9_1 = null;
|
|
2996
3028
|
return tmp.i9();
|
|
2997
3029
|
};
|
|
2998
3030
|
protoOf(toReadChannel$slambda).u9 = function (p1, $completion) {
|
|
2999
|
-
return this.
|
|
3031
|
+
return this.s3a(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3000
3032
|
};
|
|
3001
3033
|
protoOf(toReadChannel$slambda).i9 = function () {
|
|
3002
3034
|
var suspendResult = this.c9_1;
|
|
@@ -3007,7 +3039,7 @@
|
|
|
3007
3039
|
case 0:
|
|
3008
3040
|
this.b9_1 = 2;
|
|
3009
3041
|
this.a9_1 = 1;
|
|
3010
|
-
suspendResult = this.
|
|
3042
|
+
suspendResult = this.v5l_1.t35(this.w5l_1.v1v_1, this);
|
|
3011
3043
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3012
3044
|
return suspendResult;
|
|
3013
3045
|
}
|
|
@@ -3029,23 +3061,23 @@
|
|
|
3029
3061
|
}
|
|
3030
3062
|
while (true);
|
|
3031
3063
|
};
|
|
3032
|
-
protoOf(toReadChannel$slambda).
|
|
3033
|
-
var i = new toReadChannel$slambda(this.
|
|
3034
|
-
i.
|
|
3064
|
+
protoOf(toReadChannel$slambda).t3a = function ($this$writer, completion) {
|
|
3065
|
+
var i = new toReadChannel$slambda(this.v5l_1, completion);
|
|
3066
|
+
i.w5l_1 = $this$writer;
|
|
3035
3067
|
return i;
|
|
3036
3068
|
};
|
|
3037
3069
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3038
3070
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3039
3071
|
var l = function ($this$writer, $completion) {
|
|
3040
|
-
return i.
|
|
3072
|
+
return i.s3a($this$writer, $completion);
|
|
3041
3073
|
};
|
|
3042
3074
|
l.$arity = 1;
|
|
3043
3075
|
return l;
|
|
3044
3076
|
}
|
|
3045
3077
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3046
3078
|
CoroutineImpl.call(this, resultContinuation);
|
|
3047
|
-
this.
|
|
3048
|
-
this.
|
|
3079
|
+
this.j5l_1 = _this__u8e3s4;
|
|
3080
|
+
this.k5l_1 = log;
|
|
3049
3081
|
}
|
|
3050
3082
|
protoOf($observeCOROUTINE$).i9 = function () {
|
|
3051
3083
|
var suspendResult = this.c9_1;
|
|
@@ -3055,10 +3087,10 @@
|
|
|
3055
3087
|
switch (tmp) {
|
|
3056
3088
|
case 0:
|
|
3057
3089
|
this.b9_1 = 6;
|
|
3058
|
-
var tmp0_subject = this.
|
|
3090
|
+
var tmp0_subject = this.j5l_1;
|
|
3059
3091
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3060
3092
|
this.a9_1 = 3;
|
|
3061
|
-
suspendResult =
|
|
3093
|
+
suspendResult = writeFully_0(this.k5l_1, this.j5l_1.o35(), VOID, VOID, this);
|
|
3062
3094
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3063
3095
|
return suspendResult;
|
|
3064
3096
|
}
|
|
@@ -3067,25 +3099,25 @@
|
|
|
3067
3099
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3068
3100
|
var tmp_0 = this;
|
|
3069
3101
|
var responseChannel = new ByteChannel();
|
|
3070
|
-
var content = this.
|
|
3071
|
-
copyToBoth(content, this.
|
|
3072
|
-
tmp_0.
|
|
3102
|
+
var content = this.j5l_1.r35();
|
|
3103
|
+
copyToBoth(content, this.k5l_1, responseChannel);
|
|
3104
|
+
tmp_0.l5l_1 = new LoggedContent(this.j5l_1, responseChannel);
|
|
3073
3105
|
this.a9_1 = 5;
|
|
3074
3106
|
continue $sm;
|
|
3075
3107
|
} else {
|
|
3076
3108
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3077
3109
|
var tmp_1 = this;
|
|
3078
3110
|
var responseChannel_0 = new ByteChannel();
|
|
3079
|
-
var content_0 = toReadChannel(this.
|
|
3080
|
-
copyToBoth(content_0, this.
|
|
3081
|
-
tmp_1.
|
|
3111
|
+
var content_0 = toReadChannel(this.j5l_1);
|
|
3112
|
+
copyToBoth(content_0, this.k5l_1, responseChannel_0);
|
|
3113
|
+
tmp_1.l5l_1 = new LoggedContent(this.j5l_1, responseChannel_0);
|
|
3082
3114
|
this.a9_1 = 5;
|
|
3083
3115
|
continue $sm;
|
|
3084
3116
|
} else {
|
|
3085
3117
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3086
|
-
this.
|
|
3118
|
+
this.m5l_1 = this.j5l_1;
|
|
3087
3119
|
this.a9_1 = 2;
|
|
3088
|
-
suspendResult = observe(this.
|
|
3120
|
+
suspendResult = observe(this.j5l_1.x35(), this.k5l_1, this);
|
|
3089
3121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3090
3122
|
return suspendResult;
|
|
3091
3123
|
}
|
|
@@ -3099,7 +3131,7 @@
|
|
|
3099
3131
|
}
|
|
3100
3132
|
if (tmp_2) {
|
|
3101
3133
|
this.a9_1 = 1;
|
|
3102
|
-
suspendResult = this.
|
|
3134
|
+
suspendResult = this.k5l_1.h1o(this);
|
|
3103
3135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3104
3136
|
return suspendResult;
|
|
3105
3137
|
}
|
|
@@ -3115,28 +3147,28 @@
|
|
|
3115
3147
|
|
|
3116
3148
|
break;
|
|
3117
3149
|
case 1:
|
|
3118
|
-
this.
|
|
3150
|
+
this.l5l_1 = this.j5l_1;
|
|
3119
3151
|
this.a9_1 = 5;
|
|
3120
3152
|
continue $sm;
|
|
3121
3153
|
case 2:
|
|
3122
3154
|
var ARGUMENT = suspendResult;
|
|
3123
|
-
this.
|
|
3155
|
+
this.l5l_1 = this.m5l_1.y35(ARGUMENT);
|
|
3124
3156
|
this.a9_1 = 5;
|
|
3125
3157
|
continue $sm;
|
|
3126
3158
|
case 3:
|
|
3127
3159
|
this.a9_1 = 4;
|
|
3128
|
-
suspendResult = this.
|
|
3160
|
+
suspendResult = this.k5l_1.h1o(this);
|
|
3129
3161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3130
3162
|
return suspendResult;
|
|
3131
3163
|
}
|
|
3132
3164
|
|
|
3133
3165
|
continue $sm;
|
|
3134
3166
|
case 4:
|
|
3135
|
-
this.
|
|
3167
|
+
this.l5l_1 = this.j5l_1;
|
|
3136
3168
|
this.a9_1 = 5;
|
|
3137
3169
|
continue $sm;
|
|
3138
3170
|
case 5:
|
|
3139
|
-
return this.
|
|
3171
|
+
return this.l5l_1;
|
|
3140
3172
|
case 6:
|
|
3141
3173
|
throw this.d9_1;
|
|
3142
3174
|
}
|
|
@@ -3162,7 +3194,7 @@
|
|
|
3162
3194
|
}
|
|
3163
3195
|
function MDCContextElement() {
|
|
3164
3196
|
}
|
|
3165
|
-
protoOf(MDCContextElement).
|
|
3197
|
+
protoOf(MDCContextElement).r1 = function () {
|
|
3166
3198
|
return MDCContextKey_instance;
|
|
3167
3199
|
};
|
|
3168
3200
|
protoOf(MDCContextElement).toString = function () {
|
|
@@ -3176,12 +3208,16 @@
|
|
|
3176
3208
|
return get_SIMPLE(_this__u8e3s4);
|
|
3177
3209
|
}
|
|
3178
3210
|
//region block: post-declaration
|
|
3211
|
+
protoOf(Empty).i58 = get_byteSize;
|
|
3212
|
+
protoOf(BinaryLogBodyFilter$1).f58 = filterRequest;
|
|
3213
|
+
protoOf(BinaryLogBodyFilter$1).h58 = filterResponse;
|
|
3179
3214
|
protoOf(MDCContextElement).n9 = get;
|
|
3180
3215
|
protoOf(MDCContextElement).bh = fold;
|
|
3181
3216
|
protoOf(MDCContextElement).ah = minusKey;
|
|
3182
3217
|
protoOf(MDCContextElement).ch = plus;
|
|
3183
3218
|
//endregion
|
|
3184
3219
|
//region block: init
|
|
3220
|
+
Empty_instance = new Empty();
|
|
3185
3221
|
Companion_instance = new Companion();
|
|
3186
3222
|
SimpleLogger_instance = new SimpleLogger();
|
|
3187
3223
|
SendHook_instance = new SendHook();
|
|
@@ -3197,4 +3233,4 @@
|
|
|
3197
3233
|
_.$_$.b = get_Logging;
|
|
3198
3234
|
//endregion
|
|
3199
3235
|
return _;
|
|
3200
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-atomicfu.js'), require('./ktor-ktor-
|
|
3236
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-atomicfu.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-http.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-core.js')));
|