HttpUtils

package
v0.0.0-...-39147ba Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2016 License: BSD-2-Clause Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GETRequest

func GETRequest(url string, args url.Values) (resp *http.Request, err error)

func Json

func Json(method string, url string, args url.Values, unmarshalTo interface{}) error

func JsonCheckError

func JsonCheckError(method string, url string, args url.Values, checker ErrorChecker, unmarshalTo interface{}) error

func POSTRequest

func POSTRequest(url string, args url.Values) (resp *http.Request, err error)

func ReadResponse

func ReadResponse(resp *http.Response) ([]byte, error)

Types

type ErrorChecker

type ErrorChecker func(bs []byte) error

Jump to

Keyboard shortcuts

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