httputils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpClient = &http.Client{
	Timeout: 180 * time.Second,
}

Functions

func DoGET

func DoGET(url string, headers map[string]string, out interface{}) error

func DoJSONRequest

func DoJSONRequest(method, url string, body io.Reader, headers map[string]string, expectStatus int, out interface{}) error

func DoPOST

func DoPOST(url string, data interface{}, headers map[string]string, expectStatus int, out interface{}) error

func DoRequest

func DoRequest(method, url string, body io.Reader, headers map[string]string) (*http.Response, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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