webutil

package
v0.0.0-...-c6ea6ab Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: LGPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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