httper

package
v0.4.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, head map[string]string) (response string)

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

func OasisGet

func OasisGet(url string) (response string)

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

func PersonGet added in v0.3.1

func PersonGet(url string) (response string)

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

func Post

func Post(url string, data []byte, contentType string, head map[string]string) (content string)

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

func ZeroTierGet

func ZeroTierGet(url string, head map[string]string) (content string, code int)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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