https://github.com/scootpl/restreq
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.
https://github.com/scootpl/restreq
go golang http http-client microservices middleware rest-api
Last synced: about 1 year ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/scootpl/restreq
- Owner: scootpl
- License: mit
- Created: 2022-12-22T19:20:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-21T01:31:40.000Z (about 3 years ago)
- Last Synced: 2025-03-05T14:03:03.407Z (about 1 year ago)
- Topics: go, golang, http, http-client, microservices, middleware, rest-api
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# RestReq
[](https://pkg.go.dev/github.com/scootpl/restreq) [](https://goreportcard.com/report/github.com/scootpl/restreq)
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.
## Features
- Simple syntax
- Only stdlib (no external dependencies)
- JSON parsing
- Debug logging
## Quick Start
```go
import "github.com/scootpl/restreq"
resp, err := restreq.New("http://example.com").
AddHeader("X-TOKEN", authToken).
Post()
```
## Examples and Documentation
See [GoDoc](https://godoc.org/github.com/scootpl/restreq) for more details.