lhttp

package
v0.0.0-...-96089b2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TypeJSON = "application/json"
	TypePNG  = "image/png"
)

Variables

This section is empty.

Functions

func Do

func Do(req *http.Request) (resp *http.Response, err error)

func ExpectContent

func ExpectContent(resp *http.Response, expect string) (err error)

func ExpectSuccess

func ExpectSuccess(resp *http.Response) (err error)

func Get

func Get(url string) (*http.Request, error)

func IsNoContent

func IsNoContent(resp *http.Response) bool

func IsSuccess

func IsSuccess(resp *http.Response) bool

func NewError

func NewError(resp *http.Response, err string) error

func Request

func Request(method, url string, body io.Reader) (req *http.Request, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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