mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-14 12:23:43 +00:00
BitTorrent HTTP、UDP tracker impl(50%)
This commit is contained in:
1 parent
808035094c
commit
41ff983b73
16 files changed
+600
-25
No files matched your search
@@ -2,11 +2,11 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gopeed/down"
|
||||
"gopeed/down/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
request := &down.Request{
|
||||
request := &http.Request{
|
||||
Method: "get",
|
||||
URL: "http://github.com/proxyee-down-org/proxyee-down/releases/download/3.4/proxyee-down-main.jar",
|
||||
Header: map[string]string{
|
||||
@@ -18,7 +18,7 @@ func main() {
|
||||
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
|
||||
},
|
||||
}
|
||||
got, _ := down.Resolve(request)
|
||||
got, _ := http.Resolve(request)
|
||||
fmt.Println(got)
|
||||
// webview.Open("Minimal webview example", "https://www.baidu.com", 800, 600, true)
|
||||
}
|
||||
Reference in new issue
Block a user