This commit is contained in:
gospider
2025-07-29 09:38:55 +08:00
parent 40526d9faa
commit 4c8f3b794c
33 changed files with 459 additions and 479 deletions

View File

@@ -8,7 +8,7 @@ import (
func TestProxy(t *testing.T) {
resp, err := requests.Get(nil, "https://httpbin.org/anything", requests.RequestOption{
ClientOption: requests.ClientOption{Proxy: ""}, //set proxy,ex:"http://127.0.0.1:8080","https://127.0.0.1:8080","socks5://127.0.0.1:8080"
Proxy: "", //set proxy,ex:"http://127.0.0.1:8080","https://127.0.0.1:8080","socks5://127.0.0.1:8080"
})
if err != nil {
t.Error(err)