@litert/televoke 1.0.1 → 1.0.3

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.
Files changed (279) hide show
  1. package/CHANGES.md +9 -0
  2. package/lib/client/Client.decl.d.ts +14 -14
  3. package/lib/client/Client.decl.d.ts.map +1 -1
  4. package/lib/client/Client.decl.js +14 -14
  5. package/lib/client/Client.decl.js.map +1 -1
  6. package/lib/client/JsonApiClient.impl.d.ts +14 -14
  7. package/lib/client/JsonApiClient.impl.d.ts.map +1 -1
  8. package/lib/client/JsonApiClient.impl.js +15 -14
  9. package/lib/client/JsonApiClient.impl.js.map +1 -1
  10. package/lib/client/index.d.ts +15 -15
  11. package/lib/client/index.d.ts.map +1 -1
  12. package/lib/client/index.js +15 -15
  13. package/lib/client/index.js.map +1 -1
  14. package/lib/index.d.ts +14 -14
  15. package/lib/index.d.ts.map +1 -1
  16. package/lib/index.js +14 -14
  17. package/lib/index.js.map +1 -1
  18. package/lib/server/LegacyServerChannel.impl.d.ts +14 -14
  19. package/lib/server/LegacyServerChannel.impl.d.ts.map +1 -1
  20. package/lib/server/LegacyServerChannel.impl.js +14 -14
  21. package/lib/server/LegacyServerChannel.impl.js.map +1 -1
  22. package/lib/server/Server.decl.d.ts +14 -14
  23. package/lib/server/Server.decl.d.ts.map +1 -1
  24. package/lib/server/Server.decl.js +14 -14
  25. package/lib/server/Server.decl.js.map +1 -1
  26. package/lib/server/Server.impl.d.ts +14 -14
  27. package/lib/server/Server.impl.d.ts.map +1 -1
  28. package/lib/server/Server.impl.js +14 -14
  29. package/lib/server/Server.impl.js.map +1 -1
  30. package/lib/server/ServerChannel.d.ts +14 -14
  31. package/lib/server/ServerChannel.d.ts.map +1 -1
  32. package/lib/server/ServerChannel.js +14 -14
  33. package/lib/server/ServerChannel.js.map +1 -1
  34. package/lib/server/SimpleJsonApiRouter.d.ts +14 -14
  35. package/lib/server/SimpleJsonApiRouter.d.ts.map +1 -1
  36. package/lib/server/SimpleJsonApiRouter.js +14 -14
  37. package/lib/server/SimpleJsonApiRouter.js.map +1 -1
  38. package/lib/server/index.d.ts +14 -14
  39. package/lib/server/index.d.ts.map +1 -1
  40. package/lib/server/index.js +14 -14
  41. package/lib/server/index.js.map +1 -1
  42. package/lib/shared/BinaryStream.d.ts +14 -14
  43. package/lib/shared/BinaryStream.d.ts.map +1 -1
  44. package/lib/shared/BinaryStream.js +14 -14
  45. package/lib/shared/BinaryStream.js.map +1 -1
  46. package/lib/shared/BinaryStreamManager.d.ts +14 -14
  47. package/lib/shared/BinaryStreamManager.d.ts.map +1 -1
  48. package/lib/shared/BinaryStreamManager.js +14 -14
  49. package/lib/shared/BinaryStreamManager.js.map +1 -1
  50. package/lib/shared/Channel.impl.d.ts +14 -14
  51. package/lib/shared/Channel.impl.d.ts.map +1 -1
  52. package/lib/shared/Channel.impl.js +14 -14
  53. package/lib/shared/Channel.impl.js.map +1 -1
  54. package/lib/shared/Constants.d.ts +14 -14
  55. package/lib/shared/Constants.d.ts.map +1 -1
  56. package/lib/shared/Constants.js +14 -14
  57. package/lib/shared/Constants.js.map +1 -1
  58. package/lib/shared/Encodings/index.d.ts +14 -14
  59. package/lib/shared/Encodings/index.d.ts.map +1 -1
  60. package/lib/shared/Encodings/index.js +14 -14
  61. package/lib/shared/Encodings/index.js.map +1 -1
  62. package/lib/shared/Encodings/v1/EncoderV1.d.ts +14 -14
  63. package/lib/shared/Encodings/v1/EncoderV1.d.ts.map +1 -1
  64. package/lib/shared/Encodings/v1/EncoderV1.js +14 -14
  65. package/lib/shared/Encodings/v1/EncoderV1.js.map +1 -1
  66. package/lib/shared/Encodings/v1/Protocol.v1.decls.d.ts +14 -14
  67. package/lib/shared/Encodings/v1/Protocol.v1.decls.d.ts.map +1 -1
  68. package/lib/shared/Encodings/v1/Protocol.v1.decls.js +14 -14
  69. package/lib/shared/Encodings/v1/Protocol.v1.decls.js.map +1 -1
  70. package/lib/shared/Encodings/v1/index.d.ts +14 -14
  71. package/lib/shared/Encodings/v1/index.d.ts.map +1 -1
  72. package/lib/shared/Encodings/v1/index.js +14 -14
  73. package/lib/shared/Encodings/v1/index.js.map +1 -1
  74. package/lib/shared/Encodings/v2/Constants.v2.d.ts +14 -14
  75. package/lib/shared/Encodings/v2/Constants.v2.d.ts.map +1 -1
  76. package/lib/shared/Encodings/v2/Constants.v2.js +14 -14
  77. package/lib/shared/Encodings/v2/Constants.v2.js.map +1 -1
  78. package/lib/shared/Encodings/v2/DecoderV2.d.ts +14 -14
  79. package/lib/shared/Encodings/v2/DecoderV2.d.ts.map +1 -1
  80. package/lib/shared/Encodings/v2/DecoderV2.js +14 -14
  81. package/lib/shared/Encodings/v2/DecoderV2.js.map +1 -1
  82. package/lib/shared/Encodings/v2/EncoderV2.d.ts +14 -14
  83. package/lib/shared/Encodings/v2/EncoderV2.d.ts.map +1 -1
  84. package/lib/shared/Encodings/v2/EncoderV2.js +14 -14
  85. package/lib/shared/Encodings/v2/EncoderV2.js.map +1 -1
  86. package/lib/shared/Encodings/v2/Encoding.v2.decl.d.ts +14 -14
  87. package/lib/shared/Encodings/v2/Encoding.v2.decl.d.ts.map +1 -1
  88. package/lib/shared/Encodings/v2/Encoding.v2.decl.js +14 -14
  89. package/lib/shared/Encodings/v2/Encoding.v2.decl.js.map +1 -1
  90. package/lib/shared/Encodings/v2/index.d.ts +14 -14
  91. package/lib/shared/Encodings/v2/index.d.ts.map +1 -1
  92. package/lib/shared/Encodings/v2/index.js +14 -14
  93. package/lib/shared/Encodings/v2/index.js.map +1 -1
  94. package/lib/shared/Errors.d.ts +14 -14
  95. package/lib/shared/Errors.d.ts.map +1 -1
  96. package/lib/shared/Errors.js +14 -14
  97. package/lib/shared/Errors.js.map +1 -1
  98. package/lib/shared/Shared.decl.d.ts +14 -14
  99. package/lib/shared/Shared.decl.d.ts.map +1 -1
  100. package/lib/shared/Shared.decl.js +14 -14
  101. package/lib/shared/Shared.decl.js.map +1 -1
  102. package/lib/shared/Utils.d.ts +14 -14
  103. package/lib/shared/Utils.d.ts.map +1 -1
  104. package/lib/shared/Utils.js +14 -14
  105. package/lib/shared/Utils.js.map +1 -1
  106. package/lib/shared/index.d.ts +14 -14
  107. package/lib/shared/index.d.ts.map +1 -1
  108. package/lib/shared/index.js +14 -14
  109. package/lib/shared/index.js.map +1 -1
  110. package/lib/transporters/Transporter.decl.d.ts +14 -14
  111. package/lib/transporters/Transporter.decl.d.ts.map +1 -1
  112. package/lib/transporters/Transporter.decl.js +14 -14
  113. package/lib/transporters/Transporter.decl.js.map +1 -1
  114. package/lib/transporters/http-listener/AbstractHttpListener.d.ts +14 -14
  115. package/lib/transporters/http-listener/AbstractHttpListener.d.ts.map +1 -1
  116. package/lib/transporters/http-listener/AbstractHttpListener.js +14 -14
  117. package/lib/transporters/http-listener/AbstractHttpListener.js.map +1 -1
  118. package/lib/transporters/http-listener/Http.Decl.d.ts +14 -14
  119. package/lib/transporters/http-listener/Http.Decl.d.ts.map +1 -1
  120. package/lib/transporters/http-listener/Http.Decl.js +14 -14
  121. package/lib/transporters/http-listener/Http.Decl.js.map +1 -1
  122. package/lib/transporters/http-listener/HttpListener.d.ts +14 -14
  123. package/lib/transporters/http-listener/HttpListener.d.ts.map +1 -1
  124. package/lib/transporters/http-listener/HttpListener.js +14 -14
  125. package/lib/transporters/http-listener/HttpListener.js.map +1 -1
  126. package/lib/transporters/http-listener/HttpUnixSocketListener.d.ts +14 -14
  127. package/lib/transporters/http-listener/HttpUnixSocketListener.d.ts.map +1 -1
  128. package/lib/transporters/http-listener/HttpUnixSocketListener.js +14 -14
  129. package/lib/transporters/http-listener/HttpUnixSocketListener.js.map +1 -1
  130. package/lib/transporters/http-listener/HttpsListener.d.ts +14 -14
  131. package/lib/transporters/http-listener/HttpsListener.d.ts.map +1 -1
  132. package/lib/transporters/http-listener/HttpsListener.js +14 -14
  133. package/lib/transporters/http-listener/HttpsListener.js.map +1 -1
  134. package/lib/transporters/http-listener/index.d.ts +14 -14
  135. package/lib/transporters/http-listener/index.d.ts.map +1 -1
  136. package/lib/transporters/http-listener/index.js +14 -14
  137. package/lib/transporters/http-listener/index.js.map +1 -1
  138. package/lib/transporters/index.d.ts +14 -14
  139. package/lib/transporters/index.d.ts.map +1 -1
  140. package/lib/transporters/index.js +14 -14
  141. package/lib/transporters/index.js.map +1 -1
  142. package/lib/{client/LegacyHttpClient.impl.d.ts → transporters/legacy-http/LegacyHttp.Client.Native.d.ts} +35 -17
  143. package/lib/transporters/legacy-http/LegacyHttp.Client.Native.d.ts.map +1 -0
  144. package/lib/{client/LegacyHttpClient.impl.js → transporters/legacy-http/LegacyHttp.Client.Native.js} +24 -23
  145. package/lib/transporters/legacy-http/LegacyHttp.Client.Native.js.map +1 -0
  146. package/lib/transporters/legacy-http/LegacyHttp.Server.d.ts +14 -14
  147. package/lib/transporters/legacy-http/LegacyHttp.Server.d.ts.map +1 -1
  148. package/lib/transporters/legacy-http/LegacyHttp.Server.js +14 -14
  149. package/lib/transporters/legacy-http/LegacyHttp.Server.js.map +1 -1
  150. package/lib/transporters/legacy-http/LegacyHttp.Transporter.d.ts +14 -14
  151. package/lib/transporters/legacy-http/LegacyHttp.Transporter.d.ts.map +1 -1
  152. package/lib/transporters/legacy-http/LegacyHttp.Transporter.js +14 -14
  153. package/lib/transporters/legacy-http/LegacyHttp.Transporter.js.map +1 -1
  154. package/lib/transporters/legacy-http/index.d.ts +15 -14
  155. package/lib/transporters/legacy-http/index.d.ts.map +1 -1
  156. package/lib/transporters/legacy-http/index.js +15 -14
  157. package/lib/transporters/legacy-http/index.js.map +1 -1
  158. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.d.ts +14 -14
  159. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.d.ts.map +1 -1
  160. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.js +14 -14
  161. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.js.map +1 -1
  162. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.d.ts +14 -14
  163. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.d.ts.map +1 -1
  164. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.js +14 -14
  165. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.js.map +1 -1
  166. package/lib/transporters/lwdfx/LwDFX.Tls.Client.d.ts +14 -14
  167. package/lib/transporters/lwdfx/LwDFX.Tls.Client.d.ts.map +1 -1
  168. package/lib/transporters/lwdfx/LwDFX.Tls.Client.js +14 -14
  169. package/lib/transporters/lwdfx/LwDFX.Tls.Client.js.map +1 -1
  170. package/lib/transporters/lwdfx/LwDFX.Tls.Server.d.ts +14 -14
  171. package/lib/transporters/lwdfx/LwDFX.Tls.Server.d.ts.map +1 -1
  172. package/lib/transporters/lwdfx/LwDFX.Tls.Server.js +14 -14
  173. package/lib/transporters/lwdfx/LwDFX.Tls.Server.js.map +1 -1
  174. package/lib/transporters/lwdfx/LwDFX.Transporter.d.ts +14 -14
  175. package/lib/transporters/lwdfx/LwDFX.Transporter.d.ts.map +1 -1
  176. package/lib/transporters/lwdfx/LwDFX.Transporter.js +14 -14
  177. package/lib/transporters/lwdfx/LwDFX.Transporter.js.map +1 -1
  178. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.d.ts +14 -14
  179. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.d.ts.map +1 -1
  180. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.js +14 -14
  181. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.js.map +1 -1
  182. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.d.ts +14 -14
  183. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.d.ts.map +1 -1
  184. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.js +14 -14
  185. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.js.map +1 -1
  186. package/lib/transporters/lwdfx/LwDFX.decl.d.ts +14 -14
  187. package/lib/transporters/lwdfx/LwDFX.decl.d.ts.map +1 -1
  188. package/lib/transporters/lwdfx/LwDFX.decl.js +14 -14
  189. package/lib/transporters/lwdfx/LwDFX.decl.js.map +1 -1
  190. package/lib/transporters/lwdfx/index.d.ts +14 -14
  191. package/lib/transporters/lwdfx/index.d.ts.map +1 -1
  192. package/lib/transporters/lwdfx/index.js +14 -14
  193. package/lib/transporters/lwdfx/index.js.map +1 -1
  194. package/lib/transporters/memory/Memory.Impl.d.ts +14 -14
  195. package/lib/transporters/memory/Memory.Impl.d.ts.map +1 -1
  196. package/lib/transporters/memory/Memory.Impl.js +14 -14
  197. package/lib/transporters/memory/Memory.Impl.js.map +1 -1
  198. package/lib/transporters/memory/index.d.ts +14 -14
  199. package/lib/transporters/memory/index.d.ts.map +1 -1
  200. package/lib/transporters/memory/index.js +14 -14
  201. package/lib/transporters/memory/index.js.map +1 -1
  202. package/lib/transporters/websocket/WebSocket.Client.d.ts +14 -14
  203. package/lib/transporters/websocket/WebSocket.Client.d.ts.map +1 -1
  204. package/lib/transporters/websocket/WebSocket.Client.js +16 -16
  205. package/lib/transporters/websocket/WebSocket.Client.js.map +1 -1
  206. package/lib/transporters/websocket/WebSocket.Server.d.ts +14 -14
  207. package/lib/transporters/websocket/WebSocket.Server.d.ts.map +1 -1
  208. package/lib/transporters/websocket/WebSocket.Server.js +15 -15
  209. package/lib/transporters/websocket/WebSocket.Server.js.map +1 -1
  210. package/lib/transporters/websocket/WebSocket.Transporter.d.ts +14 -14
  211. package/lib/transporters/websocket/WebSocket.Transporter.d.ts.map +1 -1
  212. package/lib/transporters/websocket/WebSocket.Transporter.js +15 -15
  213. package/lib/transporters/websocket/WebSocket.Transporter.js.map +1 -1
  214. package/lib/transporters/websocket/WebSocket.decl.d.ts +14 -14
  215. package/lib/transporters/websocket/WebSocket.decl.d.ts.map +1 -1
  216. package/lib/transporters/websocket/WebSocket.decl.js +14 -14
  217. package/lib/transporters/websocket/WebSocket.decl.js.map +1 -1
  218. package/lib/transporters/websocket/index.d.ts +14 -14
  219. package/lib/transporters/websocket/index.d.ts.map +1 -1
  220. package/lib/transporters/websocket/index.js +14 -14
  221. package/lib/transporters/websocket/index.js.map +1 -1
  222. package/package.json +10 -10
  223. package/src/lib/client/Client.decl.ts +14 -14
  224. package/src/lib/client/JsonApiClient.impl.ts +15 -14
  225. package/src/lib/client/index.ts +16 -15
  226. package/src/lib/index.ts +14 -14
  227. package/src/lib/server/LegacyServerChannel.impl.ts +14 -14
  228. package/src/lib/server/Server.decl.ts +14 -14
  229. package/src/lib/server/Server.impl.ts +14 -14
  230. package/src/lib/server/ServerChannel.ts +14 -14
  231. package/src/lib/server/SimpleJsonApiRouter.ts +14 -14
  232. package/src/lib/server/index.ts +14 -14
  233. package/src/lib/shared/BinaryStream.ts +14 -14
  234. package/src/lib/shared/BinaryStreamManager.ts +14 -14
  235. package/src/lib/shared/Channel.impl.ts +14 -14
  236. package/src/lib/shared/Constants.ts +14 -14
  237. package/src/lib/shared/Encodings/index.ts +14 -14
  238. package/src/lib/shared/Encodings/v1/EncoderV1.ts +14 -14
  239. package/src/lib/shared/Encodings/v1/Protocol.v1.decls.ts +14 -14
  240. package/src/lib/shared/Encodings/v1/index.ts +14 -14
  241. package/src/lib/shared/Encodings/v2/Constants.v2.ts +14 -14
  242. package/src/lib/shared/Encodings/v2/DecoderV2.ts +14 -14
  243. package/src/lib/shared/Encodings/v2/EncoderV2.ts +14 -14
  244. package/src/lib/shared/Encodings/v2/Encoding.v2.decl.ts +14 -14
  245. package/src/lib/shared/Encodings/v2/index.ts +14 -14
  246. package/src/lib/shared/Errors.ts +14 -14
  247. package/src/lib/shared/Shared.decl.ts +14 -14
  248. package/src/lib/shared/Utils.ts +14 -14
  249. package/src/lib/shared/index.ts +14 -14
  250. package/src/lib/transporters/Transporter.decl.ts +14 -14
  251. package/src/lib/transporters/http-listener/AbstractHttpListener.ts +14 -14
  252. package/src/lib/transporters/http-listener/Http.Decl.ts +14 -14
  253. package/src/lib/transporters/http-listener/HttpListener.ts +14 -14
  254. package/src/lib/transporters/http-listener/HttpUnixSocketListener.ts +14 -14
  255. package/src/lib/transporters/http-listener/HttpsListener.ts +14 -14
  256. package/src/lib/transporters/http-listener/index.ts +14 -14
  257. package/src/lib/transporters/index.ts +14 -14
  258. package/src/lib/{client/LegacyHttpClient.impl.ts → transporters/legacy-http/LegacyHttp.Client.Native.ts} +45 -23
  259. package/src/lib/transporters/legacy-http/LegacyHttp.Server.ts +14 -14
  260. package/src/lib/transporters/legacy-http/LegacyHttp.Transporter.ts +14 -14
  261. package/src/lib/transporters/legacy-http/index.ts +15 -14
  262. package/src/lib/transporters/lwdfx/LwDFX.Tcp.Client.ts +14 -14
  263. package/src/lib/transporters/lwdfx/LwDFX.Tcp.Server.ts +14 -14
  264. package/src/lib/transporters/lwdfx/LwDFX.Tls.Client.ts +14 -14
  265. package/src/lib/transporters/lwdfx/LwDFX.Tls.Server.ts +14 -14
  266. package/src/lib/transporters/lwdfx/LwDFX.Transporter.ts +14 -14
  267. package/src/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.ts +14 -14
  268. package/src/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.ts +14 -14
  269. package/src/lib/transporters/lwdfx/LwDFX.decl.ts +14 -14
  270. package/src/lib/transporters/lwdfx/index.ts +14 -14
  271. package/src/lib/transporters/memory/Memory.Impl.ts +14 -14
  272. package/src/lib/transporters/memory/index.ts +14 -14
  273. package/src/lib/transporters/websocket/WebSocket.Client.ts +16 -16
  274. package/src/lib/transporters/websocket/WebSocket.Server.ts +15 -15
  275. package/src/lib/transporters/websocket/WebSocket.Transporter.ts +17 -17
  276. package/src/lib/transporters/websocket/WebSocket.decl.ts +14 -14
  277. package/src/lib/transporters/websocket/index.ts +14 -14
  278. package/lib/client/LegacyHttpClient.impl.d.ts.map +0 -1
  279. package/lib/client/LegacyHttpClient.impl.js.map +0 -1
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import type * as $Net from 'node:net';
18
18
  import * as Http from 'node:http';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import type * as $Net from 'node:net';
18
18
  import * as Http from 'node:http';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as Https from 'node:https';
18
18
  import type * as $Net from 'node:net';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  export * from './Http.Decl';
18
18
  export * from './HttpListener';
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  export type * from './Transporter.decl';
@@ -1,29 +1,30 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as $Http from 'http';
18
18
  import * as $Https from 'https';
19
- import * as C from './Client.decl';
20
- import * as Shared from '../shared';
21
- import * as v1 from '../shared/Encodings/v1';
19
+ import type * as C from '../../client/Client.decl';
20
+ import * as Shared from '../../shared';
21
+ import * as v1 from '../../shared/Encodings/v1';
22
22
  import { EventEmitter } from 'node:events';
23
23
 
24
24
  const HTTP_HEADER_CONTENT_LENGTH = 'content-length';
25
25
  const HTTP_HEADER_TV_VER = 'x-tv-ver';
26
26
 
27
+ const DEFAULT_MAX_CONNECTIONS = 100;
27
28
  const DEFAULT_TIMEOUT = 30_000;
28
29
 
29
30
  const disabledStreamManager = Shared.createDisabledStreamManagerFactory()(null as any);
@@ -261,6 +262,27 @@ interface IHttpClientOptionsBase extends $Https.RequestOptions {
261
262
  * @default true
262
263
  */
263
264
  retryOnConnReset?: boolean;
265
+
266
+ /**
267
+ * The maximum number of connections.
268
+ *
269
+ * @default 100
270
+ */
271
+ maxConnections?: number;
272
+
273
+ /**
274
+ * The timeout of keep-alive.
275
+ *
276
+ * @default 30000
277
+ */
278
+ keepAliveTimeout?: number;
279
+
280
+ /**
281
+ * Whether to keep-alive.
282
+ *
283
+ * @default true
284
+ */
285
+ keepAlive?: boolean;
264
286
  }
265
287
 
266
288
  export interface IHttpClientNetworkOptions extends IHttpClientOptionsBase {
@@ -296,13 +318,13 @@ export function createLegacyHttpClient<TAPIs extends Shared.IObject>(opts: IHttp
296
318
  opts.https ? $Https.request : $Http.request,
297
319
  opts,
298
320
  opts.https ? new $Https.Agent({
299
- 'maxSockets': 0,
300
- 'keepAlive': true,
301
- 'keepAliveMsecs': DEFAULT_TIMEOUT
321
+ 'maxSockets': opts.maxConnections ?? DEFAULT_MAX_CONNECTIONS,
322
+ 'keepAlive': opts.keepAlive ?? true,
323
+ 'keepAliveMsecs': opts.keepAliveTimeout ?? DEFAULT_TIMEOUT
302
324
  }) : new $Http.Agent({
303
- 'maxSockets': 0,
304
- 'keepAlive': true,
305
- 'keepAliveMsecs': DEFAULT_TIMEOUT
325
+ 'maxSockets': opts.maxConnections ?? DEFAULT_MAX_CONNECTIONS,
326
+ 'keepAlive': opts.keepAlive ?? true,
327
+ 'keepAliveMsecs': opts.keepAliveTimeout ?? DEFAULT_TIMEOUT
306
328
  }),
307
329
  opts.retryOnConnReset,
308
330
  opts.apiNameWrapper,
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import type * as Listener from '../http-listener';
18
18
  import type * as Http from 'node:http';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as Http from 'node:http';
18
18
  import type * as Shared from '../../shared';
@@ -1,18 +1,19 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  export * from './LegacyHttp.Server';
18
18
  export * from './LegacyHttp.Transporter';
19
+ export * from './LegacyHttp.Client.Native';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as LwDFX from '@litert/lwdfx';
18
18
  import type * as dT from '../Transporter.decl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as LwDFX from '@litert/lwdfx';
18
18
  import type * as dT from '../Transporter.decl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as LwDFX from '@litert/lwdfx';
18
18
  import type * as dT from '../Transporter.decl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as LwDFX from '@litert/lwdfx';
18
18
  import type * as dT from '../Transporter.decl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as LwDFX from '@litert/lwdfx';
18
18
  import * as Shared from '../../shared';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as LwDFX from '@litert/lwdfx';
18
18
  import type * as dT from '../Transporter.decl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as LwDFX from '@litert/lwdfx';
18
18
  import type * as dT from '../Transporter.decl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as LwDFX from '@litert/lwdfx';
18
18