Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 814 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 814 Bytes

RestReq

Go Reference Go Report Card

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

import "github.com/scootpl/restreq"

resp, err := restreq.New("http://example.com").
	AddHeader("X-TOKEN", authToken).
	Post()

Examples and Documentation

See GoDoc for more details.