kos/pkg/request/client_test.go

15 lines
204 B
Go
Raw Normal View History

2023-06-06 18:14:00 +08:00
package request
import (
"bytes"
"testing"
)
func TestClient_execute(t *testing.T) {
c := New()
buf := []byte("Hello")
c.Post("https://ip.nspix.com/geo").
SetBody(bytes.NewReader(buf)).
Do()
}