github.com/gospider007/requests@v0.0.0-20240506025355-c73d46169a23/test/response/useProxy_test.go (about) 1 package main 2 3 import ( 4 "testing" 5 6 "github.com/gospider007/requests" 7 ) 8 9 func TestUseProxy(t *testing.T) { 10 resp, err := requests.Get(nil, "https://httpbin.org/anything") 11 if err != nil { 12 t.Error(err) 13 } 14 if resp.Proxy() != "" { 15 t.Error("proxy error") 16 } 17 }