Skip to content

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.

License

Notifications You must be signed in to change notification settings

scootpl/restreq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Languages