httputil

package
v0.0.0-...-722fbe6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefHttpClient *http.Client
View Source
var ErrOverflow = errors.New("OverflowMax")

Functions

func GetBody

func GetBody(resp *http.Response) (body []byte, err error)

GetBody 识别响应Body的编码,读取body数据

func NewHttpClient

func NewHttpClient(dialTimeout time.Duration) *http.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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