|
@@ -1,8 +1,8 @@
|
|
/*
|
|
/*
|
|
- * Copyright 2020 Mamoe Technologies and contributors.
|
|
|
|
|
|
+ * Copyright 2019-2020 Mamoe Technologies and contributors.
|
|
*
|
|
*
|
|
- * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
|
|
|
|
- * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
|
|
|
|
|
|
+ * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 with Mamoe Exceptions 许可证的约束, 可以在以下链接找到该许可证.
|
|
|
|
+ * Use of this source code is governed by the GNU AFFERO GENERAL PUBLIC LICENSE version 3 with Mamoe Exceptions license that can be found via the following link.
|
|
*
|
|
*
|
|
* https://github.com/mamoe/mirai/blob/master/LICENSE
|
|
* https://github.com/mamoe/mirai/blob/master/LICENSE
|
|
*/
|
|
*/
|
|
@@ -11,14 +11,11 @@
|
|
|
|
|
|
package net.mamoe.mirai.qqandroid.network.highway
|
|
package net.mamoe.mirai.qqandroid.network.highway
|
|
|
|
|
|
-import io.ktor.client.HttpClient
|
|
|
|
-import io.ktor.client.request.post
|
|
|
|
-import io.ktor.http.ContentType
|
|
|
|
-import io.ktor.http.HttpStatusCode
|
|
|
|
-import io.ktor.http.URLProtocol
|
|
|
|
-import io.ktor.http.content.OutgoingContent
|
|
|
|
-import io.ktor.http.userAgent
|
|
|
|
-import io.ktor.utils.io.ByteWriteChannel
|
|
|
|
|
|
+import io.ktor.client.*
|
|
|
|
+import io.ktor.client.request.*
|
|
|
|
+import io.ktor.http.*
|
|
|
|
+import io.ktor.http.content.*
|
|
|
|
+import io.ktor.utils.io.*
|
|
import kotlinx.coroutines.InternalCoroutinesApi
|
|
import kotlinx.coroutines.InternalCoroutinesApi
|
|
import kotlinx.coroutines.delay
|
|
import kotlinx.coroutines.delay
|
|
import kotlinx.coroutines.flow.collect
|
|
import kotlinx.coroutines.flow.collect
|