httpserver
This commit is contained in:
parent
8769c591bb
commit
41f91e1de2
|
|
@ -88,7 +88,7 @@ dependencies {
|
|||
// https://mvnrepository.com/artifact/com.sun.net.httpserver/http
|
||||
|
||||
// implementation("com.sun.net.httpserver:http:20070405")
|
||||
implementation("com.hibegin:simplewebserver:0.3.175")
|
||||
implementation("com.hibegin:simplewebserver:0.1.15")
|
||||
|
||||
//implementation 'wang.harlon.quickjs:wrapper-java:1.0.0'
|
||||
// implementation(ext: 'aar', name: 'quickjs', group: 'fongmi', version: 'release')
|
||||
|
|
|
|||
|
|
@ -67,11 +67,11 @@
|
|||
-assumenosideeffects class com.hibegin.common.util.LoggerUtil {
|
||||
getLogger(...);
|
||||
}
|
||||
-assumenosideeffects class * {
|
||||
private static final java.util.logging.Logger LOGGER ;
|
||||
}
|
||||
# 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.management.ManagementFactory
|
||||
-dontwarn java.lang.management.RuntimeMXBean
|
||||
|
||||
-keep class androidx.core.view.accessibility.** { *; }
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -113,8 +113,8 @@ object ProxyServer {
|
|||
response.addHeader("Content-Type", info["Content-Type"]?.get(0))
|
||||
val statusCode = 206
|
||||
val sb = StringBuilder();
|
||||
sb.append(request.httpVersion.value).append(" ").append(statusCode).append(" ")
|
||||
.append(StatusCodeUtil.getStatusCodeDesc(statusCode)).append("\r\n")
|
||||
sb.append("HTTP/1.1 ").append(" ").append(statusCode).append(" ")
|
||||
.append(StatusCodeUtil.getStatusCode(statusCode)).append("\r\n")
|
||||
for ((key, value) in response.header) {
|
||||
sb.append(key).append(": ").append(value).append("\r\n")
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
0917ec58862e867cdcc8a7fc5a878ad6
|
||||
dcb87c1c55be75c49ea8ffb58900ddda
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;0917ec58862e867cdcc8a7fc5a878ad6",
|
||||
"spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;dcb87c1c55be75c49ea8ffb58900ddda",
|
||||
"lives": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue