http

package
v0.0.0-...-3590adc Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(url string, contentType string, headers map[string]string, insecureSkipVerify bool) (content string)

func Get

func Get(url string) (response string)

发送GET请求 url:请求地址 response:请求返回的内容

func Post

func Post(url string, data interface{}, contentType string, headers map[string]string, insecureSkipVerify bool) (content string, errRsp error)

发送POST请求 url:请求地址,data:POST请求提交的数据,contentType:请求体格式,如:application/json content:请求放回的内容

func Put

func Put(url string, data interface{}, contentType string, headers map[string]string, insecureSkipVerify bool) (content string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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