Files
requests/test/response/useProxy_test.go
gospider 80622b41ef sync
2024-11-20 09:45:53 +08:00

18 lines
279 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.Proxy() != nil {
t.Error("proxy error")
}
}