ktor
This commit is contained in:
parent
94b5acd6db
commit
787b35c979
|
|
@ -85,7 +85,7 @@ dependencies {
|
|||
|
||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1"
|
||||
implementation 'io.ktor:ktor-server-core:2.3.13'
|
||||
implementation 'io.ktor:ktor-server-netty:2.3.13'
|
||||
implementation 'io.ktor:ktor-server-jetty:2.3.13'
|
||||
|
||||
implementation 'io.ktor:ktor-server-call-logging:2.3.13'
|
||||
implementation("org.slf4j:slf4j-android:1.7.36")
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@
|
|||
-dontwarn org.eclipse.jetty.npn.NextProtoNego$ServerProvider
|
||||
-dontwarn org.eclipse.jetty.npn.NextProtoNego
|
||||
-dontwarn reactor.blockhound.integration.BlockHoundIntegration
|
||||
|
||||
# Ktor Server
|
||||
|
||||
|
||||
|
|
@ -91,4 +92,13 @@
|
|||
}
|
||||
|
||||
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# Please add these rules to your existing keep rules in order to suppress warnings.
|
||||
# This is generated automatically by the Android Gradle plugin.
|
||||
-dontwarn java.lang.Module
|
||||
-dontwarn javax.naming.ldap.LdapName
|
||||
-dontwarn javax.naming.ldap.Rdn
|
||||
-dontwarn org.eclipse.jetty.alpn.ALPN$Provider
|
||||
-dontwarn org.eclipse.jetty.alpn.ALPN$ServerProvider
|
||||
-dontwarn org.eclipse.jetty.alpn.ALPN
|
||||
|
|
@ -11,7 +11,7 @@ import io.ktor.server.application.call
|
|||
import io.ktor.server.application.install
|
||||
|
||||
import io.ktor.server.engine.embeddedServer
|
||||
import io.ktor.server.netty.Netty
|
||||
import io.ktor.server.jetty.Jetty
|
||||
import io.ktor.server.plugins.callloging.CallLogging
|
||||
import io.ktor.server.response.respondBytesWriter
|
||||
import io.ktor.server.response.respondText
|
||||
|
|
@ -32,13 +32,14 @@ object KtorServer {
|
|||
private val infos = mutableMapOf<String, Array<Any>>()
|
||||
var ser: io.ktor.server.engine.ApplicationEngine? = null
|
||||
var port = 10010
|
||||
|
||||
//每个片1MB
|
||||
private val partSize = 1024 * 1024 * 1
|
||||
fun init() {
|
||||
|
||||
do {
|
||||
try {
|
||||
ser = embeddedServer(Netty, port) {
|
||||
ser = embeddedServer(Jetty, port) {
|
||||
install(CallLogging)
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
17225c9a50847a636efd8fc8d70090f3
|
||||
433aa9783b078958774623d1922795cd
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;17225c9a50847a636efd8fc8d70090f3",
|
||||
"spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;433aa9783b078958774623d1922795cd",
|
||||
"lives": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue