http_util

package
v0.0.0-...-87345f3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BlankHeader   = map[string]string{}
	BlankGetParam = map[string]string{}
	BlankBody     = []byte{}
)

Functions

func Delete

func Delete(
	headers map[string]string,
	remoteUrl string,
	params map[string]string,
	bodyByte []byte,
	respStructPointer interface{},
) (statusCode int, err error)

Delete Warning: this assume resp is json data

func Get

func Get(
	headers map[string]string,
	remoteUrl string, params map[string]string, respStructPointer interface{},
) (int, error)

Get Warning: this assume resp is json data

func Patch

func Patch(
	headers map[string]string,
	remoteUrl string,
	params map[string]string,
	bodyByte []byte,
	respStructPointer interface{},
) (statusCode int, err error)

Patch Warning: this assume resp is json data

func Post

func Post(
	headers map[string]string,
	remoteUrl string,
	params map[string]string,
	bodyByte []byte,
	respIns interface{},
) (int, error)

Post Warning: this assume req/resp is all json data

Types

This section is empty.

Jump to

Keyboard shortcuts

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