http

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(addr string) ([]byte, error)

func Post

func Post(addr string, postData []byte) ([]byte, error)

Types

type Http

type Http struct {
	// contains filtered or unexported fields
}

func NewHttp

func NewHttp(url string) *Http

func (*Http) Delete

func (req *Http) Delete() ([]byte, error)

func (*Http) Get

func (req *Http) Get() ([]byte, error)

func (*Http) Post

func (req *Http) Post(data []byte) ([]byte, error)

func (*Http) Put

func (req *Http) Put(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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