network

package
v1.231122.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWithHeader

func GetWithHeader() jet.Func

func HttpGet

func HttpGet(url string) ([]byte, error)

发送GET请求

func HttpGetWidthHeader

func HttpGetWidthHeader(url string, headerMap map[string]string) ([]byte, error)

发送GET请求

func HttpPostJson

func HttpPostJson(url string, body interface{}) ([]byte, error)

发送POST请求(JSON)

func HttpPostMap

func HttpPostMap(urlStr string, contentType string, body map[string]string) ([]byte, error)

func HttpPostWithHeader

func HttpPostWithHeader(url string, body string, headerMap map[string]string) (*http.Response, error)

发送Post请求

func HttpPostXml

func HttpPostXml(url string, xmlBody string) ([]byte, error)

发送POST请求(XML)

func PostJson

func PostJson() jet.Func

func PostWithHeader

func PostWithHeader() jet.Func

Types

This section is empty.

Jump to

Keyboard shortcuts

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