http

package
v0.0.0-...-1272ae6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

http client 使用github.com/imroc/req库 返回string,如果需要到struct,需要自己反序列化

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpGet

func HttpGet(url string) (ret string, err error)

HttpGet http get

func HttpPost

func HttpPost(url string, param req.Param) (ret string, err error)

HttpPost http post

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.

Jump to

Keyboard shortcuts

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