call

package
v0.0.0-...-f77737d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpGet

func HttpGet(urlStr string, queryList map[string]string) (response []byte, err error)

func HttpGetFake

func HttpGetFake(urlStr string, queryList map[string]string) (response []byte, err error)

func HttpGetRequestUrl

func HttpGetRequestUrl(urlStr string) (string, error)

func HttpGetWithHeader

func HttpGetWithHeader(addr string, queryList map[string]string, headers map[string]string) (response []byte, err error)

func HttpPost

func HttpPost(urlStr string, formList map[string]string) (response []byte, err error)

func HttpPostFile

func HttpPostFile(urlStr string, path string) (response []byte, err error)

func HttpPostForm

func HttpPostForm(urlStr string)

POST请求 -- 使用http.PostForm()方法

func HttpPostJson

func HttpPostJson(urlStr string, formList map[string]interface{}) (response []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