httpserver

This commit is contained in:
lushunming 2025-07-22 13:29:39 +08:00
parent 226f41d386
commit e18a721e44
4 changed files with 4 additions and 3 deletions

View File

@ -52,11 +52,12 @@ class AdvancedHttpServer(private val port: Int) {
// 解析请求行 // 解析请求行
val requestLine = reader.readLine() ?: "" val requestLine = reader.readLine() ?: ""
SpiderDebug.log("requestLine: $requestLine")
val (method, path, _) = parseRequestLine(requestLine) val (method, path, _) = parseRequestLine(requestLine)
// 解析路径和查询参数 // 解析路径和查询参数
val (basePath, queryParams) = parsePath(path) val (basePath, queryParams) = parsePath(path)
SpiderDebug.log("请求路径: $basePath, 查询参数: $queryParams")
// 读取请求头 // 读取请求头
val headers = mutableMapOf<String, String>() val headers = mutableMapOf<String, String>()

Binary file not shown.

View File

@ -1 +1 @@
70e0ff204c63fb77312eb360c1f2a32a a7ec699dbb3c9e127e1d1781660263f7

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;70e0ff204c63fb77312eb360c1f2a32a", "spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;a7ec699dbb3c9e127e1d1781660263f7",
"lives": [ "lives": [
{ {
"name": "电视直播", "name": "电视直播",