Files
requests/test/response/useProxy_test.go
gospider 1e2ba7c4a6 sync
2024-12-04 16:29:02 +08:00

19 lines
282 B
Go

package main
import (
"testing"
"github.com/gospider007/requests"
)
func TestUseProxy(t *testing.T) {
resp, err := requests.Get(nil, "https://httpbin.org/anything")
if err != nil {
t.Error(err)
}
if resp.Proxys() != nil {
t.Error("proxy error")
}
}