restcli

package
v0.0.0-...-14a4516 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Bytes      []byte
	StatusCode int
	Response   *http.Response
}

func GET

func GET(
	url string,
	timeout time.Duration,
	header map[string][]string,
	body []byte,
) (*Response, error)

func Method

func Method(
	method, url string,
	timeout time.Duration,
	header map[string][]string,
	body []byte,
) (*Response, error)

func POST

func POST(
	url string,
	timeout time.Duration,
	header map[string][]string,
	body []byte,
) (*Response, error)

func PUT

func PUT(
	url string,
	timeout time.Duration,
	header map[string][]string,
	body []byte,
) (*Response, error)

func (*Response) JsonUnmarshal

func (res *Response) JsonUnmarshal(v interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL