RestReq is a wrapper around standard Go net/http client. In a simple call you can use json encoding, add headers and parse result. This should be sufficient in most use cases.
- Simple syntax
- Only stdlib (no external dependencies)
- JSON parsing
- Debug logging
import "github.com/scootpl/restreq"
resp, err := restreq.New("http://example.com").
AddHeader("X-TOKEN", authToken).
Post()
See GoDoc for more details.