httputils

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DEFAULT_TIMEOUT 默认超时时间,单位:s
	DEFAULT_TIMEOUT = 5
	// MAX_RETRY_CNT 最大重试次数
	MAX_RETRY_CNT = 3
)

Variables

This section is empty.

Functions

func GET

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

GET http的GET方法 @param customClient @param url @return respData @return err

func POST

func POST(customClient *http.Client, url string, reqObj interface{}) (respData []byte, err error)

POST http的POST方法 @param customClient @param url @param reqObj @return respData @return err

Types

This section is empty.

Jump to

Keyboard shortcuts

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