webutil

package
v1.0.0-...-4f7f1ef Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorPing = errutil.NewFactory("ping %q return unexpect status code %q")
)

errors

Functions

func NewResponseError

func NewResponseError(resp *http.Response) error

NewResponseError consume response body and create error object if status code is abnormal

func PingIgnoreCertificate

func PingIgnoreCertificate(surl string) (err error)

PingIgnoreCertificate ping url but ignore https certification check

func ReadResponse

func ReadResponse(resp *http.Response) (string, error)

ReadResponse read http response body and close resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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