httpserver
This commit is contained in:
parent
226f41d386
commit
e18a721e44
|
|
@ -52,11 +52,12 @@ class AdvancedHttpServer(private val port: Int) {
|
|||
|
||||
// 解析请求行
|
||||
val requestLine = reader.readLine() ?: ""
|
||||
SpiderDebug.log("requestLine: $requestLine")
|
||||
|
||||
val (method, path, _) = parseRequestLine(requestLine)
|
||||
|
||||
// 解析路径和查询参数
|
||||
val (basePath, queryParams) = parsePath(path)
|
||||
SpiderDebug.log("请求路径: $basePath, 查询参数: $queryParams")
|
||||
|
||||
// 读取请求头
|
||||
val headers = mutableMapOf<String, String>()
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
70e0ff204c63fb77312eb360c1f2a32a
|
||||
a7ec699dbb3c9e127e1d1781660263f7
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue