mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
18 lines
279 B
Go
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")
|
|
}
|
|
}
|