@doordeck/doordeck-headless-sdk 0.193.0 → 0.195.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 +64 -64
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +22 -22
- package/kotlin/doordeck-sdk.js +10911 -10922
- package/kotlin/kotlin-kotlin-stdlib.js +2281 -1824
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-browser.js +10 -0
- package/kotlin/kotlinx-coroutines-core.js +2904 -2424
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +56 -56
- package/kotlin/kotlinx-io-kotlinx-io-core.js +651 -651
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2063 -2073
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1619 -1618
- package/kotlin/ktor-ktor-client-auth.js +421 -412
- package/kotlin/ktor-ktor-client-content-negotiation.js +189 -190
- package/kotlin/ktor-ktor-client-core.js +3050 -2383
- package/kotlin/ktor-ktor-client-logging.js +1055 -1018
- package/kotlin/ktor-ktor-events.js +16 -16
- package/kotlin/ktor-ktor-http-cio.js +446 -451
- package/kotlin/ktor-ktor-http.js +1000 -956
- package/kotlin/ktor-ktor-io.js +1070 -1001
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +175 -174
- package/kotlin/ktor-ktor-serialization.js +78 -80
- package/kotlin/ktor-ktor-utils.js +981 -1041
- package/kotlin/ktor-ktor-websockets.js +2179 -85
- package/package.json +3 -3
|
@@ -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.$_$.z;
|
|
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.$_$.d2;
|
|
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.$_$.f3;
|
|
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.$_$.g;
|
|
24
|
+
var isTextType = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
25
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
26
|
+
var charset = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
27
|
+
var readAvailable = kotlin_io_ktor_ktor_io.$_$.f;
|
|
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.$_$.j1;
|
|
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.$_$.r2;
|
|
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.$_$.
|
|
36
|
-
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.
|
|
37
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
38
|
-
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.
|
|
39
|
-
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.
|
|
40
|
-
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.
|
|
41
|
-
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.
|
|
42
|
-
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.
|
|
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;
|
|
46
|
+
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
47
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.hb;
|
|
48
|
+
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
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;
|
|
52
|
+
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
53
|
+
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.j1;
|
|
54
|
+
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
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.$_$.d7;
|
|
63
|
-
var equals = kotlin_kotlin.$_$.qa;
|
|
64
|
-
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
59
|
+
var readRemaining = kotlin_io_ktor_ktor_io.$_$.j;
|
|
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.$_$.d;
|
|
64
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
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.$_$.ka;
|
|
73
|
-
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
74
|
-
var add = kotlin_kotlin.$_$.n9;
|
|
75
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.sg;
|
|
76
|
-
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
72
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.yg;
|
|
73
|
+
var split = kotlin_io_ktor_ktor_utils.$_$.l1;
|
|
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.$_$.o;
|
|
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.c58(contentLength, contentType, headers, body, $completion);
|
|
123
|
+
}
|
|
124
|
+
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
125
|
+
return this.c58(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.s56_1 = _this__u8e3s4;
|
|
179
|
+
this.t56_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.s56_1.x56_1.yt(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.t56_1;
|
|
198
|
+
this.s56_1.u56_1.b57(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.k57_1 = _this__u8e3s4;
|
|
217
|
+
this.l57_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.k57_1.y56_1.yt(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.k57_1.w56_1.q(this.l57_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.u57_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.u57_1.a57_1.atomicfu$compareAndSet(false, true))
|
|
248
264
|
return Unit_instance;
|
|
249
265
|
this.a9_1 = 1;
|
|
250
|
-
suspendResult = this.
|
|
266
|
+
suspendResult = this.u57_1.x56_1.yt(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.u57_1.w56_1));
|
|
258
274
|
if (charSequenceLength(message) > 0) {
|
|
259
|
-
this.
|
|
275
|
+
this.u57_1.u56_1.b57(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.u56_1 = logger;
|
|
295
|
+
this.v56_1 = StringBuilder_init_$Create$();
|
|
296
|
+
this.w56_1 = StringBuilder_init_$Create$();
|
|
297
|
+
this.x56_1 = Job();
|
|
298
|
+
this.y56_1 = Job();
|
|
299
|
+
this.z56_1 = atomic$boolean$1(false);
|
|
300
|
+
this.a57_1 = atomic$boolean$1(false);
|
|
301
|
+
}
|
|
302
|
+
protoOf(HttpClientCallLogger).v57 = function (message) {
|
|
303
|
+
var tmp0 = this.v56_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).w57 = function (message) {
|
|
311
|
+
var tmp0 = this.w56_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.y56_1.c11();
|
|
302
318
|
};
|
|
303
|
-
protoOf(HttpClientCallLogger).
|
|
319
|
+
protoOf(HttpClientCallLogger).x57 = 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).y57 = 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).z57 = function () {
|
|
332
|
+
if (!this.z56_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.v56_1));
|
|
320
336
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
321
337
|
if (charSequenceLength(message) > 0) {
|
|
322
|
-
this.
|
|
338
|
+
this.u56_1.b57(message);
|
|
323
339
|
}
|
|
324
340
|
}finally {
|
|
325
|
-
this.
|
|
341
|
+
this.x56_1.c11();
|
|
326
342
|
}
|
|
327
343
|
};
|
|
328
|
-
protoOf(HttpClientCallLogger).
|
|
344
|
+
protoOf(HttpClientCallLogger).a58 = 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.f58_1 = reason;
|
|
367
|
+
this.g58_1 = byteSize;
|
|
368
|
+
}
|
|
369
|
+
protoOf(Skip).e58 = function () {
|
|
370
|
+
return this.g58_1;
|
|
371
|
+
};
|
|
372
|
+
function Content() {
|
|
373
|
+
}
|
|
374
|
+
function BufferContent(buffer, charset, byteSize) {
|
|
375
|
+
byteSize = byteSize === VOID ? buffer.l1() : byteSize;
|
|
376
|
+
this.i58_1 = buffer;
|
|
377
|
+
this.j58_1 = charset;
|
|
378
|
+
this.k58_1 = byteSize;
|
|
379
|
+
}
|
|
380
|
+
protoOf(BufferContent).e58 = function () {
|
|
381
|
+
return this.k58_1;
|
|
382
|
+
};
|
|
383
|
+
protoOf(BufferContent).h58 = function () {
|
|
384
|
+
return readText(this.i58_1, this.j58_1);
|
|
385
|
+
};
|
|
386
|
+
function BodyFilterResult() {
|
|
387
|
+
}
|
|
388
|
+
function $filterAllCOROUTINE$(_this__u8e3s4, contentLength, contentType, headers, body, resultContinuation) {
|
|
389
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
390
|
+
this.t58_1 = _this__u8e3s4;
|
|
391
|
+
this.u58_1 = contentLength;
|
|
392
|
+
this.v58_1 = contentType;
|
|
393
|
+
this.w58_1 = headers;
|
|
394
|
+
this.x58_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.w58_1.s2n('Content-Encoding')) {
|
|
405
|
+
return new Skip('encoded', this.u58_1);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (!(this.v58_1 == null) && isTextType(this.v58_1)) {
|
|
409
|
+
this.a9_1 = 5;
|
|
410
|
+
suspendResult = readBuffer(this.x58_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.v58_1 == null)) {
|
|
424
|
+
var tmp1_elvis_lhs = charset(this.v58_1);
|
|
425
|
+
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp1_elvis_lhs;
|
|
426
|
+
} else {
|
|
427
|
+
tmp_1 = Charsets_getInstance().x1x_1;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
tmp_0.d59_1 = tmp_1;
|
|
431
|
+
this.c59_1 = false;
|
|
432
|
+
this.b59_1 = new Int8Array(1024);
|
|
433
|
+
this.a9_1 = 2;
|
|
434
|
+
suspendResult = readAvailable(this.x58_1, this.b59_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.b59_1, 0, firstReadSize);
|
|
448
|
+
var buffer = this_0;
|
|
449
|
+
var tmp_2;
|
|
450
|
+
try {
|
|
451
|
+
tmp_2 = decode(this.d59_1.a1y(), buffer);
|
|
452
|
+
} catch ($p) {
|
|
453
|
+
var tmp_3;
|
|
454
|
+
if ($p instanceof MalformedInputException) {
|
|
455
|
+
var _unused_var__etf5q3 = $p;
|
|
456
|
+
this.c59_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.c59_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.c59_1 = true;
|
|
482
|
+
break $l$loop;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (this.c59_1) {
|
|
488
|
+
var tmp_4 = this;
|
|
489
|
+
tmp_4.y58_1 = new Skip('binary', this.u58_1);
|
|
490
|
+
this.a9_1 = 4;
|
|
491
|
+
continue $sm;
|
|
492
|
+
} else {
|
|
493
|
+
this.z58_1 = new Buffer();
|
|
494
|
+
this.a59_1 = this.z58_1;
|
|
495
|
+
writeFully(this.a59_1, this.b59_1, 0, firstReadSize);
|
|
496
|
+
this.a9_1 = 3;
|
|
497
|
+
suspendResult = readBuffer(this.x58_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.a59_1.zq(ARGUMENT);
|
|
507
|
+
var ARGUMENT_0 = this.z58_1;
|
|
508
|
+
var tmp_5 = this;
|
|
509
|
+
var tmp2_safe_receiver = this.v58_1;
|
|
510
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
511
|
+
tmp_5.y58_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp3_elvis_lhs);
|
|
512
|
+
this.a9_1 = 4;
|
|
513
|
+
continue $sm;
|
|
514
|
+
case 4:
|
|
515
|
+
return this.y58_1;
|
|
516
|
+
case 5:
|
|
517
|
+
var ARGUMENT_1 = suspendResult;
|
|
518
|
+
var tmp0_elvis_lhs = charset(this.v58_1);
|
|
519
|
+
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().x1x_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).c58 = 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.g59_1 = info;
|
|
568
|
+
this.h59_1 = headers;
|
|
569
|
+
this.i59_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.k59_1 = originalContent;
|
|
594
|
+
this.l59_1 = channel;
|
|
595
|
+
this.m59_1 = this.k59_1.h35();
|
|
596
|
+
this.n59_1 = this.k59_1.j35();
|
|
597
|
+
this.o59_1 = this.k59_1.i35();
|
|
598
|
+
this.p59_1 = this.k59_1.j2z();
|
|
384
599
|
}
|
|
385
|
-
protoOf(LoggedContent).
|
|
386
|
-
return this.
|
|
600
|
+
protoOf(LoggedContent).h35 = function () {
|
|
601
|
+
return this.m59_1;
|
|
387
602
|
};
|
|
388
|
-
protoOf(LoggedContent).
|
|
389
|
-
return this.
|
|
603
|
+
protoOf(LoggedContent).j35 = function () {
|
|
604
|
+
return this.n59_1;
|
|
390
605
|
};
|
|
391
|
-
protoOf(LoggedContent).
|
|
392
|
-
return this.
|
|
606
|
+
protoOf(LoggedContent).i35 = function () {
|
|
607
|
+
return this.o59_1;
|
|
393
608
|
};
|
|
394
|
-
protoOf(LoggedContent).
|
|
395
|
-
return this.
|
|
609
|
+
protoOf(LoggedContent).j2z = function () {
|
|
610
|
+
return this.p59_1;
|
|
396
611
|
};
|
|
397
|
-
protoOf(LoggedContent).
|
|
398
|
-
return this.
|
|
612
|
+
protoOf(LoggedContent).n35 = function () {
|
|
613
|
+
return this.l59_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).b57 = 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.q59_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.r59_1 = ArrayList_init_$Create$();
|
|
655
|
+
this.s59_1 = null;
|
|
656
|
+
this.t59_1 = LoggingFormat_Default_getInstance();
|
|
657
|
+
this.u59_1 = LogLevel_HEADERS_getInstance();
|
|
658
|
+
this.v59_1 = get_BinaryLogBodyFilter();
|
|
443
659
|
}
|
|
444
|
-
protoOf(LoggingConfig).
|
|
445
|
-
this.
|
|
660
|
+
protoOf(LoggingConfig).w59 = function (value) {
|
|
661
|
+
this.s59_1 = value;
|
|
446
662
|
};
|
|
447
|
-
protoOf(LoggingConfig).
|
|
448
|
-
var tmp0_elvis_lhs = this.
|
|
663
|
+
protoOf(LoggingConfig).x59 = function () {
|
|
664
|
+
var tmp0_elvis_lhs = this.s59_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.m34();
|
|
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.m34());
|
|
475
691
|
}
|
|
476
692
|
// Inline function 'kotlin.text.isEmpty' call
|
|
477
|
-
var this_2 = _this__u8e3s4.
|
|
693
|
+
var this_2 = _this__u8e3s4.p34();
|
|
478
694
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
479
695
|
this_0.q('?');
|
|
480
|
-
this_0.q(_this__u8e3s4.
|
|
696
|
+
this_0.q(_this__u8e3s4.p34());
|
|
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.k35().length);
|
|
493
709
|
} else {
|
|
494
710
|
if (content instanceof ContentWrapper) {
|
|
495
|
-
tmp = computeRequestBodySize(content.
|
|
711
|
+
tmp = computeRequestBodySize(content.t35());
|
|
496
712
|
} else {
|
|
497
713
|
if (content instanceof NoContent) {
|
|
498
714
|
tmp = 0n;
|
|
@@ -500,6 +716,7 @@
|
|
|
500
716
|
if (content instanceof ProtocolUpgrade) {
|
|
501
717
|
tmp = 0n;
|
|
502
718
|
} else {
|
|
719
|
+
// Inline function 'kotlin.error' call
|
|
503
720
|
var message = 'Unable to calculate the size for type ' + getKClassFromExpression(content).o();
|
|
504
721
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
505
722
|
}
|
|
@@ -509,27 +726,27 @@
|
|
|
509
726
|
return tmp;
|
|
510
727
|
}
|
|
511
728
|
function Context(context) {
|
|
512
|
-
this.
|
|
729
|
+
this.y59_1 = context;
|
|
513
730
|
}
|
|
514
|
-
protoOf(Context).
|
|
515
|
-
return this.
|
|
731
|
+
protoOf(Context).z59 = function (content, $completion) {
|
|
732
|
+
return this.y59_1.j2q(content, $completion);
|
|
516
733
|
};
|
|
517
|
-
protoOf(Context).
|
|
518
|
-
return this.
|
|
734
|
+
protoOf(Context).a5a = function ($completion) {
|
|
735
|
+
return this.y59_1.k2q($completion);
|
|
519
736
|
};
|
|
520
737
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
521
|
-
this.
|
|
738
|
+
this.j5a_1 = $handler;
|
|
522
739
|
CoroutineImpl.call(this, resultContinuation);
|
|
523
740
|
}
|
|
524
|
-
protoOf(SendHook$install$slambda).
|
|
525
|
-
var tmp = this.
|
|
741
|
+
protoOf(SendHook$install$slambda).v3n = function ($this$intercept, it, $completion) {
|
|
742
|
+
var tmp = this.w3n($this$intercept, it, $completion);
|
|
526
743
|
tmp.c9_1 = Unit_instance;
|
|
527
744
|
tmp.d9_1 = null;
|
|
528
745
|
return tmp.i9();
|
|
529
746
|
};
|
|
530
747
|
protoOf(SendHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
531
748
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
532
|
-
return this.
|
|
749
|
+
return this.v3n(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
533
750
|
};
|
|
534
751
|
protoOf(SendHook$install$slambda).i9 = function () {
|
|
535
752
|
var suspendResult = this.c9_1;
|
|
@@ -540,7 +757,7 @@
|
|
|
540
757
|
case 0:
|
|
541
758
|
this.b9_1 = 2;
|
|
542
759
|
this.a9_1 = 1;
|
|
543
|
-
suspendResult = this.
|
|
760
|
+
suspendResult = this.j5a_1(new Context(this.k5a_1), this.k5a_1.f2r_1, this);
|
|
544
761
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
545
762
|
return suspendResult;
|
|
546
763
|
}
|
|
@@ -562,52 +779,52 @@
|
|
|
562
779
|
}
|
|
563
780
|
while (true);
|
|
564
781
|
};
|
|
565
|
-
protoOf(SendHook$install$slambda).
|
|
566
|
-
var i = new SendHook$install$slambda(this.
|
|
567
|
-
i.
|
|
568
|
-
i.
|
|
782
|
+
protoOf(SendHook$install$slambda).w3n = function ($this$intercept, it, completion) {
|
|
783
|
+
var i = new SendHook$install$slambda(this.j5a_1, completion);
|
|
784
|
+
i.k5a_1 = $this$intercept;
|
|
785
|
+
i.l5a_1 = it;
|
|
569
786
|
return i;
|
|
570
787
|
};
|
|
571
788
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
572
789
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
573
790
|
var l = function ($this$intercept, it, $completion) {
|
|
574
|
-
return i.
|
|
791
|
+
return i.v3n($this$intercept, it, $completion);
|
|
575
792
|
};
|
|
576
793
|
l.$arity = 2;
|
|
577
794
|
return l;
|
|
578
795
|
}
|
|
579
796
|
function SendHook() {
|
|
580
797
|
}
|
|
581
|
-
protoOf(SendHook).
|
|
582
|
-
var tmp = Phases_getInstance().
|
|
583
|
-
client.
|
|
798
|
+
protoOf(SendHook).m5a = function (client, handler) {
|
|
799
|
+
var tmp = Phases_getInstance().m3p_1;
|
|
800
|
+
client.e3n_1.j2r(tmp, SendHook$install$slambda_0(handler, null));
|
|
584
801
|
};
|
|
585
|
-
protoOf(SendHook).
|
|
586
|
-
return this.
|
|
802
|
+
protoOf(SendHook).m3w = function (client, handler) {
|
|
803
|
+
return this.m5a(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
587
804
|
};
|
|
588
805
|
var SendHook_instance;
|
|
589
806
|
function SendHook_getInstance() {
|
|
590
807
|
return SendHook_instance;
|
|
591
808
|
}
|
|
592
809
|
function Context_0(context) {
|
|
593
|
-
this.
|
|
810
|
+
this.n5a_1 = context;
|
|
594
811
|
}
|
|
595
|
-
protoOf(Context_0).
|
|
596
|
-
return this.
|
|
812
|
+
protoOf(Context_0).l4l = function (response, $completion) {
|
|
813
|
+
return this.n5a_1.j2q(response, $completion);
|
|
597
814
|
};
|
|
598
815
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
599
|
-
this.
|
|
816
|
+
this.w5a_1 = $handler;
|
|
600
817
|
CoroutineImpl.call(this, resultContinuation);
|
|
601
818
|
}
|
|
602
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
603
|
-
var tmp = this.
|
|
819
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).y3w = function ($this$intercept, it, $completion) {
|
|
820
|
+
var tmp = this.z3w($this$intercept, it, $completion);
|
|
604
821
|
tmp.c9_1 = Unit_instance;
|
|
605
822
|
tmp.d9_1 = null;
|
|
606
823
|
return tmp.i9();
|
|
607
824
|
};
|
|
608
825
|
protoOf(ResponseAfterEncodingHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
609
826
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
610
|
-
return this.
|
|
827
|
+
return this.y3w(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
611
828
|
};
|
|
612
829
|
protoOf(ResponseAfterEncodingHook$install$slambda).i9 = function () {
|
|
613
830
|
var suspendResult = this.c9_1;
|
|
@@ -618,7 +835,7 @@
|
|
|
618
835
|
case 0:
|
|
619
836
|
this.b9_1 = 2;
|
|
620
837
|
this.a9_1 = 1;
|
|
621
|
-
suspendResult = this.
|
|
838
|
+
suspendResult = this.w5a_1(new Context_0(this.x5a_1), this.x5a_1.i2q(), this);
|
|
622
839
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
623
840
|
return suspendResult;
|
|
624
841
|
}
|
|
@@ -640,53 +857,53 @@
|
|
|
640
857
|
}
|
|
641
858
|
while (true);
|
|
642
859
|
};
|
|
643
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
644
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
645
|
-
i.
|
|
646
|
-
i.
|
|
860
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).z3w = function ($this$intercept, it, completion) {
|
|
861
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.w5a_1, completion);
|
|
862
|
+
i.x5a_1 = $this$intercept;
|
|
863
|
+
i.y5a_1 = it;
|
|
647
864
|
return i;
|
|
648
865
|
};
|
|
649
866
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
650
867
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
651
868
|
var l = function ($this$intercept, it, $completion) {
|
|
652
|
-
return i.
|
|
869
|
+
return i.y3w($this$intercept, it, $completion);
|
|
653
870
|
};
|
|
654
871
|
l.$arity = 2;
|
|
655
872
|
return l;
|
|
656
873
|
}
|
|
657
874
|
function ResponseAfterEncodingHook() {
|
|
658
875
|
}
|
|
659
|
-
protoOf(ResponseAfterEncodingHook).
|
|
876
|
+
protoOf(ResponseAfterEncodingHook).z5a = function (client, handler) {
|
|
660
877
|
var afterState = new PipelinePhase('AfterState');
|
|
661
|
-
client.
|
|
662
|
-
client.
|
|
878
|
+
client.f3n_1.g2r(Phases_getInstance_0().c3x_1, afterState);
|
|
879
|
+
client.f3n_1.j2r(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
663
880
|
};
|
|
664
|
-
protoOf(ResponseAfterEncodingHook).
|
|
665
|
-
return this.
|
|
881
|
+
protoOf(ResponseAfterEncodingHook).m3w = function (client, handler) {
|
|
882
|
+
return this.z5a(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
666
883
|
};
|
|
667
884
|
var ResponseAfterEncodingHook_instance;
|
|
668
885
|
function ResponseAfterEncodingHook_getInstance() {
|
|
669
886
|
return ResponseAfterEncodingHook_instance;
|
|
670
887
|
}
|
|
671
888
|
function Context_1(context) {
|
|
672
|
-
this.
|
|
889
|
+
this.a5b_1 = context;
|
|
673
890
|
}
|
|
674
|
-
protoOf(Context_1).
|
|
675
|
-
return this.
|
|
891
|
+
protoOf(Context_1).b5b = function ($completion) {
|
|
892
|
+
return this.a5b_1.k2q($completion);
|
|
676
893
|
};
|
|
677
894
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
678
|
-
this.
|
|
895
|
+
this.k5b_1 = $handler;
|
|
679
896
|
CoroutineImpl.call(this, resultContinuation);
|
|
680
897
|
}
|
|
681
|
-
protoOf(ResponseHook$install$slambda).
|
|
682
|
-
var tmp = this.
|
|
898
|
+
protoOf(ResponseHook$install$slambda).y3w = function ($this$intercept, it, $completion) {
|
|
899
|
+
var tmp = this.z3w($this$intercept, it, $completion);
|
|
683
900
|
tmp.c9_1 = Unit_instance;
|
|
684
901
|
tmp.d9_1 = null;
|
|
685
902
|
return tmp.i9();
|
|
686
903
|
};
|
|
687
904
|
protoOf(ResponseHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
688
905
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
689
|
-
return this.
|
|
906
|
+
return this.y3w(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
690
907
|
};
|
|
691
908
|
protoOf(ResponseHook$install$slambda).i9 = function () {
|
|
692
909
|
var suspendResult = this.c9_1;
|
|
@@ -697,7 +914,7 @@
|
|
|
697
914
|
case 0:
|
|
698
915
|
this.b9_1 = 2;
|
|
699
916
|
this.a9_1 = 1;
|
|
700
|
-
suspendResult = this.
|
|
917
|
+
suspendResult = this.k5b_1(new Context_1(this.l5b_1), this.l5b_1.i2q(), this);
|
|
701
918
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
702
919
|
return suspendResult;
|
|
703
920
|
}
|
|
@@ -719,52 +936,52 @@
|
|
|
719
936
|
}
|
|
720
937
|
while (true);
|
|
721
938
|
};
|
|
722
|
-
protoOf(ResponseHook$install$slambda).
|
|
723
|
-
var i = new ResponseHook$install$slambda(this.
|
|
724
|
-
i.
|
|
725
|
-
i.
|
|
939
|
+
protoOf(ResponseHook$install$slambda).z3w = function ($this$intercept, it, completion) {
|
|
940
|
+
var i = new ResponseHook$install$slambda(this.k5b_1, completion);
|
|
941
|
+
i.l5b_1 = $this$intercept;
|
|
942
|
+
i.m5b_1 = it;
|
|
726
943
|
return i;
|
|
727
944
|
};
|
|
728
945
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
729
946
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
730
947
|
var l = function ($this$intercept, it, $completion) {
|
|
731
|
-
return i.
|
|
948
|
+
return i.y3w($this$intercept, it, $completion);
|
|
732
949
|
};
|
|
733
950
|
l.$arity = 2;
|
|
734
951
|
return l;
|
|
735
952
|
}
|
|
736
953
|
function ResponseHook() {
|
|
737
954
|
}
|
|
738
|
-
protoOf(ResponseHook).
|
|
739
|
-
var tmp = Phases_getInstance_0().
|
|
740
|
-
client.
|
|
955
|
+
protoOf(ResponseHook).n5b = function (client, handler) {
|
|
956
|
+
var tmp = Phases_getInstance_0().c3x_1;
|
|
957
|
+
client.f3n_1.j2r(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
741
958
|
};
|
|
742
|
-
protoOf(ResponseHook).
|
|
743
|
-
return this.
|
|
959
|
+
protoOf(ResponseHook).m3w = function (client, handler) {
|
|
960
|
+
return this.n5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
744
961
|
};
|
|
745
962
|
var ResponseHook_instance;
|
|
746
963
|
function ResponseHook_getInstance() {
|
|
747
964
|
return ResponseHook_instance;
|
|
748
965
|
}
|
|
749
966
|
function Context_2(context) {
|
|
750
|
-
this.
|
|
967
|
+
this.o5b_1 = context;
|
|
751
968
|
}
|
|
752
|
-
protoOf(Context_2).
|
|
753
|
-
return this.
|
|
969
|
+
protoOf(Context_2).p5b = function ($completion) {
|
|
970
|
+
return this.o5b_1.k2q($completion);
|
|
754
971
|
};
|
|
755
972
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
756
|
-
this.
|
|
973
|
+
this.y5b_1 = $handler;
|
|
757
974
|
CoroutineImpl.call(this, resultContinuation);
|
|
758
975
|
}
|
|
759
|
-
protoOf(ReceiveHook$install$slambda).
|
|
760
|
-
var tmp = this.
|
|
976
|
+
protoOf(ReceiveHook$install$slambda).q3o = function ($this$intercept, it, $completion) {
|
|
977
|
+
var tmp = this.r3o($this$intercept, it, $completion);
|
|
761
978
|
tmp.c9_1 = Unit_instance;
|
|
762
979
|
tmp.d9_1 = null;
|
|
763
980
|
return tmp.i9();
|
|
764
981
|
};
|
|
765
982
|
protoOf(ReceiveHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
766
983
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
767
|
-
return this.
|
|
984
|
+
return this.q3o(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
768
985
|
};
|
|
769
986
|
protoOf(ReceiveHook$install$slambda).i9 = function () {
|
|
770
987
|
var suspendResult = this.c9_1;
|
|
@@ -775,7 +992,7 @@
|
|
|
775
992
|
case 0:
|
|
776
993
|
this.b9_1 = 2;
|
|
777
994
|
this.a9_1 = 1;
|
|
778
|
-
suspendResult = this.
|
|
995
|
+
suspendResult = this.y5b_1(new Context_2(this.z5b_1), this.z5b_1.f2r_1, this);
|
|
779
996
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
780
997
|
return suspendResult;
|
|
781
998
|
}
|
|
@@ -797,28 +1014,28 @@
|
|
|
797
1014
|
}
|
|
798
1015
|
while (true);
|
|
799
1016
|
};
|
|
800
|
-
protoOf(ReceiveHook$install$slambda).
|
|
801
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
802
|
-
i.
|
|
803
|
-
i.
|
|
1017
|
+
protoOf(ReceiveHook$install$slambda).r3o = function ($this$intercept, it, completion) {
|
|
1018
|
+
var i = new ReceiveHook$install$slambda(this.y5b_1, completion);
|
|
1019
|
+
i.z5b_1 = $this$intercept;
|
|
1020
|
+
i.a5c_1 = it;
|
|
804
1021
|
return i;
|
|
805
1022
|
};
|
|
806
1023
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
807
1024
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
808
1025
|
var l = function ($this$intercept, it, $completion) {
|
|
809
|
-
return i.
|
|
1026
|
+
return i.q3o($this$intercept, it, $completion);
|
|
810
1027
|
};
|
|
811
1028
|
l.$arity = 2;
|
|
812
1029
|
return l;
|
|
813
1030
|
}
|
|
814
1031
|
function ReceiveHook() {
|
|
815
1032
|
}
|
|
816
|
-
protoOf(ReceiveHook).
|
|
817
|
-
var tmp = Phases_getInstance_1().
|
|
818
|
-
client.
|
|
1033
|
+
protoOf(ReceiveHook).b5c = function (client, handler) {
|
|
1034
|
+
var tmp = Phases_getInstance_1().a3q_1;
|
|
1035
|
+
client.d3n_1.j2r(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
819
1036
|
};
|
|
820
|
-
protoOf(ReceiveHook).
|
|
821
|
-
return this.
|
|
1037
|
+
protoOf(ReceiveHook).m3w = function (client, handler) {
|
|
1038
|
+
return this.b5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
822
1039
|
};
|
|
823
1040
|
var ReceiveHook_instance;
|
|
824
1041
|
function ReceiveHook_getInstance() {
|
|
@@ -833,122 +1050,46 @@
|
|
|
833
1050
|
}
|
|
834
1051
|
function Logging$lambda($this$createClientPlugin) {
|
|
835
1052
|
_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.
|
|
1053
|
+
var logger = $this$createClientPlugin.g3x_1.x59();
|
|
1054
|
+
var level = $this$createClientPlugin.g3x_1.u59_1;
|
|
1055
|
+
var filters = $this$createClientPlugin.g3x_1.q59_1;
|
|
1056
|
+
var sanitizedHeaders = $this$createClientPlugin.g3x_1.r59_1;
|
|
1057
|
+
var okHttpFormat = $this$createClientPlugin.g3x_1.t59_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1058
|
+
var bodyFilter = $this$createClientPlugin.g3x_1.v59_1;
|
|
841
1059
|
var tmp = SendHook_instance;
|
|
842
|
-
$this$createClientPlugin.
|
|
1060
|
+
$this$createClientPlugin.j3x(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
843
1061
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
844
|
-
$this$createClientPlugin.
|
|
1062
|
+
$this$createClientPlugin.j3x(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
845
1063
|
var tmp_1 = ResponseHook_instance;
|
|
846
|
-
$this$createClientPlugin.
|
|
1064
|
+
$this$createClientPlugin.j3x(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
847
1065
|
var tmp_2 = ReceiveHook_instance;
|
|
848
|
-
$this$createClientPlugin.
|
|
1066
|
+
$this$createClientPlugin.j3x(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
849
1067
|
if (okHttpFormat)
|
|
850
1068
|
return Unit_instance;
|
|
851
|
-
if (!level.
|
|
1069
|
+
if (!level.i59_1)
|
|
852
1070
|
return Unit_instance;
|
|
853
1071
|
var tmp_3 = get_ResponseObserver();
|
|
854
|
-
var responseObserver = tmp_3.
|
|
855
|
-
get_ResponseObserver().
|
|
1072
|
+
var responseObserver = tmp_3.h3q(Logging$lambda$lambda(level));
|
|
1073
|
+
get_ResponseObserver().i3q(responseObserver, $this$createClientPlugin.f3x_1);
|
|
856
1074
|
return Unit_instance;
|
|
857
1075
|
}
|
|
858
|
-
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
859
|
-
this.r4y_1 = $channel;
|
|
860
|
-
this.s4y_1 = $firstChunk;
|
|
861
|
-
this.t4y_1 = $firstReadSize;
|
|
862
|
-
this.u4y_1 = $body;
|
|
863
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
864
|
-
}
|
|
865
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).x4y = function ($this$async, $completion) {
|
|
866
|
-
var tmp = this.e1u($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.x4y((!(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.r4y_1, this.s4y_1, 0, this.t4y_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.u4y_1, this.r4y_1, this);
|
|
892
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
893
|
-
return suspendResult;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
continue $sm;
|
|
897
|
-
case 2:
|
|
898
|
-
this.w4y_1 = suspendResult;
|
|
899
|
-
this.a9_1 = 3;
|
|
900
|
-
suspendResult = this.r4y_1.e1l(this);
|
|
901
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
902
|
-
return suspendResult;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
continue $sm;
|
|
906
|
-
case 3:
|
|
907
|
-
return this.w4y_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).e1u = function ($this$async, completion) {
|
|
923
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.r4y_1, this.s4y_1, this.t4y_1, this.u4y_1, completion);
|
|
924
|
-
i.v4y_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.x4y($this$async, $completion);
|
|
931
|
-
};
|
|
932
|
-
l.$arity = 1;
|
|
933
|
-
return l;
|
|
934
|
-
}
|
|
935
1076
|
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
936
1077
|
_init_properties_Logging_kt__66pui5();
|
|
937
1078
|
return it;
|
|
938
1079
|
}
|
|
939
1080
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
1081
|
+
this.k5c_1 = $content;
|
|
1082
|
+
this.l5c_1 = $channel;
|
|
942
1083
|
CoroutineImpl.call(this, resultContinuation);
|
|
943
1084
|
}
|
|
944
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
945
|
-
var tmp = this.
|
|
1085
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).x1w = function ($this$launch, $completion) {
|
|
1086
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
946
1087
|
tmp.c9_1 = Unit_instance;
|
|
947
1088
|
tmp.d9_1 = null;
|
|
948
1089
|
return tmp.i9();
|
|
949
1090
|
};
|
|
950
1091
|
protoOf(Logging$lambda$logOutgoingContent$slambda).u9 = function (p1, $completion) {
|
|
951
|
-
return this.
|
|
1092
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
952
1093
|
};
|
|
953
1094
|
protoOf(Logging$lambda$logOutgoingContent$slambda).i9 = function () {
|
|
954
1095
|
var suspendResult = this.c9_1;
|
|
@@ -959,14 +1100,14 @@
|
|
|
959
1100
|
case 0:
|
|
960
1101
|
this.b9_1 = 2;
|
|
961
1102
|
this.a9_1 = 1;
|
|
962
|
-
suspendResult = this.
|
|
1103
|
+
suspendResult = this.k5c_1.p35(this.l5c_1, this);
|
|
963
1104
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
964
1105
|
return suspendResult;
|
|
965
1106
|
}
|
|
966
1107
|
|
|
967
1108
|
continue $sm;
|
|
968
1109
|
case 1:
|
|
969
|
-
this.
|
|
1110
|
+
this.l5c_1.l4();
|
|
970
1111
|
return Unit_instance;
|
|
971
1112
|
case 2:
|
|
972
1113
|
throw this.d9_1;
|
|
@@ -982,22 +1123,22 @@
|
|
|
982
1123
|
}
|
|
983
1124
|
while (true);
|
|
984
1125
|
};
|
|
985
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
986
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
987
|
-
i.
|
|
1126
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).y1w = function ($this$launch, completion) {
|
|
1127
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.k5c_1, this.l5c_1, completion);
|
|
1128
|
+
i.m5c_1 = $this$launch;
|
|
988
1129
|
return i;
|
|
989
1130
|
};
|
|
990
1131
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
991
1132
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
992
1133
|
var l = function ($this$launch, $completion) {
|
|
993
|
-
return i.
|
|
1134
|
+
return i.x1w($this$launch, $completion);
|
|
994
1135
|
};
|
|
995
1136
|
l.$arity = 1;
|
|
996
1137
|
return l;
|
|
997
1138
|
}
|
|
998
1139
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
999
1140
|
_init_properties_Logging_kt__66pui5();
|
|
1000
|
-
return GZipEncoder_getInstance().
|
|
1141
|
+
return GZipEncoder_getInstance().g2n(channel);
|
|
1001
1142
|
}
|
|
1002
1143
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1003
1144
|
return function ($this$replaceResponse) {
|
|
@@ -1005,20 +1146,20 @@
|
|
|
1005
1146
|
};
|
|
1006
1147
|
}
|
|
1007
1148
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1149
|
+
this.v5c_1 = $channel;
|
|
1150
|
+
this.w5c_1 = $charset;
|
|
1151
|
+
this.x5c_1 = $requestLog;
|
|
1152
|
+
this.y5c_1 = $logger;
|
|
1012
1153
|
CoroutineImpl.call(this, resultContinuation);
|
|
1013
1154
|
}
|
|
1014
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1015
|
-
var tmp = this.
|
|
1155
|
+
protoOf(Logging$lambda$logRequestBody$slambda).x1w = function ($this$launch, $completion) {
|
|
1156
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
1016
1157
|
tmp.c9_1 = Unit_instance;
|
|
1017
1158
|
tmp.d9_1 = null;
|
|
1018
1159
|
return tmp.i9();
|
|
1019
1160
|
};
|
|
1020
1161
|
protoOf(Logging$lambda$logRequestBody$slambda).u9 = function (p1, $completion) {
|
|
1021
|
-
return this.
|
|
1162
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1022
1163
|
};
|
|
1023
1164
|
protoOf(Logging$lambda$logRequestBody$slambda).i9 = function () {
|
|
1024
1165
|
var suspendResult = this.c9_1;
|
|
@@ -1032,8 +1173,8 @@
|
|
|
1032
1173
|
continue $sm;
|
|
1033
1174
|
case 1:
|
|
1034
1175
|
this.b9_1 = 6;
|
|
1035
|
-
var tmp0 = this.
|
|
1036
|
-
this.
|
|
1176
|
+
var tmp0 = this.v5c_1;
|
|
1177
|
+
this.c5d_1 = this.w5c_1;
|
|
1037
1178
|
this.b9_1 = 3;
|
|
1038
1179
|
this.a9_1 = 2;
|
|
1039
1180
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1044,7 +1185,7 @@
|
|
|
1044
1185
|
continue $sm;
|
|
1045
1186
|
case 2:
|
|
1046
1187
|
var ARGUMENT = suspendResult;
|
|
1047
|
-
this.
|
|
1188
|
+
this.b5d_1 = readText(ARGUMENT, this.c5d_1);
|
|
1048
1189
|
this.b9_1 = 6;
|
|
1049
1190
|
this.a9_1 = 4;
|
|
1050
1191
|
continue $sm;
|
|
@@ -1054,7 +1195,7 @@
|
|
|
1054
1195
|
if (tmp_0 instanceof Error) {
|
|
1055
1196
|
var cause = this.d9_1;
|
|
1056
1197
|
var tmp_1 = this;
|
|
1057
|
-
tmp_1.
|
|
1198
|
+
tmp_1.b5d_1 = null;
|
|
1058
1199
|
this.a9_1 = 4;
|
|
1059
1200
|
continue $sm;
|
|
1060
1201
|
} else {
|
|
@@ -1063,27 +1204,27 @@
|
|
|
1063
1204
|
|
|
1064
1205
|
case 4:
|
|
1065
1206
|
this.b9_1 = 6;
|
|
1066
|
-
var tmp0_elvis_lhs = this.
|
|
1207
|
+
var tmp0_elvis_lhs = this.b5d_1;
|
|
1067
1208
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1068
|
-
var tmp0_0 = this.
|
|
1209
|
+
var tmp0_0 = this.x5c_1;
|
|
1069
1210
|
var value = 'BODY START';
|
|
1070
1211
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1212
|
+
this.x5c_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1213
|
+
this.a5d_1 = this.x5c_1.q('BODY END');
|
|
1073
1214
|
this.b9_1 = 7;
|
|
1074
1215
|
this.a9_1 = 5;
|
|
1075
1216
|
continue $sm;
|
|
1076
1217
|
case 5:
|
|
1077
|
-
this.
|
|
1218
|
+
this.a5d_1;
|
|
1078
1219
|
this.b9_1 = 7;
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1220
|
+
this.y5c_1.v57(this.x5c_1.toString());
|
|
1221
|
+
this.y5c_1.z57();
|
|
1081
1222
|
return Unit_instance;
|
|
1082
1223
|
case 6:
|
|
1083
1224
|
this.b9_1 = 7;
|
|
1084
1225
|
var t = this.d9_1;
|
|
1085
|
-
this.
|
|
1086
|
-
this.
|
|
1226
|
+
this.y5c_1.v57(this.x5c_1.toString());
|
|
1227
|
+
this.y5c_1.z57();
|
|
1087
1228
|
throw t;
|
|
1088
1229
|
case 7:
|
|
1089
1230
|
throw this.d9_1;
|
|
@@ -1099,15 +1240,15 @@
|
|
|
1099
1240
|
}
|
|
1100
1241
|
while (true);
|
|
1101
1242
|
};
|
|
1102
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1103
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1104
|
-
i.
|
|
1243
|
+
protoOf(Logging$lambda$logRequestBody$slambda).y1w = function ($this$launch, completion) {
|
|
1244
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.v5c_1, this.w5c_1, this.x5c_1, this.y5c_1, completion);
|
|
1245
|
+
i.z5c_1 = $this$launch;
|
|
1105
1246
|
return i;
|
|
1106
1247
|
};
|
|
1107
1248
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1108
1249
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1109
1250
|
var l = function ($this$launch, $completion) {
|
|
1110
|
-
return i.
|
|
1251
|
+
return i.x1w($this$launch, $completion);
|
|
1111
1252
|
};
|
|
1112
1253
|
l.$arity = 1;
|
|
1113
1254
|
return l;
|
|
@@ -1156,19 +1297,13 @@
|
|
|
1156
1297
|
function invoke$isBody(level) {
|
|
1157
1298
|
return level.equals(LogLevel_BODY_getInstance()) || level.equals(LogLevel_ALL_getInstance());
|
|
1158
1299
|
}
|
|
1159
|
-
function invoke$
|
|
1160
|
-
var tmp = new $invoke$
|
|
1300
|
+
function invoke$logRequestBody(bodyFilter, url, content, contentLength, headers, method, logLines, body, $completion) {
|
|
1301
|
+
var tmp = new $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, $completion);
|
|
1161
1302
|
tmp.c9_1 = Unit_instance;
|
|
1162
1303
|
tmp.d9_1 = null;
|
|
1163
1304
|
return tmp.i9();
|
|
1164
1305
|
}
|
|
1165
|
-
function invoke$
|
|
1166
|
-
var tmp = new $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion);
|
|
1167
|
-
tmp.c9_1 = Unit_instance;
|
|
1168
|
-
tmp.d9_1 = null;
|
|
1169
|
-
return tmp.i9();
|
|
1170
|
-
}
|
|
1171
|
-
function invoke$logOutgoingContent($this_createClientPlugin, content, method, headers, logLines, process, $completion) {
|
|
1306
|
+
function invoke$logOutgoingContent($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, $completion) {
|
|
1172
1307
|
var tmp;
|
|
1173
1308
|
if (process === VOID) {
|
|
1174
1309
|
tmp = Logging$lambda$logOutgoingContent$lambda;
|
|
@@ -1176,25 +1311,25 @@
|
|
|
1176
1311
|
tmp = process;
|
|
1177
1312
|
}
|
|
1178
1313
|
process = tmp;
|
|
1179
|
-
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, $completion);
|
|
1314
|
+
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, $completion);
|
|
1180
1315
|
tmp_0.c9_1 = Unit_instance;
|
|
1181
1316
|
tmp_0.d9_1 = null;
|
|
1182
1317
|
return tmp_0.i9();
|
|
1183
1318
|
}
|
|
1184
|
-
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion) {
|
|
1185
|
-
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion);
|
|
1319
|
+
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, $completion) {
|
|
1320
|
+
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, $completion);
|
|
1186
1321
|
tmp.c9_1 = Unit_instance;
|
|
1187
1322
|
tmp.d9_1 = null;
|
|
1188
1323
|
return tmp.i9();
|
|
1189
1324
|
}
|
|
1190
|
-
function invoke$logResponseBody(
|
|
1191
|
-
var tmp = new $invoke$logResponseBodyCOROUTINE$(
|
|
1325
|
+
function invoke$logResponseBody(bodyFilter, response, body, logLines, $completion) {
|
|
1326
|
+
var tmp = new $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, $completion);
|
|
1192
1327
|
tmp.c9_1 = Unit_instance;
|
|
1193
1328
|
tmp.d9_1 = null;
|
|
1194
1329
|
return tmp.i9();
|
|
1195
1330
|
}
|
|
1196
|
-
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level,
|
|
1197
|
-
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level,
|
|
1331
|
+
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level, bodyFilter, response, logLines, $completion) {
|
|
1332
|
+
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, $completion);
|
|
1198
1333
|
tmp.c9_1 = Unit_instance;
|
|
1199
1334
|
tmp.d9_1 = null;
|
|
1200
1335
|
return tmp.i9();
|
|
@@ -1202,140 +1337,139 @@
|
|
|
1202
1337
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1203
1338
|
var requestLog = StringBuilder_init_$Create$();
|
|
1204
1339
|
// Inline function 'kotlin.text.appendLine' call
|
|
1205
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1340
|
+
var value = 'BODY Content-Type: ' + toString_0(content.h35());
|
|
1206
1341
|
// Inline function 'kotlin.text.appendLine' call
|
|
1207
1342
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1208
|
-
var tmp0_safe_receiver = content.
|
|
1343
|
+
var tmp0_safe_receiver = content.h35();
|
|
1209
1344
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1210
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
1345
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp1_elvis_lhs;
|
|
1211
1346
|
var channel = new ByteChannel();
|
|
1212
1347
|
var tmp = GlobalScope_instance;
|
|
1213
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1348
|
+
var tmp_0 = Dispatchers_getInstance().i15_1.yg(MDCContext());
|
|
1214
1349
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1215
1350
|
return observe(content, channel, $completion);
|
|
1216
1351
|
}
|
|
1217
1352
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1218
|
-
if (level.
|
|
1219
|
-
logger.
|
|
1353
|
+
if (level.g59_1) {
|
|
1354
|
+
logger.b57('REQUEST ' + Url(context.c3p_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1220
1355
|
}
|
|
1221
1356
|
}
|
|
1222
1357
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1223
|
-
var tmp = request.
|
|
1358
|
+
var tmp = request.f3p_1;
|
|
1224
1359
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1225
1360
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1226
|
-
request.
|
|
1361
|
+
request.h3p_1.v2j(get_ClientCallLogger(), callLogger);
|
|
1227
1362
|
// Inline function 'kotlin.text.buildString' call
|
|
1228
1363
|
// Inline function 'kotlin.apply' call
|
|
1229
1364
|
var this_0 = StringBuilder_init_$Create$();
|
|
1230
|
-
if (level.
|
|
1365
|
+
if (level.g59_1) {
|
|
1231
1366
|
// Inline function 'kotlin.text.appendLine' call
|
|
1232
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1367
|
+
var value = 'REQUEST: ' + Url(request.c3p_1).toString();
|
|
1233
1368
|
// Inline function 'kotlin.text.appendLine' call
|
|
1234
1369
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1235
1370
|
// Inline function 'kotlin.text.appendLine' call
|
|
1236
|
-
var value_0 = 'METHOD: ' + request.
|
|
1371
|
+
var value_0 = 'METHOD: ' + request.d3p_1.toString();
|
|
1237
1372
|
// Inline function 'kotlin.text.appendLine' call
|
|
1238
1373
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1239
1374
|
}
|
|
1240
|
-
if (level.
|
|
1375
|
+
if (level.h59_1) {
|
|
1241
1376
|
// Inline function 'kotlin.text.appendLine' call
|
|
1242
1377
|
var value_1 = 'COMMON HEADERS';
|
|
1243
1378
|
// Inline function 'kotlin.text.appendLine' call
|
|
1244
1379
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1245
|
-
logHeaders(this_0, request.
|
|
1380
|
+
logHeaders(this_0, request.e3p_1.u2n(), sanitizedHeaders);
|
|
1246
1381
|
// Inline function 'kotlin.text.appendLine' call
|
|
1247
1382
|
var value_2 = 'CONTENT HEADERS';
|
|
1248
1383
|
// Inline function 'kotlin.text.appendLine' call
|
|
1249
1384
|
this_0.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
1250
|
-
var tmp$ret$
|
|
1385
|
+
var tmp$ret$11;
|
|
1251
1386
|
$l$block: {
|
|
1252
1387
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1253
1388
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1254
1389
|
while (_iterator__ex2g4s.u()) {
|
|
1255
1390
|
var element = _iterator__ex2g4s.v();
|
|
1256
|
-
if (element.
|
|
1257
|
-
tmp$ret$
|
|
1391
|
+
if (element.c5g_1('Content-Length')) {
|
|
1392
|
+
tmp$ret$11 = element;
|
|
1258
1393
|
break $l$block;
|
|
1259
1394
|
}
|
|
1260
1395
|
}
|
|
1261
|
-
tmp$ret$
|
|
1396
|
+
tmp$ret$11 = null;
|
|
1262
1397
|
}
|
|
1263
|
-
var tmp0_safe_receiver = tmp$ret$
|
|
1264
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1265
|
-
var tmp$ret$
|
|
1398
|
+
var tmp0_safe_receiver = tmp$ret$11;
|
|
1399
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b5g_1;
|
|
1400
|
+
var tmp$ret$13;
|
|
1266
1401
|
$l$block_0: {
|
|
1267
1402
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1268
1403
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1269
1404
|
while (_iterator__ex2g4s_0.u()) {
|
|
1270
1405
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1271
|
-
if (element_0.
|
|
1272
|
-
tmp$ret$
|
|
1406
|
+
if (element_0.c5g_1('Content-Type')) {
|
|
1407
|
+
tmp$ret$13 = element_0;
|
|
1273
1408
|
break $l$block_0;
|
|
1274
1409
|
}
|
|
1275
1410
|
}
|
|
1276
|
-
tmp$ret$
|
|
1411
|
+
tmp$ret$13 = null;
|
|
1277
1412
|
}
|
|
1278
|
-
var tmp1_safe_receiver = tmp$ret$
|
|
1279
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1280
|
-
var tmp2_safe_receiver = content.
|
|
1413
|
+
var tmp1_safe_receiver = tmp$ret$13;
|
|
1414
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b5g_1;
|
|
1415
|
+
var tmp2_safe_receiver = content.j35();
|
|
1281
1416
|
if (tmp2_safe_receiver == null)
|
|
1282
1417
|
null;
|
|
1283
1418
|
else {
|
|
1284
1419
|
// Inline function 'kotlin.let' call
|
|
1285
|
-
|
|
1286
|
-
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1420
|
+
logHeader(this_0, 'Content-Length', contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1287
1421
|
}
|
|
1288
|
-
var tmp3_safe_receiver = content.
|
|
1422
|
+
var tmp3_safe_receiver = content.h35();
|
|
1289
1423
|
if (tmp3_safe_receiver == null)
|
|
1290
1424
|
null;
|
|
1291
1425
|
else {
|
|
1292
1426
|
// Inline function 'kotlin.let' call
|
|
1293
|
-
|
|
1294
|
-
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1427
|
+
logHeader(this_0, 'Content-Type', contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1295
1428
|
}
|
|
1296
|
-
logHeaders(this_0, content.
|
|
1429
|
+
logHeaders(this_0, content.j2z().u2n(), sanitizedHeaders);
|
|
1297
1430
|
}
|
|
1298
1431
|
var message = this_0.toString();
|
|
1299
1432
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1300
1433
|
if (charSequenceLength(message) > 0) {
|
|
1301
|
-
callLogger.
|
|
1434
|
+
callLogger.v57(message);
|
|
1302
1435
|
}
|
|
1303
|
-
var
|
|
1436
|
+
var tmp_0;
|
|
1304
1437
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1305
1438
|
if (charSequenceLength(message) === 0) {
|
|
1306
|
-
|
|
1439
|
+
tmp_0 = true;
|
|
1307
1440
|
} else {
|
|
1308
|
-
|
|
1441
|
+
tmp_0 = !level.i59_1;
|
|
1309
1442
|
}
|
|
1310
|
-
if (
|
|
1311
|
-
callLogger.
|
|
1443
|
+
if (tmp_0) {
|
|
1444
|
+
callLogger.z57();
|
|
1312
1445
|
return null;
|
|
1313
1446
|
}
|
|
1314
1447
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1315
1448
|
}
|
|
1316
1449
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1317
|
-
if (!level.
|
|
1450
|
+
if (!level.g59_1)
|
|
1318
1451
|
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.
|
|
1452
|
+
log.q('RESPONSE ' + request.t3q().toString() + ' failed with exception: ' + cause.toString());
|
|
1453
|
+
}
|
|
1454
|
+
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1455
|
+
this.l5g_1 = $okHttpFormat;
|
|
1456
|
+
this.m5g_1 = $logger;
|
|
1457
|
+
this.n5g_1 = $filters;
|
|
1458
|
+
this.o5g_1 = $sanitizedHeaders;
|
|
1459
|
+
this.p5g_1 = $level;
|
|
1460
|
+
this.q5g_1 = $this_createClientPlugin;
|
|
1461
|
+
this.r5g_1 = $bodyFilter;
|
|
1328
1462
|
CoroutineImpl.call(this, resultContinuation);
|
|
1329
1463
|
}
|
|
1330
|
-
protoOf(Logging$lambda$slambda).
|
|
1331
|
-
var tmp = this.
|
|
1464
|
+
protoOf(Logging$lambda$slambda).a5h = function ($this$on, request, $completion) {
|
|
1465
|
+
var tmp = this.b5h($this$on, request, $completion);
|
|
1332
1466
|
tmp.c9_1 = Unit_instance;
|
|
1333
1467
|
tmp.d9_1 = null;
|
|
1334
1468
|
return tmp.i9();
|
|
1335
1469
|
};
|
|
1336
1470
|
protoOf(Logging$lambda$slambda).v9 = function (p1, p2, $completion) {
|
|
1337
1471
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1338
|
-
return this.
|
|
1472
|
+
return this.a5h(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1339
1473
|
};
|
|
1340
1474
|
protoOf(Logging$lambda$slambda).i9 = function () {
|
|
1341
1475
|
var suspendResult = this.c9_1;
|
|
@@ -1345,16 +1479,16 @@
|
|
|
1345
1479
|
switch (tmp) {
|
|
1346
1480
|
case 0:
|
|
1347
1481
|
this.b9_1 = 16;
|
|
1348
|
-
if (!invoke$shouldBeLogged(this.
|
|
1349
|
-
this.
|
|
1482
|
+
if (!invoke$shouldBeLogged(this.n5g_1, this.t5g_1)) {
|
|
1483
|
+
this.t5g_1.h3p_1.v2j(get_DisableLogging(), Unit_instance);
|
|
1350
1484
|
return Unit_instance;
|
|
1351
1485
|
}
|
|
1352
1486
|
|
|
1353
|
-
if (this.
|
|
1487
|
+
if (this.l5g_1) {
|
|
1354
1488
|
var tmp_0 = this;
|
|
1355
|
-
tmp_0.
|
|
1489
|
+
tmp_0.w5g_1 = ArrayList_init_$Create$();
|
|
1356
1490
|
this.a9_1 = 10;
|
|
1357
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1491
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.o5g_1, this.p5g_1, this.q5g_1, this.r5g_1, this.t5g_1, this.w5g_1, this);
|
|
1358
1492
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1359
1493
|
return suspendResult;
|
|
1360
1494
|
}
|
|
@@ -1367,14 +1501,14 @@
|
|
|
1367
1501
|
case 1:
|
|
1368
1502
|
this.b9_1 = 3;
|
|
1369
1503
|
this.a9_1 = 2;
|
|
1370
|
-
suspendResult = invoke$logRequest(this.
|
|
1504
|
+
suspendResult = invoke$logRequest(this.m5g_1, this.p5g_1, this.o5g_1, this.t5g_1, this);
|
|
1371
1505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1372
1506
|
return suspendResult;
|
|
1373
1507
|
}
|
|
1374
1508
|
|
|
1375
1509
|
continue $sm;
|
|
1376
1510
|
case 2:
|
|
1377
|
-
this.
|
|
1511
|
+
this.z5g_1 = suspendResult;
|
|
1378
1512
|
this.b9_1 = 16;
|
|
1379
1513
|
this.a9_1 = 4;
|
|
1380
1514
|
continue $sm;
|
|
@@ -1384,7 +1518,7 @@
|
|
|
1384
1518
|
if (tmp_1 instanceof Error) {
|
|
1385
1519
|
var _unused_var__etf5q3 = this.d9_1;
|
|
1386
1520
|
var tmp_2 = this;
|
|
1387
|
-
tmp_2.
|
|
1521
|
+
tmp_2.z5g_1 = null;
|
|
1388
1522
|
this.a9_1 = 4;
|
|
1389
1523
|
continue $sm;
|
|
1390
1524
|
} else {
|
|
@@ -1393,23 +1527,23 @@
|
|
|
1393
1527
|
|
|
1394
1528
|
case 4:
|
|
1395
1529
|
this.b9_1 = 16;
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1530
|
+
this.y5g_1 = this.z5g_1;
|
|
1531
|
+
this.x5g_1 = Unit_instance;
|
|
1398
1532
|
this.a9_1 = 5;
|
|
1399
1533
|
continue $sm;
|
|
1400
1534
|
case 5:
|
|
1401
1535
|
this.b9_1 = 8;
|
|
1402
1536
|
this.b9_1 = 7;
|
|
1403
1537
|
this.a9_1 = 6;
|
|
1404
|
-
var tmp0_elvis_lhs = this.
|
|
1405
|
-
suspendResult = this.
|
|
1538
|
+
var tmp0_elvis_lhs = this.y5g_1;
|
|
1539
|
+
suspendResult = this.s5g_1.z59(tmp0_elvis_lhs == null ? this.t5g_1.f3p_1 : tmp0_elvis_lhs, this);
|
|
1406
1540
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1407
1541
|
return suspendResult;
|
|
1408
1542
|
}
|
|
1409
1543
|
|
|
1410
1544
|
continue $sm;
|
|
1411
1545
|
case 6:
|
|
1412
|
-
this.
|
|
1546
|
+
this.x5g_1 = suspendResult;
|
|
1413
1547
|
this.b9_1 = 16;
|
|
1414
1548
|
this.a9_1 = 9;
|
|
1415
1549
|
continue $sm;
|
|
@@ -1419,7 +1553,7 @@
|
|
|
1419
1553
|
if (tmp_3 instanceof Error) {
|
|
1420
1554
|
var cause = this.d9_1;
|
|
1421
1555
|
var tmp_4 = this;
|
|
1422
|
-
invoke$logRequestException(this.
|
|
1556
|
+
invoke$logRequestException(this.p5g_1, this.m5g_1, this.t5g_1, cause);
|
|
1423
1557
|
throw cause;
|
|
1424
1558
|
} else {
|
|
1425
1559
|
throw this.d9_1;
|
|
@@ -1430,26 +1564,26 @@
|
|
|
1430
1564
|
var t = this.d9_1;
|
|
1431
1565
|
throw t;
|
|
1432
1566
|
case 9:
|
|
1433
|
-
this.
|
|
1567
|
+
this.x5g_1;
|
|
1434
1568
|
this.b9_1 = 16;
|
|
1435
1569
|
return Unit_instance;
|
|
1436
1570
|
case 10:
|
|
1437
1571
|
var content = suspendResult;
|
|
1438
|
-
if (this.
|
|
1439
|
-
this.
|
|
1572
|
+
if (this.w5g_1.l1() > 0) {
|
|
1573
|
+
this.m5g_1.b57(joinToString(this.w5g_1, '\n'));
|
|
1440
1574
|
}
|
|
1441
1575
|
|
|
1442
1576
|
this.b9_1 = 14;
|
|
1443
1577
|
if (!(content == null)) {
|
|
1444
1578
|
this.a9_1 = 12;
|
|
1445
|
-
suspendResult = this.
|
|
1579
|
+
suspendResult = this.s5g_1.z59(content, this);
|
|
1446
1580
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1447
1581
|
return suspendResult;
|
|
1448
1582
|
}
|
|
1449
1583
|
continue $sm;
|
|
1450
1584
|
} else {
|
|
1451
1585
|
this.a9_1 = 11;
|
|
1452
|
-
suspendResult = this.
|
|
1586
|
+
suspendResult = this.s5g_1.a5a(this);
|
|
1453
1587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1588
|
return suspendResult;
|
|
1455
1589
|
}
|
|
@@ -1457,15 +1591,15 @@
|
|
|
1457
1591
|
}
|
|
1458
1592
|
|
|
1459
1593
|
case 11:
|
|
1460
|
-
this.
|
|
1594
|
+
this.v5g_1 = suspendResult;
|
|
1461
1595
|
this.a9_1 = 13;
|
|
1462
1596
|
continue $sm;
|
|
1463
1597
|
case 12:
|
|
1464
|
-
this.
|
|
1598
|
+
this.v5g_1 = suspendResult;
|
|
1465
1599
|
this.a9_1 = 13;
|
|
1466
1600
|
continue $sm;
|
|
1467
1601
|
case 13:
|
|
1468
|
-
this.
|
|
1602
|
+
this.u5g_1 = this.v5g_1;
|
|
1469
1603
|
this.b9_1 = 16;
|
|
1470
1604
|
this.a9_1 = 15;
|
|
1471
1605
|
continue $sm;
|
|
@@ -1475,7 +1609,7 @@
|
|
|
1475
1609
|
if (tmp_5 instanceof Error) {
|
|
1476
1610
|
var cause_0 = this.d9_1;
|
|
1477
1611
|
var tmp_6 = this;
|
|
1478
|
-
this.
|
|
1612
|
+
this.m5g_1.b57('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1479
1613
|
throw cause_0;
|
|
1480
1614
|
} else {
|
|
1481
1615
|
throw this.d9_1;
|
|
@@ -1498,37 +1632,37 @@
|
|
|
1498
1632
|
}
|
|
1499
1633
|
while (true);
|
|
1500
1634
|
};
|
|
1501
|
-
protoOf(Logging$lambda$slambda).
|
|
1502
|
-
var i = new Logging$lambda$slambda(this.
|
|
1503
|
-
i.
|
|
1504
|
-
i.
|
|
1635
|
+
protoOf(Logging$lambda$slambda).b5h = function ($this$on, request, completion) {
|
|
1636
|
+
var i = new Logging$lambda$slambda(this.l5g_1, this.m5g_1, this.n5g_1, this.o5g_1, this.p5g_1, this.q5g_1, this.r5g_1, completion);
|
|
1637
|
+
i.s5g_1 = $this$on;
|
|
1638
|
+
i.t5g_1 = request;
|
|
1505
1639
|
return i;
|
|
1506
1640
|
};
|
|
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);
|
|
1641
|
+
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1642
|
+
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1509
1643
|
var l = function ($this$on, request, $completion) {
|
|
1510
|
-
return i.
|
|
1644
|
+
return i.a5h($this$on, request, $completion);
|
|
1511
1645
|
};
|
|
1512
1646
|
l.$arity = 2;
|
|
1513
1647
|
return l;
|
|
1514
1648
|
}
|
|
1515
|
-
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $
|
|
1516
|
-
this.
|
|
1517
|
-
this.
|
|
1518
|
-
this.
|
|
1519
|
-
this.
|
|
1520
|
-
this.
|
|
1649
|
+
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1650
|
+
this.k5h_1 = $okHttpFormat;
|
|
1651
|
+
this.l5h_1 = $logger;
|
|
1652
|
+
this.m5h_1 = $sanitizedHeaders;
|
|
1653
|
+
this.n5h_1 = $level;
|
|
1654
|
+
this.o5h_1 = $bodyFilter;
|
|
1521
1655
|
CoroutineImpl.call(this, resultContinuation);
|
|
1522
1656
|
}
|
|
1523
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1524
|
-
var tmp = this.
|
|
1657
|
+
protoOf(Logging$lambda$slambda_1).s5h = function ($this$on, response, $completion) {
|
|
1658
|
+
var tmp = this.t5h($this$on, response, $completion);
|
|
1525
1659
|
tmp.c9_1 = Unit_instance;
|
|
1526
1660
|
tmp.d9_1 = null;
|
|
1527
1661
|
return tmp.i9();
|
|
1528
1662
|
};
|
|
1529
1663
|
protoOf(Logging$lambda$slambda_1).v9 = function (p1, p2, $completion) {
|
|
1530
1664
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1531
|
-
return this.
|
|
1665
|
+
return this.s5h(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1532
1666
|
};
|
|
1533
1667
|
protoOf(Logging$lambda$slambda_1).i9 = function () {
|
|
1534
1668
|
var suspendResult = this.c9_1;
|
|
@@ -1538,11 +1672,11 @@
|
|
|
1538
1672
|
switch (tmp) {
|
|
1539
1673
|
case 0:
|
|
1540
1674
|
this.b9_1 = 5;
|
|
1541
|
-
if (this.
|
|
1675
|
+
if (this.k5h_1) {
|
|
1542
1676
|
var tmp_0 = this;
|
|
1543
|
-
tmp_0.
|
|
1677
|
+
tmp_0.r5h_1 = ArrayList_init_$Create$();
|
|
1544
1678
|
this.a9_1 = 1;
|
|
1545
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1679
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.m5h_1, this.n5h_1, this.o5h_1, this.q5h_1, this.r5h_1, this);
|
|
1546
1680
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1547
1681
|
return suspendResult;
|
|
1548
1682
|
}
|
|
@@ -1554,13 +1688,13 @@
|
|
|
1554
1688
|
|
|
1555
1689
|
case 1:
|
|
1556
1690
|
var newResponse = suspendResult;
|
|
1557
|
-
if (this.
|
|
1558
|
-
this.
|
|
1691
|
+
if (this.r5h_1.l1() > 0) {
|
|
1692
|
+
this.l5h_1.b57(joinToString(this.r5h_1, '\n'));
|
|
1559
1693
|
}
|
|
1560
1694
|
|
|
1561
|
-
if (!equals(newResponse, this.
|
|
1695
|
+
if (!equals(newResponse, this.q5h_1)) {
|
|
1562
1696
|
this.a9_1 = 2;
|
|
1563
|
-
suspendResult = this.
|
|
1697
|
+
suspendResult = this.p5h_1.l4l(newResponse, this);
|
|
1564
1698
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1565
1699
|
return suspendResult;
|
|
1566
1700
|
}
|
|
@@ -1592,35 +1726,35 @@
|
|
|
1592
1726
|
}
|
|
1593
1727
|
while (true);
|
|
1594
1728
|
};
|
|
1595
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1596
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1597
|
-
i.
|
|
1598
|
-
i.
|
|
1729
|
+
protoOf(Logging$lambda$slambda_1).t5h = function ($this$on, response, completion) {
|
|
1730
|
+
var i = new Logging$lambda$slambda_1(this.k5h_1, this.l5h_1, this.m5h_1, this.n5h_1, this.o5h_1, completion);
|
|
1731
|
+
i.p5h_1 = $this$on;
|
|
1732
|
+
i.q5h_1 = response;
|
|
1599
1733
|
return i;
|
|
1600
1734
|
};
|
|
1601
|
-
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $
|
|
1602
|
-
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $
|
|
1735
|
+
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1736
|
+
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1603
1737
|
var l = function ($this$on, response, $completion) {
|
|
1604
|
-
return i.
|
|
1738
|
+
return i.s5h($this$on, response, $completion);
|
|
1605
1739
|
};
|
|
1606
1740
|
l.$arity = 2;
|
|
1607
1741
|
return l;
|
|
1608
1742
|
}
|
|
1609
1743
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1744
|
+
this.c5i_1 = $okHttpFormat;
|
|
1745
|
+
this.d5i_1 = $level;
|
|
1746
|
+
this.e5i_1 = $sanitizedHeaders;
|
|
1613
1747
|
CoroutineImpl.call(this, resultContinuation);
|
|
1614
1748
|
}
|
|
1615
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1616
|
-
var tmp = this.
|
|
1749
|
+
protoOf(Logging$lambda$slambda_3).n5i = function ($this$on, response, $completion) {
|
|
1750
|
+
var tmp = this.o5i($this$on, response, $completion);
|
|
1617
1751
|
tmp.c9_1 = Unit_instance;
|
|
1618
1752
|
tmp.d9_1 = null;
|
|
1619
1753
|
return tmp.i9();
|
|
1620
1754
|
};
|
|
1621
1755
|
protoOf(Logging$lambda$slambda_3).v9 = function (p1, p2, $completion) {
|
|
1622
1756
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1623
|
-
return this.
|
|
1757
|
+
return this.n5i(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1624
1758
|
};
|
|
1625
1759
|
protoOf(Logging$lambda$slambda_3).i9 = function () {
|
|
1626
1760
|
var suspendResult = this.c9_1;
|
|
@@ -1630,28 +1764,28 @@
|
|
|
1630
1764
|
switch (tmp) {
|
|
1631
1765
|
case 0:
|
|
1632
1766
|
this.b9_1 = 14;
|
|
1633
|
-
if (this.
|
|
1767
|
+
if (this.c5i_1)
|
|
1634
1768
|
return Unit_instance;
|
|
1635
|
-
if (this.
|
|
1769
|
+
if (this.d5i_1.equals(LogLevel_NONE_getInstance()) || this.g5i_1.r3q().l3q().u2j(get_DisableLogging()))
|
|
1636
1770
|
return Unit_instance;
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1771
|
+
this.i5i_1 = this.g5i_1.r3q().l3q().s2j(get_ClientCallLogger());
|
|
1772
|
+
this.k5i_1 = StringBuilder_init_$Create$();
|
|
1773
|
+
this.j5i_1 = false;
|
|
1640
1774
|
this.a9_1 = 1;
|
|
1641
1775
|
continue $sm;
|
|
1642
1776
|
case 1:
|
|
1643
1777
|
this.b9_1 = 4;
|
|
1644
1778
|
this.b9_1 = 3;
|
|
1645
|
-
logResponseHeader(this.
|
|
1779
|
+
logResponseHeader(this.k5i_1, this.g5i_1.r3q().c3o(), this.d5i_1, this.e5i_1);
|
|
1646
1780
|
this.a9_1 = 2;
|
|
1647
|
-
suspendResult = this.
|
|
1781
|
+
suspendResult = this.f5i_1.b5b(this);
|
|
1648
1782
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1649
1783
|
return suspendResult;
|
|
1650
1784
|
}
|
|
1651
1785
|
|
|
1652
1786
|
continue $sm;
|
|
1653
1787
|
case 2:
|
|
1654
|
-
this.
|
|
1788
|
+
this.l5i_1 = suspendResult;
|
|
1655
1789
|
this.b9_1 = 14;
|
|
1656
1790
|
this.a9_1 = 9;
|
|
1657
1791
|
continue $sm;
|
|
@@ -1661,8 +1795,8 @@
|
|
|
1661
1795
|
if (tmp_0 instanceof Error) {
|
|
1662
1796
|
var cause = this.d9_1;
|
|
1663
1797
|
var tmp_1 = this;
|
|
1664
|
-
invoke$logResponseException(this.
|
|
1665
|
-
this.
|
|
1798
|
+
invoke$logResponseException(this.d5i_1, this.k5i_1, this.g5i_1.r3q().k3q(), cause);
|
|
1799
|
+
this.j5i_1 = true;
|
|
1666
1800
|
throw cause;
|
|
1667
1801
|
} else {
|
|
1668
1802
|
throw this.d9_1;
|
|
@@ -1670,19 +1804,19 @@
|
|
|
1670
1804
|
|
|
1671
1805
|
case 4:
|
|
1672
1806
|
this.b9_1 = 14;
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
if (this.
|
|
1807
|
+
this.m5i_1 = this.d9_1;
|
|
1808
|
+
this.i5i_1.w57(this.k5i_1.toString());
|
|
1809
|
+
if (this.j5i_1 || !this.d5i_1.i59_1) {
|
|
1676
1810
|
this.a9_1 = 7;
|
|
1677
|
-
suspendResult = this.
|
|
1811
|
+
suspendResult = this.i5i_1.a58(this);
|
|
1678
1812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1679
1813
|
return suspendResult;
|
|
1680
1814
|
}
|
|
1681
1815
|
continue $sm;
|
|
1682
1816
|
} else {
|
|
1683
|
-
if (this.
|
|
1817
|
+
if (this.d5i_1.i59_1 && get_isSaved(this.g5i_1)) {
|
|
1684
1818
|
this.a9_1 = 5;
|
|
1685
|
-
suspendResult = logResponseBody(this.
|
|
1819
|
+
suspendResult = logResponseBody(this.i5i_1, this.g5i_1, this);
|
|
1686
1820
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1687
1821
|
return suspendResult;
|
|
1688
1822
|
}
|
|
@@ -1695,7 +1829,7 @@
|
|
|
1695
1829
|
|
|
1696
1830
|
case 5:
|
|
1697
1831
|
this.a9_1 = 6;
|
|
1698
|
-
suspendResult = this.
|
|
1832
|
+
suspendResult = this.i5i_1.a58(this);
|
|
1699
1833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1700
1834
|
return suspendResult;
|
|
1701
1835
|
}
|
|
@@ -1708,22 +1842,22 @@
|
|
|
1708
1842
|
this.a9_1 = 8;
|
|
1709
1843
|
continue $sm;
|
|
1710
1844
|
case 8:
|
|
1711
|
-
throw this.
|
|
1845
|
+
throw this.m5i_1;
|
|
1712
1846
|
case 9:
|
|
1713
|
-
this.
|
|
1847
|
+
this.h5i_1 = this.l5i_1;
|
|
1714
1848
|
this.b9_1 = 14;
|
|
1715
|
-
this.
|
|
1716
|
-
if (this.
|
|
1849
|
+
this.i5i_1.w57(this.k5i_1.toString());
|
|
1850
|
+
if (this.j5i_1 || !this.d5i_1.i59_1) {
|
|
1717
1851
|
this.a9_1 = 12;
|
|
1718
|
-
suspendResult = this.
|
|
1852
|
+
suspendResult = this.i5i_1.a58(this);
|
|
1719
1853
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1720
1854
|
return suspendResult;
|
|
1721
1855
|
}
|
|
1722
1856
|
continue $sm;
|
|
1723
1857
|
} else {
|
|
1724
|
-
if (this.
|
|
1858
|
+
if (this.d5i_1.i59_1 && get_isSaved(this.g5i_1)) {
|
|
1725
1859
|
this.a9_1 = 10;
|
|
1726
|
-
suspendResult = logResponseBody(this.
|
|
1860
|
+
suspendResult = logResponseBody(this.i5i_1, this.g5i_1, this);
|
|
1727
1861
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1728
1862
|
return suspendResult;
|
|
1729
1863
|
}
|
|
@@ -1736,7 +1870,7 @@
|
|
|
1736
1870
|
|
|
1737
1871
|
case 10:
|
|
1738
1872
|
this.a9_1 = 11;
|
|
1739
|
-
suspendResult = this.
|
|
1873
|
+
suspendResult = this.i5i_1.a58(this);
|
|
1740
1874
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1741
1875
|
return suspendResult;
|
|
1742
1876
|
}
|
|
@@ -1764,34 +1898,34 @@
|
|
|
1764
1898
|
}
|
|
1765
1899
|
while (true);
|
|
1766
1900
|
};
|
|
1767
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1768
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1769
|
-
i.
|
|
1770
|
-
i.
|
|
1901
|
+
protoOf(Logging$lambda$slambda_3).o5i = function ($this$on, response, completion) {
|
|
1902
|
+
var i = new Logging$lambda$slambda_3(this.c5i_1, this.d5i_1, this.e5i_1, completion);
|
|
1903
|
+
i.f5i_1 = $this$on;
|
|
1904
|
+
i.g5i_1 = response;
|
|
1771
1905
|
return i;
|
|
1772
1906
|
};
|
|
1773
1907
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1774
1908
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1775
1909
|
var l = function ($this$on, response, $completion) {
|
|
1776
|
-
return i.
|
|
1910
|
+
return i.n5i($this$on, response, $completion);
|
|
1777
1911
|
};
|
|
1778
1912
|
l.$arity = 2;
|
|
1779
1913
|
return l;
|
|
1780
1914
|
}
|
|
1781
1915
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1916
|
+
this.x5i_1 = $okHttpFormat;
|
|
1917
|
+
this.y5i_1 = $level;
|
|
1784
1918
|
CoroutineImpl.call(this, resultContinuation);
|
|
1785
1919
|
}
|
|
1786
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1787
|
-
var tmp = this.
|
|
1920
|
+
protoOf(Logging$lambda$slambda_5).e5j = function ($this$on, call, $completion) {
|
|
1921
|
+
var tmp = this.f5j($this$on, call, $completion);
|
|
1788
1922
|
tmp.c9_1 = Unit_instance;
|
|
1789
1923
|
tmp.d9_1 = null;
|
|
1790
1924
|
return tmp.i9();
|
|
1791
1925
|
};
|
|
1792
1926
|
protoOf(Logging$lambda$slambda_5).v9 = function (p1, p2, $completion) {
|
|
1793
1927
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1794
|
-
return this.
|
|
1928
|
+
return this.e5j(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1795
1929
|
};
|
|
1796
1930
|
protoOf(Logging$lambda$slambda_5).i9 = function () {
|
|
1797
1931
|
var suspendResult = this.c9_1;
|
|
@@ -1801,22 +1935,22 @@
|
|
|
1801
1935
|
switch (tmp) {
|
|
1802
1936
|
case 0:
|
|
1803
1937
|
this.b9_1 = 6;
|
|
1804
|
-
if (this.
|
|
1938
|
+
if (this.x5i_1)
|
|
1805
1939
|
return Unit_instance;
|
|
1806
|
-
if (this.
|
|
1940
|
+
if (this.y5i_1.equals(LogLevel_NONE_getInstance()) || this.a5j_1.l3q().u2j(get_DisableLogging())) {
|
|
1807
1941
|
return Unit_instance;
|
|
1808
1942
|
}
|
|
1809
1943
|
|
|
1810
1944
|
this.b9_1 = 2;
|
|
1811
1945
|
this.a9_1 = 1;
|
|
1812
|
-
suspendResult = this.
|
|
1946
|
+
suspendResult = this.z5i_1.p5b(this);
|
|
1813
1947
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1814
1948
|
return suspendResult;
|
|
1815
1949
|
}
|
|
1816
1950
|
|
|
1817
1951
|
continue $sm;
|
|
1818
1952
|
case 1:
|
|
1819
|
-
this.
|
|
1953
|
+
this.b5j_1 = suspendResult;
|
|
1820
1954
|
this.b9_1 = 6;
|
|
1821
1955
|
this.a9_1 = 5;
|
|
1822
1956
|
continue $sm;
|
|
@@ -1824,12 +1958,12 @@
|
|
|
1824
1958
|
this.b9_1 = 6;
|
|
1825
1959
|
var tmp_0 = this.d9_1;
|
|
1826
1960
|
if (tmp_0 instanceof Error) {
|
|
1827
|
-
this.
|
|
1961
|
+
this.c5j_1 = this.d9_1;
|
|
1828
1962
|
var log = StringBuilder_init_$Create$();
|
|
1829
|
-
this.
|
|
1830
|
-
invoke$logResponseException(this.
|
|
1963
|
+
this.d5j_1 = this.a5j_1.l3q().s2j(get_ClientCallLogger());
|
|
1964
|
+
invoke$logResponseException(this.y5i_1, log, this.a5j_1.k3q(), this.c5j_1);
|
|
1831
1965
|
this.a9_1 = 3;
|
|
1832
|
-
suspendResult = this.
|
|
1966
|
+
suspendResult = this.d5j_1.x57(log.toString(), this);
|
|
1833
1967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1834
1968
|
return suspendResult;
|
|
1835
1969
|
}
|
|
@@ -1840,7 +1974,7 @@
|
|
|
1840
1974
|
|
|
1841
1975
|
case 3:
|
|
1842
1976
|
this.a9_1 = 4;
|
|
1843
|
-
suspendResult = this.
|
|
1977
|
+
suspendResult = this.d5j_1.a58(this);
|
|
1844
1978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1845
1979
|
return suspendResult;
|
|
1846
1980
|
}
|
|
@@ -1848,7 +1982,7 @@
|
|
|
1848
1982
|
continue $sm;
|
|
1849
1983
|
case 4:
|
|
1850
1984
|
var tmp_1 = this;
|
|
1851
|
-
throw this.
|
|
1985
|
+
throw this.c5j_1;
|
|
1852
1986
|
case 5:
|
|
1853
1987
|
this.b9_1 = 6;
|
|
1854
1988
|
return Unit_instance;
|
|
@@ -1866,36 +2000,36 @@
|
|
|
1866
2000
|
}
|
|
1867
2001
|
while (true);
|
|
1868
2002
|
};
|
|
1869
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1870
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1871
|
-
i.
|
|
1872
|
-
i.
|
|
2003
|
+
protoOf(Logging$lambda$slambda_5).f5j = function ($this$on, call, completion) {
|
|
2004
|
+
var i = new Logging$lambda$slambda_5(this.x5i_1, this.y5i_1, completion);
|
|
2005
|
+
i.z5i_1 = $this$on;
|
|
2006
|
+
i.a5j_1 = call;
|
|
1873
2007
|
return i;
|
|
1874
2008
|
};
|
|
1875
2009
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1876
2010
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1877
2011
|
var l = function ($this$on, call, $completion) {
|
|
1878
|
-
return i.
|
|
2012
|
+
return i.e5j($this$on, call, $completion);
|
|
1879
2013
|
};
|
|
1880
2014
|
l.$arity = 2;
|
|
1881
2015
|
return l;
|
|
1882
2016
|
}
|
|
1883
2017
|
function Logging$lambda$lambda$lambda(it) {
|
|
1884
2018
|
_init_properties_Logging_kt__66pui5();
|
|
1885
|
-
return !get_isSaved(it.
|
|
2019
|
+
return !get_isSaved(it.c3o());
|
|
1886
2020
|
}
|
|
1887
2021
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1888
|
-
this.
|
|
2022
|
+
this.o5j_1 = $level;
|
|
1889
2023
|
CoroutineImpl.call(this, resultContinuation);
|
|
1890
2024
|
}
|
|
1891
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1892
|
-
var tmp = this.
|
|
2025
|
+
protoOf(Logging$lambda$lambda$slambda).t3z = function (response, $completion) {
|
|
2026
|
+
var tmp = this.g3y(response, $completion);
|
|
1893
2027
|
tmp.c9_1 = Unit_instance;
|
|
1894
2028
|
tmp.d9_1 = null;
|
|
1895
2029
|
return tmp.i9();
|
|
1896
2030
|
};
|
|
1897
2031
|
protoOf(Logging$lambda$lambda$slambda).u9 = function (p1, $completion) {
|
|
1898
|
-
return this.
|
|
2032
|
+
return this.t3z(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1899
2033
|
};
|
|
1900
2034
|
protoOf(Logging$lambda$lambda$slambda).i9 = function () {
|
|
1901
2035
|
var suspendResult = this.c9_1;
|
|
@@ -1905,11 +2039,11 @@
|
|
|
1905
2039
|
switch (tmp) {
|
|
1906
2040
|
case 0:
|
|
1907
2041
|
this.b9_1 = 3;
|
|
1908
|
-
if (this.
|
|
2042
|
+
if (this.o5j_1.equals(LogLevel_NONE_getInstance()) || this.p5j_1.r3q().l3q().u2j(get_DisableLogging()))
|
|
1909
2043
|
return Unit_instance;
|
|
1910
|
-
this.
|
|
2044
|
+
this.q5j_1 = this.p5j_1.r3q().l3q().s2j(get_ClientCallLogger());
|
|
1911
2045
|
this.a9_1 = 1;
|
|
1912
|
-
suspendResult = logResponseBody(this.
|
|
2046
|
+
suspendResult = logResponseBody(this.q5j_1, this.p5j_1, this);
|
|
1913
2047
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1914
2048
|
return suspendResult;
|
|
1915
2049
|
}
|
|
@@ -1917,7 +2051,7 @@
|
|
|
1917
2051
|
continue $sm;
|
|
1918
2052
|
case 1:
|
|
1919
2053
|
this.a9_1 = 2;
|
|
1920
|
-
suspendResult = this.
|
|
2054
|
+
suspendResult = this.q5j_1.a58(this);
|
|
1921
2055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
2056
|
return suspendResult;
|
|
1923
2057
|
}
|
|
@@ -1939,155 +2073,36 @@
|
|
|
1939
2073
|
}
|
|
1940
2074
|
while (true);
|
|
1941
2075
|
};
|
|
1942
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1943
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
1944
|
-
i.
|
|
2076
|
+
protoOf(Logging$lambda$lambda$slambda).g3y = function (response, completion) {
|
|
2077
|
+
var i = new Logging$lambda$lambda$slambda(this.o5j_1, completion);
|
|
2078
|
+
i.p5j_1 = response;
|
|
1945
2079
|
return i;
|
|
1946
2080
|
};
|
|
1947
2081
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1948
2082
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1949
2083
|
var l = function (response, $completion) {
|
|
1950
|
-
return i.
|
|
2084
|
+
return i.t3z(response, $completion);
|
|
1951
2085
|
};
|
|
1952
2086
|
l.$arity = 1;
|
|
1953
2087
|
return l;
|
|
1954
2088
|
}
|
|
1955
2089
|
function Logging$lambda$lambda($level) {
|
|
1956
2090
|
return function ($this$prepare) {
|
|
1957
|
-
$this$prepare.
|
|
1958
|
-
$this$prepare.
|
|
2091
|
+
$this$prepare.j4l(Logging$lambda$lambda$lambda);
|
|
2092
|
+
$this$prepare.i4l(Logging$lambda$lambda$slambda_0($level, null));
|
|
1959
2093
|
return Unit_instance;
|
|
1960
2094
|
};
|
|
1961
2095
|
}
|
|
1962
|
-
function $invoke$
|
|
1963
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1964
|
-
this.h50_1 = $this_createClientPlugin;
|
|
1965
|
-
this.i50_1 = body;
|
|
1966
|
-
this.j50_1 = contentLength;
|
|
1967
|
-
this.k50_1 = contentType;
|
|
1968
|
-
this.l50_1 = headers;
|
|
1969
|
-
}
|
|
1970
|
-
protoOf($invoke$detectIfBinaryCOROUTINE$).i9 = function () {
|
|
1971
|
-
var suspendResult = this.c9_1;
|
|
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.l50_1.s2k(HttpHeaders_getInstance().s2s_1)) {
|
|
1979
|
-
return new Triple(true, this.j50_1, this.i50_1);
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
var tmp_0 = this;
|
|
1983
|
-
var tmp_1;
|
|
1984
|
-
if (!(this.k50_1 == null)) {
|
|
1985
|
-
var tmp0_elvis_lhs = charset(this.k50_1);
|
|
1986
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().y1u_1 : tmp0_elvis_lhs;
|
|
1987
|
-
} else {
|
|
1988
|
-
tmp_1 = Charsets_getInstance().y1u_1;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
tmp_0.q50_1 = tmp_1;
|
|
1992
|
-
this.o50_1 = false;
|
|
1993
|
-
this.p50_1 = new Int8Array(1024);
|
|
1994
|
-
this.a9_1 = 1;
|
|
1995
|
-
suspendResult = readAvailable(this.i50_1, this.p50_1, VOID, VOID, this);
|
|
1996
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1997
|
-
return suspendResult;
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
continue $sm;
|
|
2001
|
-
case 1:
|
|
2002
|
-
this.n50_1 = suspendResult;
|
|
2003
|
-
if (this.n50_1 < 1) {
|
|
2004
|
-
return new Triple(false, 0n, this.i50_1);
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
var this_0 = new Buffer();
|
|
2008
|
-
writeFully_0(this_0, this.p50_1, 0, this.n50_1);
|
|
2009
|
-
var buffer = this_0;
|
|
2010
|
-
var tmp_2;
|
|
2011
|
-
try {
|
|
2012
|
-
tmp_2 = decode(this.q50_1.b1v(), buffer);
|
|
2013
|
-
} catch ($p) {
|
|
2014
|
-
var tmp_3;
|
|
2015
|
-
if ($p instanceof MalformedInputException) {
|
|
2016
|
-
var _unused_var__etf5q3 = $p;
|
|
2017
|
-
this.o50_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.o50_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.o50_1 = true;
|
|
2043
|
-
break $l$loop;
|
|
2044
|
-
}
|
|
2045
|
-
}
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
|
-
if (!this.o50_1) {
|
|
2049
|
-
this.m50_1 = new ByteChannel();
|
|
2050
|
-
this.a9_1 = 3;
|
|
2051
|
-
suspendResult = async(this.h50_1.h3m_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.m50_1, this.p50_1, this.n50_1, this.i50_1, null)).hw(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.o50_1, this.j50_1, this.i50_1);
|
|
2063
|
-
case 3:
|
|
2064
|
-
var copied = suspendResult;
|
|
2065
|
-
var tmp_4 = this.o50_1;
|
|
2066
|
-
var other = this.n50_1;
|
|
2067
|
-
return new Triple(tmp_4, add(copied, fromInt(other)), this.m50_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) {
|
|
2096
|
+
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2083
2097
|
CoroutineImpl.call(this, resultContinuation);
|
|
2084
|
-
this.
|
|
2085
|
-
this.
|
|
2086
|
-
this.
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2098
|
+
this.l5d_1 = bodyFilter;
|
|
2099
|
+
this.m5d_1 = url;
|
|
2100
|
+
this.n5d_1 = content;
|
|
2101
|
+
this.o5d_1 = contentLength;
|
|
2102
|
+
this.p5d_1 = headers;
|
|
2103
|
+
this.q5d_1 = method;
|
|
2104
|
+
this.r5d_1 = logLines;
|
|
2105
|
+
this.s5d_1 = body;
|
|
2091
2106
|
}
|
|
2092
2107
|
protoOf($invoke$logRequestBodyCOROUTINE$).i9 = function () {
|
|
2093
2108
|
var suspendResult = this.c9_1;
|
|
@@ -2096,68 +2111,53 @@
|
|
|
2096
2111
|
var tmp = this.a9_1;
|
|
2097
2112
|
switch (tmp) {
|
|
2098
2113
|
case 0:
|
|
2099
|
-
this.b9_1 =
|
|
2114
|
+
this.b9_1 = 2;
|
|
2100
2115
|
this.a9_1 = 1;
|
|
2101
|
-
suspendResult =
|
|
2116
|
+
suspendResult = this.l5d_1.b58(this.m5d_1, this.o5d_1, this.n5d_1.h35(), this.p5d_1, this.s5d_1, this);
|
|
2102
2117
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2103
2118
|
return suspendResult;
|
|
2104
2119
|
}
|
|
2105
2120
|
|
|
2106
2121
|
continue $sm;
|
|
2107
2122
|
case 1:
|
|
2108
|
-
var
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
var newBody = _destruct__k2r9zo.ml();
|
|
2112
|
-
if (!isBinary) {
|
|
2113
|
-
var contentType = this.a51_1.f32();
|
|
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().y1u_1 : tmp0_elvis_lhs;
|
|
2119
|
-
} else {
|
|
2120
|
-
tmp_1 = Charsets_getInstance().y1u_1;
|
|
2121
|
-
}
|
|
2122
|
-
tmp_0.i51_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;
|
|
2123
|
+
var filteredBody = suspendResult;
|
|
2124
|
+
if (filteredBody instanceof Empty) {
|
|
2125
|
+
this.r5d_1.j1('--> END ' + this.q5d_1.u2z_1 + ' (0-byte body)');
|
|
2129
2126
|
} else {
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2127
|
+
if (filteredBody instanceof Skip) {
|
|
2128
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
2129
|
+
this_0.q('--> END ' + this.q5d_1.u2z_1 + ' (');
|
|
2130
|
+
var tmp0_safe_receiver = filteredBody.f58_1;
|
|
2131
|
+
if (tmp0_safe_receiver == null)
|
|
2132
|
+
null;
|
|
2133
|
+
else {
|
|
2134
|
+
this_0.q(tmp0_safe_receiver + ' ');
|
|
2135
|
+
}
|
|
2136
|
+
var tmp1_safe_receiver = filteredBody.g58_1;
|
|
2137
|
+
if (tmp1_safe_receiver == null)
|
|
2138
|
+
null;
|
|
2139
|
+
else {
|
|
2140
|
+
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2141
|
+
}
|
|
2142
|
+
this_0.q('body omitted)');
|
|
2143
|
+
this.r5d_1.j1(this_0.toString());
|
|
2138
2144
|
} else {
|
|
2139
|
-
|
|
2145
|
+
if (isInterface(filteredBody, Content)) {
|
|
2146
|
+
this.r5d_1.j1(filteredBody.h58());
|
|
2147
|
+
this.r5d_1.j1('--> END ' + this.q5d_1.u2z_1 + ' (' + toString_0(filteredBody.e58()) + '-byte body)');
|
|
2148
|
+
} else {
|
|
2149
|
+
noWhenBranchMatchedException();
|
|
2150
|
+
}
|
|
2140
2151
|
}
|
|
2141
|
-
tmp_2.g51_1 = tmp_3;
|
|
2142
|
-
this.a9_1 = 3;
|
|
2143
|
-
continue $sm;
|
|
2144
2152
|
}
|
|
2145
2153
|
|
|
2146
|
-
case 2:
|
|
2147
|
-
var ARGUMENT = suspendResult;
|
|
2148
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.i51_1);
|
|
2149
|
-
this.e51_1.j1(ARGUMENT_0);
|
|
2150
|
-
this.g51_1 = this.e51_1.j1('--> END ' + this.d51_1.s2w_1 + ' (' + toString_0(this.h51_1) + '-byte body)');
|
|
2151
|
-
this.a9_1 = 3;
|
|
2152
|
-
continue $sm;
|
|
2153
|
-
case 3:
|
|
2154
2154
|
return Unit_instance;
|
|
2155
|
-
case
|
|
2155
|
+
case 2:
|
|
2156
2156
|
throw this.d9_1;
|
|
2157
2157
|
}
|
|
2158
2158
|
} catch ($p) {
|
|
2159
2159
|
var e = $p;
|
|
2160
|
-
if (this.b9_1 ===
|
|
2160
|
+
if (this.b9_1 === 2) {
|
|
2161
2161
|
throw e;
|
|
2162
2162
|
} else {
|
|
2163
2163
|
this.a9_1 = this.b9_1;
|
|
@@ -2166,14 +2166,16 @@
|
|
|
2166
2166
|
}
|
|
2167
2167
|
while (true);
|
|
2168
2168
|
};
|
|
2169
|
-
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2169
|
+
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2170
2170
|
CoroutineImpl.call(this, resultContinuation);
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2171
|
+
this.b5e_1 = $this_createClientPlugin;
|
|
2172
|
+
this.c5e_1 = bodyFilter;
|
|
2173
|
+
this.d5e_1 = url;
|
|
2174
|
+
this.e5e_1 = content;
|
|
2175
|
+
this.f5e_1 = method;
|
|
2176
|
+
this.g5e_1 = headers;
|
|
2177
|
+
this.h5e_1 = logLines;
|
|
2178
|
+
this.i5e_1 = process;
|
|
2177
2179
|
}
|
|
2178
2180
|
protoOf($invoke$logOutgoingContentCOROUTINE$).i9 = function () {
|
|
2179
2181
|
var suspendResult = this.c9_1;
|
|
@@ -2182,65 +2184,108 @@
|
|
|
2182
2184
|
var tmp = this.a9_1;
|
|
2183
2185
|
switch (tmp) {
|
|
2184
2186
|
case 0:
|
|
2185
|
-
this.b9_1 =
|
|
2186
|
-
var tmp0_subject = this.
|
|
2187
|
-
if (tmp0_subject instanceof
|
|
2188
|
-
|
|
2189
|
-
this.
|
|
2190
|
-
suspendResult = invoke$logRequestBody(this.r51_1, this.s51_1, fromInt(bytes.length), this.u51_1, this.t51_1, this.v51_1, ByteReadChannel(bytes), this);
|
|
2187
|
+
this.b9_1 = 7;
|
|
2188
|
+
var tmp0_subject = this.e5e_1;
|
|
2189
|
+
if (tmp0_subject instanceof ObservableContent) {
|
|
2190
|
+
this.a9_1 = 5;
|
|
2191
|
+
suspendResult = invoke$logOutgoingContent(this.b5e_1, this.c5e_1, this.d5e_1, this.e5e_1.c3t_1, this.f5e_1, this.g5e_1, this.h5e_1, this.i5e_1, this);
|
|
2191
2192
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2192
2193
|
return suspendResult;
|
|
2193
2194
|
}
|
|
2194
2195
|
continue $sm;
|
|
2195
2196
|
} else {
|
|
2196
|
-
if (tmp0_subject instanceof
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2197
|
+
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2198
|
+
var tmp_0 = this;
|
|
2199
|
+
var _iterator__ex2g4s = this.e5e_1.s5j_1.t();
|
|
2200
|
+
while (_iterator__ex2g4s.u()) {
|
|
2201
|
+
var part = _iterator__ex2g4s.v();
|
|
2202
|
+
this.h5e_1.j1('--' + this.e5e_1.t5j_1);
|
|
2203
|
+
var _iterator__ex2g4s_0 = part.u5j_1.u2n().t();
|
|
2204
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2205
|
+
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2206
|
+
var key = _destruct__k2r9zo.r1();
|
|
2207
|
+
var values = _destruct__k2r9zo.s1();
|
|
2208
|
+
this.h5e_1.j1(key + ': ' + joinToString(values, '; '));
|
|
2209
|
+
}
|
|
2210
|
+
if (part instanceof FormItem) {
|
|
2211
|
+
this.h5e_1.j1('Content-Length: ' + part.w5j_1.length);
|
|
2212
|
+
this.h5e_1.j1('');
|
|
2213
|
+
this.h5e_1.j1(part.w5j_1);
|
|
2214
|
+
} else {
|
|
2215
|
+
this.h5e_1.j1('');
|
|
2216
|
+
var contentLength = part.u5j_1.l2m('Content-Length');
|
|
2217
|
+
if (!(contentLength == null)) {
|
|
2218
|
+
this.h5e_1.j1('binary ' + contentLength + '-byte body omitted');
|
|
2219
|
+
} else {
|
|
2220
|
+
this.h5e_1.j1('binary body omitted');
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2201
2223
|
}
|
|
2224
|
+
this.h5e_1.j1('--' + this.e5e_1.t5j_1 + '--');
|
|
2225
|
+
this.h5e_1.j1('--> END ' + this.f5e_1.u2z_1);
|
|
2226
|
+
tmp_0.j5e_1 = null;
|
|
2227
|
+
this.a9_1 = 6;
|
|
2202
2228
|
continue $sm;
|
|
2203
2229
|
} else {
|
|
2204
|
-
if (tmp0_subject instanceof
|
|
2205
|
-
var
|
|
2206
|
-
this.
|
|
2207
|
-
|
|
2208
|
-
|
|
2230
|
+
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2231
|
+
var bytes = this.e5e_1.k35();
|
|
2232
|
+
this.a9_1 = 4;
|
|
2233
|
+
suspendResult = invoke$logRequestBody(this.c5e_1, this.d5e_1, this.e5e_1, fromInt(bytes.length), this.g5e_1, this.f5e_1, this.h5e_1, ByteReadChannel(bytes), this);
|
|
2234
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2235
|
+
return suspendResult;
|
|
2236
|
+
}
|
|
2209
2237
|
continue $sm;
|
|
2210
2238
|
} else {
|
|
2211
|
-
if (tmp0_subject instanceof
|
|
2212
|
-
|
|
2213
|
-
this.
|
|
2214
|
-
|
|
2215
|
-
|
|
2239
|
+
if (tmp0_subject instanceof ContentWrapper) {
|
|
2240
|
+
this.a9_1 = 3;
|
|
2241
|
+
suspendResult = invoke$logOutgoingContent(this.b5e_1, this.c5e_1, this.d5e_1, this.e5e_1.t35(), this.f5e_1, this.g5e_1, this.h5e_1, this.i5e_1, this);
|
|
2242
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2243
|
+
return suspendResult;
|
|
2244
|
+
}
|
|
2216
2245
|
continue $sm;
|
|
2217
2246
|
} else {
|
|
2218
|
-
if (tmp0_subject instanceof
|
|
2219
|
-
var
|
|
2220
|
-
this.
|
|
2221
|
-
|
|
2222
|
-
this.a9_1 =
|
|
2223
|
-
suspendResult = invoke$logRequestBody(this.r51_1, this.s51_1, this.s51_1.h32(), this.u51_1, this.t51_1, this.v51_1, newChannel, this);
|
|
2224
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2225
|
-
return suspendResult;
|
|
2226
|
-
}
|
|
2247
|
+
if (tmp0_subject instanceof NoContent) {
|
|
2248
|
+
var tmp_1 = this;
|
|
2249
|
+
this.h5e_1.j1('--> END ' + this.f5e_1.u2z_1);
|
|
2250
|
+
tmp_1.j5e_1 = null;
|
|
2251
|
+
this.a9_1 = 6;
|
|
2227
2252
|
continue $sm;
|
|
2228
2253
|
} 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.r51_1, this.s51_1, this.s51_1.h32(), this.u51_1, this.t51_1, this.v51_1, newChannel_0, this);
|
|
2237
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2238
|
-
return suspendResult;
|
|
2239
|
-
}
|
|
2254
|
+
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2255
|
+
var tmp_2 = this;
|
|
2256
|
+
this.h5e_1.j1('--> END ' + this.f5e_1.u2z_1);
|
|
2257
|
+
tmp_2.j5e_1 = null;
|
|
2258
|
+
this.a9_1 = 6;
|
|
2240
2259
|
continue $sm;
|
|
2241
2260
|
} else {
|
|
2242
|
-
|
|
2243
|
-
|
|
2261
|
+
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2262
|
+
var _destruct__k2r9zo_0 = split(this.e5e_1.n35(), this.b5e_1.f3x_1);
|
|
2263
|
+
this.k5e_1 = _destruct__k2r9zo_0.bg();
|
|
2264
|
+
var newChannel = _destruct__k2r9zo_0.cg();
|
|
2265
|
+
this.a9_1 = 2;
|
|
2266
|
+
suspendResult = invoke$logRequestBody(this.c5e_1, this.d5e_1, this.e5e_1, this.e5e_1.j35(), this.g5e_1, this.f5e_1, this.h5e_1, newChannel, this);
|
|
2267
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2268
|
+
return suspendResult;
|
|
2269
|
+
}
|
|
2270
|
+
continue $sm;
|
|
2271
|
+
} else {
|
|
2272
|
+
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2273
|
+
var channel = new ByteChannel();
|
|
2274
|
+
launch(this.b5e_1.f3x_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.e5e_1, channel, null));
|
|
2275
|
+
var _destruct__k2r9zo_1 = split(channel, this.b5e_1.f3x_1);
|
|
2276
|
+
this.l5e_1 = _destruct__k2r9zo_1.bg();
|
|
2277
|
+
var newChannel_0 = _destruct__k2r9zo_1.cg();
|
|
2278
|
+
this.a9_1 = 1;
|
|
2279
|
+
suspendResult = invoke$logRequestBody(this.c5e_1, this.d5e_1, this.e5e_1, this.e5e_1.j35(), this.g5e_1, this.f5e_1, this.h5e_1, newChannel_0, this);
|
|
2280
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2281
|
+
return suspendResult;
|
|
2282
|
+
}
|
|
2283
|
+
continue $sm;
|
|
2284
|
+
} else {
|
|
2285
|
+
var tmp_3 = this;
|
|
2286
|
+
noWhenBranchMatchedException();
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2244
2289
|
}
|
|
2245
2290
|
}
|
|
2246
2291
|
}
|
|
@@ -2250,29 +2295,33 @@
|
|
|
2250
2295
|
|
|
2251
2296
|
break;
|
|
2252
2297
|
case 1:
|
|
2253
|
-
this.
|
|
2254
|
-
this.a9_1 =
|
|
2298
|
+
this.j5e_1 = new LoggedContent(this.e5e_1, this.l5e_1);
|
|
2299
|
+
this.a9_1 = 6;
|
|
2255
2300
|
continue $sm;
|
|
2256
2301
|
case 2:
|
|
2257
|
-
this.
|
|
2258
|
-
this.a9_1 =
|
|
2302
|
+
this.j5e_1 = new LoggedContent(this.e5e_1, this.k5e_1);
|
|
2303
|
+
this.a9_1 = 6;
|
|
2259
2304
|
continue $sm;
|
|
2260
2305
|
case 3:
|
|
2261
|
-
this.
|
|
2262
|
-
this.a9_1 =
|
|
2306
|
+
this.j5e_1 = suspendResult;
|
|
2307
|
+
this.a9_1 = 6;
|
|
2263
2308
|
continue $sm;
|
|
2264
2309
|
case 4:
|
|
2265
|
-
this.
|
|
2266
|
-
this.a9_1 =
|
|
2310
|
+
this.j5e_1 = null;
|
|
2311
|
+
this.a9_1 = 6;
|
|
2267
2312
|
continue $sm;
|
|
2268
2313
|
case 5:
|
|
2269
|
-
|
|
2314
|
+
this.j5e_1 = suspendResult;
|
|
2315
|
+
this.a9_1 = 6;
|
|
2316
|
+
continue $sm;
|
|
2270
2317
|
case 6:
|
|
2318
|
+
return this.j5e_1;
|
|
2319
|
+
case 7:
|
|
2271
2320
|
throw this.d9_1;
|
|
2272
2321
|
}
|
|
2273
2322
|
} catch ($p) {
|
|
2274
2323
|
var e = $p;
|
|
2275
|
-
if (this.b9_1 ===
|
|
2324
|
+
if (this.b9_1 === 7) {
|
|
2276
2325
|
throw e;
|
|
2277
2326
|
} else {
|
|
2278
2327
|
this.a9_1 = this.b9_1;
|
|
@@ -2281,13 +2330,14 @@
|
|
|
2281
2330
|
}
|
|
2282
2331
|
while (true);
|
|
2283
2332
|
};
|
|
2284
|
-
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2333
|
+
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2285
2334
|
CoroutineImpl.call(this, resultContinuation);
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2289
|
-
this.
|
|
2290
|
-
this.
|
|
2335
|
+
this.u5e_1 = sanitizedHeaders;
|
|
2336
|
+
this.v5e_1 = level;
|
|
2337
|
+
this.w5e_1 = $this_createClientPlugin;
|
|
2338
|
+
this.x5e_1 = bodyFilter;
|
|
2339
|
+
this.y5e_1 = request;
|
|
2340
|
+
this.z5e_1 = logLines;
|
|
2291
2341
|
}
|
|
2292
2342
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2293
2343
|
var suspendResult = this.c9_1;
|
|
@@ -2297,22 +2347,22 @@
|
|
|
2297
2347
|
switch (tmp) {
|
|
2298
2348
|
case 0:
|
|
2299
2349
|
this.b9_1 = 4;
|
|
2300
|
-
if (invoke$isNone(this.
|
|
2350
|
+
if (invoke$isNone(this.v5e_1))
|
|
2301
2351
|
return null;
|
|
2302
|
-
var uri = pathQuery(takeFrom(new URLBuilder(), this.
|
|
2303
|
-
var body = this.
|
|
2352
|
+
var uri = pathQuery(takeFrom(new URLBuilder(), this.y5e_1.c3p_1).e2v());
|
|
2353
|
+
var body = this.y5e_1.f3p_1;
|
|
2304
2354
|
var this_0 = new HeadersBuilder();
|
|
2305
2355
|
var tmp_0;
|
|
2306
2356
|
var tmp_1;
|
|
2307
2357
|
var tmp_2;
|
|
2308
2358
|
if (body instanceof OutgoingContent) {
|
|
2309
|
-
tmp_2 = !this.
|
|
2359
|
+
tmp_2 = !this.y5e_1.d3p_1.equals(Companion_getInstance().k2z_1);
|
|
2310
2360
|
} else {
|
|
2311
2361
|
tmp_2 = false;
|
|
2312
2362
|
}
|
|
2313
2363
|
|
|
2314
2364
|
if (tmp_2) {
|
|
2315
|
-
tmp_1 = !this.
|
|
2365
|
+
tmp_1 = !this.y5e_1.d3p_1.equals(Companion_getInstance().p2z_1);
|
|
2316
2366
|
} else {
|
|
2317
2367
|
tmp_1 = false;
|
|
2318
2368
|
}
|
|
@@ -2324,30 +2374,30 @@
|
|
|
2324
2374
|
}
|
|
2325
2375
|
|
|
2326
2376
|
if (tmp_0) {
|
|
2327
|
-
var tmp0_safe_receiver = body.
|
|
2377
|
+
var tmp0_safe_receiver = body.h35();
|
|
2328
2378
|
if (tmp0_safe_receiver == null)
|
|
2329
2379
|
null;
|
|
2330
2380
|
else {
|
|
2331
|
-
appendIfNameAbsent(this_0,
|
|
2381
|
+
appendIfNameAbsent(this_0, 'Content-Type', tmp0_safe_receiver.toString());
|
|
2332
2382
|
}
|
|
2333
|
-
var tmp1_safe_receiver = body.
|
|
2383
|
+
var tmp1_safe_receiver = body.j35();
|
|
2334
2384
|
if (tmp1_safe_receiver == null)
|
|
2335
2385
|
null;
|
|
2336
2386
|
else {
|
|
2337
|
-
appendIfNameAbsent(this_0,
|
|
2387
|
+
appendIfNameAbsent(this_0, 'Content-Length', tmp1_safe_receiver.toString());
|
|
2338
2388
|
}
|
|
2339
2389
|
}
|
|
2340
2390
|
|
|
2341
|
-
appendAll(this_0, this.
|
|
2342
|
-
var headers = this_0.
|
|
2343
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2391
|
+
appendAll(this_0, this.y5e_1.e3p_1);
|
|
2392
|
+
var headers = this_0.e2v();
|
|
2393
|
+
var tmp0_safe_receiver_0 = headers.l2m('Content-Length');
|
|
2344
2394
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2345
2395
|
var tmp_3;
|
|
2346
|
-
if (this.
|
|
2347
|
-
tmp_3 = '--> ' + this.
|
|
2396
|
+
if (this.y5e_1.d3p_1.equals(Companion_getInstance().k2z_1) || this.y5e_1.d3p_1.equals(Companion_getInstance().p2z_1) || ((invoke$isHeaders(this.v5e_1) || invoke$isBody(this.v5e_1)) && !(contentLength == null)) || (invoke$isHeaders(this.v5e_1) && contentLength == null) || headers.s2n('Content-Encoding')) {
|
|
2397
|
+
tmp_3 = '--> ' + this.y5e_1.d3p_1.u2z_1 + ' ' + uri;
|
|
2348
2398
|
} else {
|
|
2349
|
-
if (invoke$isInfo(this.
|
|
2350
|
-
tmp_3 = '--> ' + this.
|
|
2399
|
+
if (invoke$isInfo(this.v5e_1) && !(contentLength == null)) {
|
|
2400
|
+
tmp_3 = '--> ' + this.y5e_1.d3p_1.u2z_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2351
2401
|
} else {
|
|
2352
2402
|
var tmp_4;
|
|
2353
2403
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2356,32 +2406,32 @@
|
|
|
2356
2406
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2357
2407
|
}
|
|
2358
2408
|
if (tmp_4) {
|
|
2359
|
-
tmp_3 = '--> ' + this.
|
|
2409
|
+
tmp_3 = '--> ' + this.y5e_1.d3p_1.u2z_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2360
2410
|
} else {
|
|
2361
|
-
var size = computeRequestBodySize(this.
|
|
2362
|
-
tmp_3 = '--> ' + this.
|
|
2411
|
+
var size = computeRequestBodySize(this.y5e_1.f3p_1);
|
|
2412
|
+
tmp_3 = '--> ' + this.y5e_1.d3p_1.u2z_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2363
2413
|
}
|
|
2364
2414
|
}
|
|
2365
2415
|
}
|
|
2366
2416
|
|
|
2367
2417
|
var startLine = tmp_3;
|
|
2368
|
-
this.
|
|
2369
|
-
if (!invoke$isHeaders(this.
|
|
2418
|
+
this.z5e_1.j1(startLine);
|
|
2419
|
+
if (!invoke$isHeaders(this.v5e_1) && !invoke$isBody(this.v5e_1)) {
|
|
2370
2420
|
return null;
|
|
2371
2421
|
}
|
|
2372
2422
|
|
|
2373
|
-
var _iterator__ex2g4s = headers.
|
|
2423
|
+
var _iterator__ex2g4s = headers.u2n().t();
|
|
2374
2424
|
while (_iterator__ex2g4s.u()) {
|
|
2375
2425
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2376
|
-
var name = _destruct__k2r9zo.
|
|
2377
|
-
var values = _destruct__k2r9zo.
|
|
2378
|
-
var tmp0 = this.
|
|
2426
|
+
var name = _destruct__k2r9zo.r1();
|
|
2427
|
+
var values = _destruct__k2r9zo.s1();
|
|
2428
|
+
var tmp0 = this.u5e_1;
|
|
2379
2429
|
var tmp$ret$0 = Unit_instance;
|
|
2380
2430
|
l$ret$1: do {
|
|
2381
2431
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2382
2432
|
while (_iterator__ex2g4s_0.u()) {
|
|
2383
2433
|
var element = _iterator__ex2g4s_0.v();
|
|
2384
|
-
if (element.
|
|
2434
|
+
if (element.c5g_1(name)) {
|
|
2385
2435
|
tmp$ret$0 = element;
|
|
2386
2436
|
break l$ret$1;
|
|
2387
2437
|
}
|
|
@@ -2390,34 +2440,35 @@
|
|
|
2390
2440
|
}
|
|
2391
2441
|
while (false);
|
|
2392
2442
|
if (tmp$ret$0 == null) {
|
|
2393
|
-
this.
|
|
2443
|
+
this.z5e_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2394
2444
|
} else {
|
|
2395
|
-
this.
|
|
2445
|
+
this.z5e_1.j1(name + ': \u2588\u2588');
|
|
2396
2446
|
}
|
|
2397
2447
|
}
|
|
2398
2448
|
|
|
2399
|
-
if (!invoke$isBody(this.
|
|
2400
|
-
this.
|
|
2449
|
+
if (!invoke$isBody(this.v5e_1) || this.y5e_1.d3p_1.equals(Companion_getInstance().k2z_1) || this.y5e_1.d3p_1.equals(Companion_getInstance().p2z_1)) {
|
|
2450
|
+
this.z5e_1.j1('--> END ' + this.y5e_1.d3p_1.u2z_1);
|
|
2401
2451
|
return null;
|
|
2402
2452
|
}
|
|
2403
2453
|
|
|
2404
|
-
this.
|
|
2454
|
+
this.z5e_1.j1('');
|
|
2405
2455
|
if (!(body instanceof OutgoingContent)) {
|
|
2406
|
-
this.
|
|
2456
|
+
this.z5e_1.j1('--> END ' + this.y5e_1.d3p_1.u2z_1);
|
|
2407
2457
|
return null;
|
|
2408
2458
|
}
|
|
2409
2459
|
|
|
2410
|
-
if (this.
|
|
2460
|
+
if (this.y5e_1.e3p_1.l2m('Content-Encoding') === 'gzip') {
|
|
2411
2461
|
this.a9_1 = 2;
|
|
2412
|
-
var tmp_5 = this.
|
|
2413
|
-
|
|
2462
|
+
var tmp_5 = this.y5e_1.c3p_1.e2v();
|
|
2463
|
+
var tmp_6 = this.y5e_1.d3p_1;
|
|
2464
|
+
suspendResult = invoke$logOutgoingContent(this.w5e_1, this.x5e_1, tmp_5, body, tmp_6, headers, this.z5e_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2414
2465
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2415
2466
|
return suspendResult;
|
|
2416
2467
|
}
|
|
2417
2468
|
continue $sm;
|
|
2418
2469
|
} else {
|
|
2419
2470
|
this.a9_1 = 1;
|
|
2420
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2471
|
+
suspendResult = invoke$logOutgoingContent(this.w5e_1, this.x5e_1, this.y5e_1.c3p_1.e2v(), body, this.y5e_1.d3p_1, headers, this.z5e_1, VOID, this);
|
|
2421
2472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2422
2473
|
return suspendResult;
|
|
2423
2474
|
}
|
|
@@ -2425,15 +2476,15 @@
|
|
|
2425
2476
|
}
|
|
2426
2477
|
|
|
2427
2478
|
case 1:
|
|
2428
|
-
this.
|
|
2479
|
+
this.a5f_1 = suspendResult;
|
|
2429
2480
|
this.a9_1 = 3;
|
|
2430
2481
|
continue $sm;
|
|
2431
2482
|
case 2:
|
|
2432
|
-
this.
|
|
2483
|
+
this.a5f_1 = suspendResult;
|
|
2433
2484
|
this.a9_1 = 3;
|
|
2434
2485
|
continue $sm;
|
|
2435
2486
|
case 3:
|
|
2436
|
-
var newContent = this.
|
|
2487
|
+
var newContent = this.a5f_1;
|
|
2437
2488
|
return newContent;
|
|
2438
2489
|
case 4:
|
|
2439
2490
|
throw this.d9_1;
|
|
@@ -2449,12 +2500,12 @@
|
|
|
2449
2500
|
}
|
|
2450
2501
|
while (true);
|
|
2451
2502
|
};
|
|
2452
|
-
function $invoke$logResponseBodyCOROUTINE$(
|
|
2503
|
+
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2453
2504
|
CoroutineImpl.call(this, resultContinuation);
|
|
2454
|
-
this.
|
|
2455
|
-
this.
|
|
2456
|
-
this.
|
|
2457
|
-
this.
|
|
2505
|
+
this.j5f_1 = bodyFilter;
|
|
2506
|
+
this.k5f_1 = response;
|
|
2507
|
+
this.l5f_1 = body;
|
|
2508
|
+
this.m5f_1 = logLines;
|
|
2458
2509
|
}
|
|
2459
2510
|
protoOf($invoke$logResponseBodyCOROUTINE$).i9 = function () {
|
|
2460
2511
|
var suspendResult = this.c9_1;
|
|
@@ -2463,75 +2514,57 @@
|
|
|
2463
2514
|
var tmp = this.a9_1;
|
|
2464
2515
|
switch (tmp) {
|
|
2465
2516
|
case 0:
|
|
2466
|
-
this.b9_1 =
|
|
2467
|
-
this.
|
|
2517
|
+
this.b9_1 = 2;
|
|
2518
|
+
this.m5f_1.j1('');
|
|
2468
2519
|
this.a9_1 = 1;
|
|
2469
|
-
suspendResult =
|
|
2520
|
+
suspendResult = this.j5f_1.d58(this.k5f_1.r3q().k3q().t3q(), contentLength(this.k5f_1), contentType(this.k5f_1), this.k5f_1.j2z(), this.l5f_1, this);
|
|
2470
2521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2471
2522
|
return suspendResult;
|
|
2472
2523
|
}
|
|
2473
2524
|
|
|
2474
2525
|
continue $sm;
|
|
2475
2526
|
case 1:
|
|
2476
|
-
var
|
|
2477
|
-
var
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
this.c53_1 = subtract(this.x52_1.f3g().d2m_1, this.x52_1.e3g().d2m_1);
|
|
2481
|
-
if (this.b53_1 === 0n) {
|
|
2482
|
-
this.z52_1.j1('<-- END HTTP (' + this.c53_1.toString() + 'ms, ' + this.b53_1.toString() + '-byte body)');
|
|
2483
|
-
return Unit_instance;
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
|
-
if (!isBinary) {
|
|
2487
|
-
var contentType_0 = contentType(this.x52_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().y1u_1 : tmp0_elvis_lhs;
|
|
2493
|
-
} else {
|
|
2494
|
-
tmp_1 = Charsets_getInstance().y1u_1;
|
|
2495
|
-
}
|
|
2496
|
-
tmp_0.d53_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;
|
|
2527
|
+
var filteredBody = suspendResult;
|
|
2528
|
+
var duration = subtract(this.k5f_1.d3r().d2p_1, this.k5f_1.c3r().d2p_1);
|
|
2529
|
+
if (filteredBody instanceof Empty) {
|
|
2530
|
+
this.m5f_1.j1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2503
2531
|
} else {
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2532
|
+
if (filteredBody instanceof Skip) {
|
|
2533
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
2534
|
+
this_0.q('<-- END HTTP (');
|
|
2535
|
+
this_0.nc(duration);
|
|
2536
|
+
this_0.q('ms, ');
|
|
2537
|
+
var tmp0_safe_receiver = filteredBody.f58_1;
|
|
2538
|
+
if (tmp0_safe_receiver == null)
|
|
2539
|
+
null;
|
|
2540
|
+
else {
|
|
2541
|
+
this_0.q(tmp0_safe_receiver + ' ');
|
|
2542
|
+
}
|
|
2543
|
+
var tmp1_safe_receiver = filteredBody.g58_1;
|
|
2544
|
+
if (tmp1_safe_receiver == null)
|
|
2545
|
+
null;
|
|
2546
|
+
else {
|
|
2547
|
+
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2548
|
+
}
|
|
2549
|
+
this_0.q('body omitted)');
|
|
2550
|
+
this.m5f_1.j1(this_0.toString());
|
|
2512
2551
|
} else {
|
|
2513
|
-
|
|
2552
|
+
if (isInterface(filteredBody, Content)) {
|
|
2553
|
+
this.m5f_1.j1(filteredBody.h58());
|
|
2554
|
+
this.m5f_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.e58()) + '-byte body)');
|
|
2555
|
+
} else {
|
|
2556
|
+
noWhenBranchMatchedException();
|
|
2557
|
+
}
|
|
2514
2558
|
}
|
|
2515
|
-
tmp_2.a53_1 = tmp_3;
|
|
2516
|
-
this.a9_1 = 3;
|
|
2517
|
-
continue $sm;
|
|
2518
2559
|
}
|
|
2519
2560
|
|
|
2520
|
-
case 2:
|
|
2521
|
-
var ARGUMENT = suspendResult;
|
|
2522
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.d53_1);
|
|
2523
|
-
this.z52_1.j1(ARGUMENT_0);
|
|
2524
|
-
this.a53_1 = this.z52_1.j1('<-- END HTTP (' + this.c53_1.toString() + 'ms, ' + toString_0(this.b53_1) + '-byte body)');
|
|
2525
|
-
this.a9_1 = 3;
|
|
2526
|
-
continue $sm;
|
|
2527
|
-
case 3:
|
|
2528
2561
|
return Unit_instance;
|
|
2529
|
-
case
|
|
2562
|
+
case 2:
|
|
2530
2563
|
throw this.d9_1;
|
|
2531
2564
|
}
|
|
2532
2565
|
} catch ($p) {
|
|
2533
2566
|
var e = $p;
|
|
2534
|
-
if (this.b9_1 ===
|
|
2567
|
+
if (this.b9_1 === 2) {
|
|
2535
2568
|
throw e;
|
|
2536
2569
|
} else {
|
|
2537
2570
|
this.a9_1 = this.b9_1;
|
|
@@ -2540,13 +2573,13 @@
|
|
|
2540
2573
|
}
|
|
2541
2574
|
while (true);
|
|
2542
2575
|
};
|
|
2543
|
-
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level,
|
|
2576
|
+
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2544
2577
|
CoroutineImpl.call(this, resultContinuation);
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
this.
|
|
2549
|
-
this.
|
|
2578
|
+
this.v5f_1 = sanitizedHeaders;
|
|
2579
|
+
this.w5f_1 = level;
|
|
2580
|
+
this.x5f_1 = bodyFilter;
|
|
2581
|
+
this.y5f_1 = response;
|
|
2582
|
+
this.z5f_1 = logLines;
|
|
2550
2583
|
}
|
|
2551
2584
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2552
2585
|
var suspendResult = this.c9_1;
|
|
@@ -2556,30 +2589,30 @@
|
|
|
2556
2589
|
switch (tmp) {
|
|
2557
2590
|
case 0:
|
|
2558
2591
|
this.b9_1 = 4;
|
|
2559
|
-
if (invoke$isNone(this.
|
|
2560
|
-
return this.
|
|
2561
|
-
var tmp0_safe_receiver = this.
|
|
2592
|
+
if (invoke$isNone(this.w5f_1))
|
|
2593
|
+
return this.y5f_1;
|
|
2594
|
+
var tmp0_safe_receiver = this.y5f_1.j2z().l2m('Content-Length');
|
|
2562
2595
|
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.
|
|
2596
|
+
var request = get_request(this.y5f_1);
|
|
2597
|
+
var duration = subtract(this.y5f_1.d3r().d2p_1, this.y5f_1.c3r().d2p_1);
|
|
2598
|
+
var startLine = this.y5f_1.j2z().l2m('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.w5f_1) || invoke$isHeaders(this.w5f_1)) ? '<-- ' + this.y5f_1.i35().toString() + ' ' + pathQuery(request.t3q()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.w5f_1) && !(contentLength == null) ? '<-- ' + this.y5f_1.i35().toString() + ' ' + pathQuery(request.t3q()) + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.w5f_1) || (invoke$isInfo(this.w5f_1) && contentLength == null) || (invoke$isHeaders(this.w5f_1) && !(contentLength == null)) || this.y5f_1.j2z().l2m('Content-Encoding') === 'gzip' ? '<-- ' + this.y5f_1.i35().toString() + ' ' + pathQuery(request.t3q()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.y5f_1.i35().toString() + ' ' + pathQuery(request.t3q()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2599
|
+
this.z5f_1.j1(startLine);
|
|
2600
|
+
if (!invoke$isHeaders(this.w5f_1) && !invoke$isBody(this.w5f_1)) {
|
|
2601
|
+
return this.y5f_1;
|
|
2569
2602
|
}
|
|
2570
2603
|
|
|
2571
|
-
var _iterator__ex2g4s = this.
|
|
2604
|
+
var _iterator__ex2g4s = this.y5f_1.j2z().u2n().t();
|
|
2572
2605
|
while (_iterator__ex2g4s.u()) {
|
|
2573
2606
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2574
|
-
var name = _destruct__k2r9zo.
|
|
2575
|
-
var values = _destruct__k2r9zo.
|
|
2576
|
-
var tmp0 = this.
|
|
2607
|
+
var name = _destruct__k2r9zo.r1();
|
|
2608
|
+
var values = _destruct__k2r9zo.s1();
|
|
2609
|
+
var tmp0 = this.v5f_1;
|
|
2577
2610
|
var tmp$ret$0 = Unit_instance;
|
|
2578
2611
|
l$ret$1: do {
|
|
2579
2612
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2580
2613
|
while (_iterator__ex2g4s_0.u()) {
|
|
2581
2614
|
var element = _iterator__ex2g4s_0.v();
|
|
2582
|
-
if (element.
|
|
2615
|
+
if (element.c5g_1(name)) {
|
|
2583
2616
|
tmp$ret$0 = element;
|
|
2584
2617
|
break l$ret$1;
|
|
2585
2618
|
}
|
|
@@ -2588,30 +2621,30 @@
|
|
|
2588
2621
|
}
|
|
2589
2622
|
while (false);
|
|
2590
2623
|
if (tmp$ret$0 == null) {
|
|
2591
|
-
this.
|
|
2624
|
+
this.z5f_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2592
2625
|
} else {
|
|
2593
|
-
this.
|
|
2626
|
+
this.z5f_1.j1(name + ': \u2588\u2588');
|
|
2594
2627
|
}
|
|
2595
2628
|
}
|
|
2596
2629
|
|
|
2597
|
-
if (!invoke$isBody(this.
|
|
2598
|
-
this.
|
|
2599
|
-
return this.
|
|
2630
|
+
if (!invoke$isBody(this.w5f_1)) {
|
|
2631
|
+
this.z5f_1.j1('<-- END HTTP');
|
|
2632
|
+
return this.y5f_1;
|
|
2600
2633
|
}
|
|
2601
2634
|
|
|
2602
2635
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2603
|
-
this.
|
|
2604
|
-
return this.
|
|
2636
|
+
this.z5f_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2637
|
+
return this.y5f_1;
|
|
2605
2638
|
}
|
|
2606
2639
|
|
|
2607
|
-
if (equals(contentType(this.
|
|
2608
|
-
this.
|
|
2609
|
-
return this.
|
|
2640
|
+
if (equals(contentType(this.y5f_1), Text_getInstance().s2u_1)) {
|
|
2641
|
+
this.z5f_1.j1('<-- END HTTP (streaming)');
|
|
2642
|
+
return this.y5f_1;
|
|
2610
2643
|
}
|
|
2611
2644
|
|
|
2612
|
-
if (get_isSaved(this.
|
|
2645
|
+
if (get_isSaved(this.y5f_1)) {
|
|
2613
2646
|
this.a9_1 = 3;
|
|
2614
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2647
|
+
suspendResult = invoke$logResponseBody(this.x5f_1, this.y5f_1, this.y5f_1.a3r(), this.z5f_1, this);
|
|
2615
2648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2616
2649
|
return suspendResult;
|
|
2617
2650
|
}
|
|
@@ -2622,22 +2655,22 @@
|
|
|
2622
2655
|
}
|
|
2623
2656
|
|
|
2624
2657
|
case 1:
|
|
2625
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2626
|
-
this.
|
|
2627
|
-
var newChannel = _destruct__k2r9zo_0.
|
|
2658
|
+
var _destruct__k2r9zo_0 = split(this.y5f_1.a3r(), this.y5f_1);
|
|
2659
|
+
this.a5g_1 = _destruct__k2r9zo_0.bg();
|
|
2660
|
+
var newChannel = _destruct__k2r9zo_0.cg();
|
|
2628
2661
|
this.a9_1 = 2;
|
|
2629
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2662
|
+
suspendResult = invoke$logResponseBody(this.x5f_1, this.y5f_1, newChannel, this.z5f_1, this);
|
|
2630
2663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2631
2664
|
return suspendResult;
|
|
2632
2665
|
}
|
|
2633
2666
|
|
|
2634
2667
|
continue $sm;
|
|
2635
2668
|
case 2:
|
|
2636
|
-
var tmp_0 = this.
|
|
2637
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2638
|
-
return call.
|
|
2669
|
+
var tmp_0 = this.y5f_1.r3q();
|
|
2670
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.a5g_1));
|
|
2671
|
+
return call.c3o();
|
|
2639
2672
|
case 3:
|
|
2640
|
-
return this.
|
|
2673
|
+
return this.y5f_1;
|
|
2641
2674
|
case 4:
|
|
2642
2675
|
throw this.d9_1;
|
|
2643
2676
|
}
|
|
@@ -2682,8 +2715,8 @@
|
|
|
2682
2715
|
}
|
|
2683
2716
|
tmp_0 = tmp_1;
|
|
2684
2717
|
}
|
|
2685
|
-
var tmp$ret$
|
|
2686
|
-
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$
|
|
2718
|
+
var tmp$ret$2 = tmp_0;
|
|
2719
|
+
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$2);
|
|
2687
2720
|
ClientCallLogger = new AttributeKey(name, tmp$ret$1);
|
|
2688
2721
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
2689
2722
|
var name_0 = 'DisableLogging';
|
|
@@ -2703,8 +2736,8 @@
|
|
|
2703
2736
|
}
|
|
2704
2737
|
tmp_3 = tmp_4;
|
|
2705
2738
|
}
|
|
2706
|
-
var tmp$ret$
|
|
2707
|
-
var tmp$ret$1_0 = new TypeInfo(tmp_2, tmp$ret$
|
|
2739
|
+
var tmp$ret$2_0 = tmp_3;
|
|
2740
|
+
var tmp$ret$1_0 = new TypeInfo(tmp_2, tmp$ret$2_0);
|
|
2708
2741
|
DisableLogging = new AttributeKey(name_0, tmp$ret$1_0);
|
|
2709
2742
|
var tmp_5 = LoggingConfig$_init_$ref_f1nb0k();
|
|
2710
2743
|
Logging = createClientPlugin('Logging', tmp_5, Logging$lambda);
|
|
@@ -2715,31 +2748,31 @@
|
|
|
2715
2748
|
var this_0 = toList(headers);
|
|
2716
2749
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
2717
2750
|
var tmp = logHeaders$lambda;
|
|
2718
|
-
var tmp$ret$
|
|
2719
|
-
var sortedHeaders = sortedWith(this_0, tmp$ret$
|
|
2751
|
+
var tmp$ret$1 = new sam$kotlin_Comparator$0(tmp);
|
|
2752
|
+
var sortedHeaders = sortedWith(this_0, tmp$ret$1);
|
|
2720
2753
|
// Inline function 'kotlin.collections.forEach' call
|
|
2721
2754
|
var _iterator__ex2g4s = sortedHeaders.t();
|
|
2722
2755
|
while (_iterator__ex2g4s.u()) {
|
|
2723
2756
|
var element = _iterator__ex2g4s.v();
|
|
2724
2757
|
// Inline function 'kotlin.collections.component1' call
|
|
2725
|
-
var key = element.
|
|
2758
|
+
var key = element.r1();
|
|
2726
2759
|
// Inline function 'kotlin.collections.component2' call
|
|
2727
|
-
var values = element.
|
|
2728
|
-
var tmp$ret$
|
|
2760
|
+
var values = element.s1();
|
|
2761
|
+
var tmp$ret$6;
|
|
2729
2762
|
$l$block: {
|
|
2730
2763
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2731
2764
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2732
2765
|
while (_iterator__ex2g4s_0.u()) {
|
|
2733
2766
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2734
|
-
if (element_0.
|
|
2735
|
-
tmp$ret$
|
|
2767
|
+
if (element_0.c5g_1(key)) {
|
|
2768
|
+
tmp$ret$6 = element_0;
|
|
2736
2769
|
break $l$block;
|
|
2737
2770
|
}
|
|
2738
2771
|
}
|
|
2739
|
-
tmp$ret$
|
|
2772
|
+
tmp$ret$6 = null;
|
|
2740
2773
|
}
|
|
2741
|
-
var tmp0_safe_receiver = tmp$ret$
|
|
2742
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2774
|
+
var tmp0_safe_receiver = tmp$ret$6;
|
|
2775
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b5g_1;
|
|
2743
2776
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2744
2777
|
}
|
|
2745
2778
|
}
|
|
@@ -2751,26 +2784,26 @@
|
|
|
2751
2784
|
}
|
|
2752
2785
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2753
2786
|
// Inline function 'kotlin.with' call
|
|
2754
|
-
if (level.
|
|
2787
|
+
if (level.g59_1) {
|
|
2755
2788
|
// Inline function 'kotlin.text.appendLine' call
|
|
2756
|
-
var value = 'RESPONSE: ' + response.
|
|
2789
|
+
var value = 'RESPONSE: ' + response.i35().toString();
|
|
2757
2790
|
// Inline function 'kotlin.text.appendLine' call
|
|
2758
2791
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2759
2792
|
// Inline function 'kotlin.text.appendLine' call
|
|
2760
|
-
var value_0 = 'METHOD: ' + response.
|
|
2793
|
+
var value_0 = 'METHOD: ' + response.r3q().k3q().s3q().toString();
|
|
2761
2794
|
// Inline function 'kotlin.text.appendLine' call
|
|
2762
2795
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2763
2796
|
// Inline function 'kotlin.text.appendLine' call
|
|
2764
|
-
var value_1 = 'FROM: ' + response.
|
|
2797
|
+
var value_1 = 'FROM: ' + response.r3q().k3q().t3q().toString();
|
|
2765
2798
|
// Inline function 'kotlin.text.appendLine' call
|
|
2766
2799
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2767
2800
|
}
|
|
2768
|
-
if (level.
|
|
2801
|
+
if (level.h59_1) {
|
|
2769
2802
|
// Inline function 'kotlin.text.appendLine' call
|
|
2770
2803
|
var value_2 = 'COMMON HEADERS';
|
|
2771
2804
|
// Inline function 'kotlin.text.appendLine' call
|
|
2772
2805
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2773
|
-
logHeaders(log, response.
|
|
2806
|
+
logHeaders(log, response.j2z().u2n(), sanitizedHeaders);
|
|
2774
2807
|
}
|
|
2775
2808
|
}
|
|
2776
2809
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2786,16 +2819,16 @@
|
|
|
2786
2819
|
return tmp.i9();
|
|
2787
2820
|
}
|
|
2788
2821
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2789
|
-
this.
|
|
2822
|
+
this.w5k_1 = function_0;
|
|
2790
2823
|
}
|
|
2791
2824
|
protoOf(sam$kotlin_Comparator$0).wd = function (a, b) {
|
|
2792
|
-
return this.
|
|
2825
|
+
return this.w5k_1(a, b);
|
|
2793
2826
|
};
|
|
2794
2827
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2795
2828
|
return this.wd(a, b);
|
|
2796
2829
|
};
|
|
2797
2830
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2798
|
-
return this.
|
|
2831
|
+
return this.w5k_1;
|
|
2799
2832
|
};
|
|
2800
2833
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2801
2834
|
var tmp;
|
|
@@ -2817,14 +2850,14 @@
|
|
|
2817
2850
|
};
|
|
2818
2851
|
function logHeaders$lambda(a, b) {
|
|
2819
2852
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
2820
|
-
var tmp = a.
|
|
2821
|
-
var tmp$ret$
|
|
2822
|
-
return compareValues(tmp, tmp$ret$
|
|
2853
|
+
var tmp = a.r1();
|
|
2854
|
+
var tmp$ret$2 = b.r1();
|
|
2855
|
+
return compareValues(tmp, tmp$ret$2);
|
|
2823
2856
|
}
|
|
2824
2857
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2825
2858
|
CoroutineImpl.call(this, resultContinuation);
|
|
2826
|
-
this.
|
|
2827
|
-
this.
|
|
2859
|
+
this.f5k_1 = _this__u8e3s4;
|
|
2860
|
+
this.g5k_1 = response;
|
|
2828
2861
|
}
|
|
2829
2862
|
protoOf($logResponseBodyCOROUTINE$_0).i9 = function () {
|
|
2830
2863
|
var suspendResult = this.c9_1;
|
|
@@ -2834,14 +2867,14 @@
|
|
|
2834
2867
|
switch (tmp) {
|
|
2835
2868
|
case 0:
|
|
2836
2869
|
this.b9_1 = 8;
|
|
2837
|
-
this.
|
|
2870
|
+
this.h5k_1 = StringBuilder_init_$Create$();
|
|
2838
2871
|
this.a9_1 = 1;
|
|
2839
2872
|
continue $sm;
|
|
2840
2873
|
case 1:
|
|
2841
2874
|
this.b9_1 = 4;
|
|
2842
2875
|
this.b9_1 = 3;
|
|
2843
2876
|
this.a9_1 = 2;
|
|
2844
|
-
suspendResult = appendResponseBody(this.
|
|
2877
|
+
suspendResult = appendResponseBody(this.h5k_1, contentType(this.g5k_1), this.g5k_1.a3r(), this);
|
|
2845
2878
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2846
2879
|
return suspendResult;
|
|
2847
2880
|
}
|
|
@@ -2865,22 +2898,22 @@
|
|
|
2865
2898
|
|
|
2866
2899
|
case 4:
|
|
2867
2900
|
this.b9_1 = 8;
|
|
2868
|
-
this.
|
|
2901
|
+
this.i5k_1 = this.d9_1;
|
|
2869
2902
|
this.a9_1 = 5;
|
|
2870
|
-
var this_0 = this.
|
|
2871
|
-
suspendResult = this.
|
|
2903
|
+
var this_0 = this.h5k_1.toString();
|
|
2904
|
+
suspendResult = this.f5k_1.y57(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2872
2905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2873
2906
|
return suspendResult;
|
|
2874
2907
|
}
|
|
2875
2908
|
|
|
2876
2909
|
continue $sm;
|
|
2877
2910
|
case 5:
|
|
2878
|
-
throw this.
|
|
2911
|
+
throw this.i5k_1;
|
|
2879
2912
|
case 6:
|
|
2880
2913
|
this.b9_1 = 8;
|
|
2881
2914
|
this.a9_1 = 7;
|
|
2882
|
-
var this_1 = this.
|
|
2883
|
-
suspendResult = this.
|
|
2915
|
+
var this_1 = this.h5k_1.toString();
|
|
2916
|
+
suspendResult = this.f5k_1.y57(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2884
2917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2885
2918
|
return suspendResult;
|
|
2886
2919
|
}
|
|
@@ -2904,9 +2937,9 @@
|
|
|
2904
2937
|
};
|
|
2905
2938
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2906
2939
|
CoroutineImpl.call(this, resultContinuation);
|
|
2907
|
-
this.
|
|
2908
|
-
this.
|
|
2909
|
-
this.
|
|
2940
|
+
this.r5k_1 = _this__u8e3s4;
|
|
2941
|
+
this.s5k_1 = contentType;
|
|
2942
|
+
this.t5k_1 = content;
|
|
2910
2943
|
}
|
|
2911
2944
|
protoOf($appendResponseBodyCOROUTINE$).i9 = function () {
|
|
2912
2945
|
var suspendResult = this.c9_1;
|
|
@@ -2916,16 +2949,16 @@
|
|
|
2916
2949
|
switch (tmp) {
|
|
2917
2950
|
case 0:
|
|
2918
2951
|
this.b9_1 = 3;
|
|
2919
|
-
var tmp0 = this.
|
|
2920
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2952
|
+
var tmp0 = this.r5k_1;
|
|
2953
|
+
var value = 'BODY Content-Type: ' + toString_0(this.s5k_1);
|
|
2921
2954
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2922
|
-
var tmp0_0 = this.
|
|
2955
|
+
var tmp0_0 = this.r5k_1;
|
|
2923
2956
|
var value_0 = 'BODY START';
|
|
2924
2957
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2925
|
-
var tmp0_1 = this.
|
|
2926
|
-
var tmp0_safe_receiver = this.
|
|
2958
|
+
var tmp0_1 = this.t5k_1;
|
|
2959
|
+
var tmp0_safe_receiver = this.s5k_1;
|
|
2927
2960
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2928
|
-
this.
|
|
2961
|
+
this.v5k_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp1_elvis_lhs;
|
|
2929
2962
|
this.b9_1 = 2;
|
|
2930
2963
|
this.a9_1 = 1;
|
|
2931
2964
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2936,7 +2969,7 @@
|
|
|
2936
2969
|
continue $sm;
|
|
2937
2970
|
case 1:
|
|
2938
2971
|
var ARGUMENT = suspendResult;
|
|
2939
|
-
this.
|
|
2972
|
+
this.u5k_1 = readText(ARGUMENT, this.v5k_1);
|
|
2940
2973
|
this.b9_1 = 3;
|
|
2941
2974
|
this.a9_1 = 4;
|
|
2942
2975
|
continue $sm;
|
|
@@ -2946,7 +2979,7 @@
|
|
|
2946
2979
|
if (tmp_0 instanceof Error) {
|
|
2947
2980
|
var cause = this.d9_1;
|
|
2948
2981
|
var tmp_1 = this;
|
|
2949
|
-
tmp_1.
|
|
2982
|
+
tmp_1.u5k_1 = null;
|
|
2950
2983
|
this.a9_1 = 4;
|
|
2951
2984
|
continue $sm;
|
|
2952
2985
|
} else {
|
|
@@ -2957,10 +2990,10 @@
|
|
|
2957
2990
|
throw this.d9_1;
|
|
2958
2991
|
case 4:
|
|
2959
2992
|
this.b9_1 = 3;
|
|
2960
|
-
var tmp2_elvis_lhs = this.
|
|
2993
|
+
var tmp2_elvis_lhs = this.u5k_1;
|
|
2961
2994
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2962
|
-
this.
|
|
2963
|
-
this.
|
|
2995
|
+
this.r5k_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2996
|
+
this.r5k_1.q('BODY END');
|
|
2964
2997
|
return Unit_instance;
|
|
2965
2998
|
}
|
|
2966
2999
|
} catch ($p) {
|
|
@@ -2982,21 +3015,21 @@
|
|
|
2982
3015
|
}
|
|
2983
3016
|
function toReadChannel(_this__u8e3s4) {
|
|
2984
3017
|
var tmp = GlobalScope_instance;
|
|
2985
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
2986
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3018
|
+
var tmp_0 = Dispatchers_getInstance().i15_1;
|
|
3019
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).p1v_1;
|
|
2987
3020
|
}
|
|
2988
3021
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
2989
|
-
this.
|
|
3022
|
+
this.r5l_1 = $this_toReadChannel;
|
|
2990
3023
|
CoroutineImpl.call(this, resultContinuation);
|
|
2991
3024
|
}
|
|
2992
|
-
protoOf(toReadChannel$slambda).
|
|
2993
|
-
var tmp = this.
|
|
3025
|
+
protoOf(toReadChannel$slambda).o3a = function ($this$writer, $completion) {
|
|
3026
|
+
var tmp = this.p3a($this$writer, $completion);
|
|
2994
3027
|
tmp.c9_1 = Unit_instance;
|
|
2995
3028
|
tmp.d9_1 = null;
|
|
2996
3029
|
return tmp.i9();
|
|
2997
3030
|
};
|
|
2998
3031
|
protoOf(toReadChannel$slambda).u9 = function (p1, $completion) {
|
|
2999
|
-
return this.
|
|
3032
|
+
return this.o3a(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3000
3033
|
};
|
|
3001
3034
|
protoOf(toReadChannel$slambda).i9 = function () {
|
|
3002
3035
|
var suspendResult = this.c9_1;
|
|
@@ -3007,7 +3040,7 @@
|
|
|
3007
3040
|
case 0:
|
|
3008
3041
|
this.b9_1 = 2;
|
|
3009
3042
|
this.a9_1 = 1;
|
|
3010
|
-
suspendResult = this.
|
|
3043
|
+
suspendResult = this.r5l_1.p35(this.s5l_1.r1v_1, this);
|
|
3011
3044
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3012
3045
|
return suspendResult;
|
|
3013
3046
|
}
|
|
@@ -3029,23 +3062,23 @@
|
|
|
3029
3062
|
}
|
|
3030
3063
|
while (true);
|
|
3031
3064
|
};
|
|
3032
|
-
protoOf(toReadChannel$slambda).
|
|
3033
|
-
var i = new toReadChannel$slambda(this.
|
|
3034
|
-
i.
|
|
3065
|
+
protoOf(toReadChannel$slambda).p3a = function ($this$writer, completion) {
|
|
3066
|
+
var i = new toReadChannel$slambda(this.r5l_1, completion);
|
|
3067
|
+
i.s5l_1 = $this$writer;
|
|
3035
3068
|
return i;
|
|
3036
3069
|
};
|
|
3037
3070
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3038
3071
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3039
3072
|
var l = function ($this$writer, $completion) {
|
|
3040
|
-
return i.
|
|
3073
|
+
return i.o3a($this$writer, $completion);
|
|
3041
3074
|
};
|
|
3042
3075
|
l.$arity = 1;
|
|
3043
3076
|
return l;
|
|
3044
3077
|
}
|
|
3045
3078
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3046
3079
|
CoroutineImpl.call(this, resultContinuation);
|
|
3047
|
-
this.
|
|
3048
|
-
this.
|
|
3080
|
+
this.f5l_1 = _this__u8e3s4;
|
|
3081
|
+
this.g5l_1 = log;
|
|
3049
3082
|
}
|
|
3050
3083
|
protoOf($observeCOROUTINE$).i9 = function () {
|
|
3051
3084
|
var suspendResult = this.c9_1;
|
|
@@ -3055,10 +3088,10 @@
|
|
|
3055
3088
|
switch (tmp) {
|
|
3056
3089
|
case 0:
|
|
3057
3090
|
this.b9_1 = 6;
|
|
3058
|
-
var tmp0_subject = this.
|
|
3091
|
+
var tmp0_subject = this.f5l_1;
|
|
3059
3092
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3060
3093
|
this.a9_1 = 3;
|
|
3061
|
-
suspendResult =
|
|
3094
|
+
suspendResult = writeFully_0(this.g5l_1, this.f5l_1.k35(), VOID, VOID, this);
|
|
3062
3095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3063
3096
|
return suspendResult;
|
|
3064
3097
|
}
|
|
@@ -3067,25 +3100,25 @@
|
|
|
3067
3100
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3068
3101
|
var tmp_0 = this;
|
|
3069
3102
|
var responseChannel = new ByteChannel();
|
|
3070
|
-
var content = this.
|
|
3071
|
-
copyToBoth(content, this.
|
|
3072
|
-
tmp_0.
|
|
3103
|
+
var content = this.f5l_1.n35();
|
|
3104
|
+
copyToBoth(content, this.g5l_1, responseChannel);
|
|
3105
|
+
tmp_0.h5l_1 = new LoggedContent(this.f5l_1, responseChannel);
|
|
3073
3106
|
this.a9_1 = 5;
|
|
3074
3107
|
continue $sm;
|
|
3075
3108
|
} else {
|
|
3076
3109
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3077
3110
|
var tmp_1 = this;
|
|
3078
3111
|
var responseChannel_0 = new ByteChannel();
|
|
3079
|
-
var content_0 = toReadChannel(this.
|
|
3080
|
-
copyToBoth(content_0, this.
|
|
3081
|
-
tmp_1.
|
|
3112
|
+
var content_0 = toReadChannel(this.f5l_1);
|
|
3113
|
+
copyToBoth(content_0, this.g5l_1, responseChannel_0);
|
|
3114
|
+
tmp_1.h5l_1 = new LoggedContent(this.f5l_1, responseChannel_0);
|
|
3082
3115
|
this.a9_1 = 5;
|
|
3083
3116
|
continue $sm;
|
|
3084
3117
|
} else {
|
|
3085
3118
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3086
|
-
this.
|
|
3119
|
+
this.i5l_1 = this.f5l_1;
|
|
3087
3120
|
this.a9_1 = 2;
|
|
3088
|
-
suspendResult = observe(this.
|
|
3121
|
+
suspendResult = observe(this.f5l_1.t35(), this.g5l_1, this);
|
|
3089
3122
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3090
3123
|
return suspendResult;
|
|
3091
3124
|
}
|
|
@@ -3099,7 +3132,7 @@
|
|
|
3099
3132
|
}
|
|
3100
3133
|
if (tmp_2) {
|
|
3101
3134
|
this.a9_1 = 1;
|
|
3102
|
-
suspendResult = this.
|
|
3135
|
+
suspendResult = this.g5l_1.d1o(this);
|
|
3103
3136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3104
3137
|
return suspendResult;
|
|
3105
3138
|
}
|
|
@@ -3115,28 +3148,28 @@
|
|
|
3115
3148
|
|
|
3116
3149
|
break;
|
|
3117
3150
|
case 1:
|
|
3118
|
-
this.
|
|
3151
|
+
this.h5l_1 = this.f5l_1;
|
|
3119
3152
|
this.a9_1 = 5;
|
|
3120
3153
|
continue $sm;
|
|
3121
3154
|
case 2:
|
|
3122
3155
|
var ARGUMENT = suspendResult;
|
|
3123
|
-
this.
|
|
3156
|
+
this.h5l_1 = this.i5l_1.u35(ARGUMENT);
|
|
3124
3157
|
this.a9_1 = 5;
|
|
3125
3158
|
continue $sm;
|
|
3126
3159
|
case 3:
|
|
3127
3160
|
this.a9_1 = 4;
|
|
3128
|
-
suspendResult = this.
|
|
3161
|
+
suspendResult = this.g5l_1.d1o(this);
|
|
3129
3162
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3130
3163
|
return suspendResult;
|
|
3131
3164
|
}
|
|
3132
3165
|
|
|
3133
3166
|
continue $sm;
|
|
3134
3167
|
case 4:
|
|
3135
|
-
this.
|
|
3168
|
+
this.h5l_1 = this.f5l_1;
|
|
3136
3169
|
this.a9_1 = 5;
|
|
3137
3170
|
continue $sm;
|
|
3138
3171
|
case 5:
|
|
3139
|
-
return this.
|
|
3172
|
+
return this.h5l_1;
|
|
3140
3173
|
case 6:
|
|
3141
3174
|
throw this.d9_1;
|
|
3142
3175
|
}
|
|
@@ -3162,7 +3195,7 @@
|
|
|
3162
3195
|
}
|
|
3163
3196
|
function MDCContextElement() {
|
|
3164
3197
|
}
|
|
3165
|
-
protoOf(MDCContextElement).
|
|
3198
|
+
protoOf(MDCContextElement).r1 = function () {
|
|
3166
3199
|
return MDCContextKey_instance;
|
|
3167
3200
|
};
|
|
3168
3201
|
protoOf(MDCContextElement).toString = function () {
|
|
@@ -3176,12 +3209,16 @@
|
|
|
3176
3209
|
return get_SIMPLE(_this__u8e3s4);
|
|
3177
3210
|
}
|
|
3178
3211
|
//region block: post-declaration
|
|
3212
|
+
protoOf(Empty).e58 = get_byteSize;
|
|
3213
|
+
protoOf(BinaryLogBodyFilter$1).b58 = filterRequest;
|
|
3214
|
+
protoOf(BinaryLogBodyFilter$1).d58 = filterResponse;
|
|
3179
3215
|
protoOf(MDCContextElement).n9 = get;
|
|
3180
|
-
protoOf(MDCContextElement).
|
|
3181
|
-
protoOf(MDCContextElement).
|
|
3182
|
-
protoOf(MDCContextElement).
|
|
3216
|
+
protoOf(MDCContextElement).xg = fold;
|
|
3217
|
+
protoOf(MDCContextElement).wg = minusKey;
|
|
3218
|
+
protoOf(MDCContextElement).yg = plus;
|
|
3183
3219
|
//endregion
|
|
3184
3220
|
//region block: init
|
|
3221
|
+
Empty_instance = new Empty();
|
|
3185
3222
|
Companion_instance = new Companion();
|
|
3186
3223
|
SimpleLogger_instance = new SimpleLogger();
|
|
3187
3224
|
SendHook_instance = new SendHook();
|
|
@@ -3197,4 +3234,4 @@
|
|
|
3197
3234
|
_.$_$.b = get_Logging;
|
|
3198
3235
|
//endregion
|
|
3199
3236
|
return _;
|
|
3200
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-atomicfu.js'), require('./ktor-ktor-
|
|
3237
|
+
}(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')));
|