http

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 6 Imported by: 0

README

go-http

Package http provides HTTP client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

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

func Get

func Get(url string) *Response
func Head(url string) *Response

func Post

func Post(url, contentType string, body io.Reader) *Response

func PostForm

func PostForm(url string, data url.Values) *Response

func PostJson

func PostJson(url string, data map[string]interface{}) *Response

func (*Response) Err

func (r *Response) Err() error

func (*Response) JsonUnmarshal

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

func (*Response) Response

func (r *Response) Response() *http.Response

func (*Response) Result

func (r *Response) Result() ([]byte, error)

func (*Response) String

func (r *Response) String() string

func (*Response) Val

func (r *Response) Val() []byte

Jump to

Keyboard shortcuts

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