httpsclient

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpsClient = &http.Client{
	Timeout: 10 * time.Minute,
	Transport: &http.Transport{
		TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
	},
}

Functions

func Https

func Https(method, url string, body io.Reader, funcHeader func(header http.Header), funcResponse func(response *http.Response) error) error

func JSON

func JSON(url string, data interface{}, result interface{}, funcHeader func(header http.Header)) error

func PostForm

func PostForm(url string, data url.Values, funcHeader func(header http.Header), funcResponse func(response *http.Response) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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