httputils

package
v0.0.0-...-e70b4cf Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 默认超时时间,单位:s
	DEFAULT_TIMEOUT = 5
	MAX_RETRY_CNT   = 3
)

Variables

This section is empty.

Functions

func GET

func GET(customClient *http.Client, url string) (respData []byte, err error)

func POST

func POST(customClient *http.Client, url string, reqObj interface{}) (respData []byte, 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