repositorypackage
0.0.0-20241218024732-c29e8540a647
Repository: https://github.com/go-comm/xhttp.git
Documentation: pkg.go.dev
# README
xhttp
go get github.com/go-comm/xhttp
xhttp.Get(context.TODO(), "http://example.com").Do().String()
type User struct {
Username string
Password string
}
var u = &User{Username:"user"}
xhttp.Post(context.TODO(), "http://example.com", u).Do().String()
Gzip
xhttp.DefaultClient.Gzip(true).Post(context.TODO(), "http://example.com").Do().String()