Back to godoc.org

Package httpinner

v1.4.1
Latest Go to latest

The latest major version is .

Published: Jan 15, 2020 | License: MIT | Module: git.meizhu365.com/pub/qing

Index

func CheckInnerSign

func CheckInnerSign(requestUri, secretKey, sign string) error

用于inner类接口安全验证

func Get

func Get(url string, headers map[string]string) ([]byte, error)

GET请求构造

func InnerGet

func InnerGet(url string, headers map[string]string, rtn interface{}) error

内部不带签名的GET请求构造

func InnerPost

func InnerPost(url string, headers map[string]string, values url.Values, rtn interface{}) error

内部不带签名的POST请求构造

func InnerSignGet

func InnerSignGet(url string, headers map[string]string, rtn interface{}, from string, secretKey string) error

内部带签名的GET请求构造

func InnerSignPost

func InnerSignPost(url string, headers map[string]string, values url.Values, rtn interface{}, from string, secretKey string) error

内部带签名的POST请求构造

func MakeMd5Sign

func MakeMd5Sign(params map[string]string, secretKey string) string

func Post

func Post(url string, headers map[string]string, data url.Values) ([]byte, error)

POST请求构造

func PostJson

func PostJson(url string, headers map[string]string, data []byte) ([]byte, error)

POST json参数

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier