Help us shape the future of Go! Take the 2026 Go Developer Survey

httputils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 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