provider

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxReadBodySize = int64(2 << 20) // 2M

Functions

func GetHTTPResponse

func GetHTTPResponse(resp *http.Response, url string, err error) ([]byte, error)

GetHTTPResponse 处理HTTP结果,返回byte

func UnmarshalHTTPResponse

func UnmarshalHTTPResponse(resp *http.Response, url string, err error, result interface{}) error

UnmarshalHTTPResponse 处理HTTP结果,返回序列化的json

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