http

package
v0.0.0-...-59da782 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const HttpReqTimeout = 20 * time.Second

Variables

This section is empty.

Functions

func HTTPPostForm

func HTTPPostForm(reqUrl string, headers map[string]string, payload io.Reader) ([]byte, error)

func HTTPPostJSON

func HTTPPostJSON(reqUrl string, headers map[string]string, payload io.Reader) ([]byte, error)

HTTPPostJSON with json []byte

func HTTPRequest

func HTTPRequest(method string, reqUrl string, headers map[string]string, payload io.Reader) ([]byte, error)

func HttpGet

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

func ParseInterface

func ParseInterface(orign interface{}, ty string) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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