http

package
Version: v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJson

func GetJson(url string, data string, headers map[string]interface{}) (res []byte, err error)

GetJson 发起Get请求

func GetResponseArrayIndexBytes

func GetResponseArrayIndexBytes(data []byte, index int, keys ...string) (b []byte, err error)

GetResponseArrayIndexBytes 兼容多层 Key 读取某个

func GetResponseBytes

func GetResponseBytes(data []byte, keys ...string) (b []byte, err error)

GetResponseBytes 兼容多层 Key 读取

func PostJson

func PostJson(url string, data map[string]interface{}, headers map[string]interface{}) (res []byte, err error)

PostJson 发起POST请求

func PostXml

func PostXml(url string, data map[string]string, headers map[string]interface{}) (res []byte, err error)

PostXml 发起POST请求

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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