request

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PostJson = "application/json"

json格式

View Source
const PostXWwwForm = "application/x-www-form-urlencoded"

form-data格式

Variables

This section is empty.

Functions

func ResponseBody

func ResponseBody(resp *http.Response) []byte

处理结果 @param resp 响应对象

func SendSimpleGet

func SendSimpleGet(url string) string

发送GET请求 @param url 请求参数

func SendSimplePost

func SendSimplePost(url string, contentType string, params url.Values) string

发送POST请求 @param url 请求参数 @param contentType post请求方式 @param params 请求参数

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