httputil

package
v0.0.0-...-fffdf24 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrHTTP404NotFound is the HTTP error: 404 Not Found
	ErrHTTP404NotFound = errors.New("404 Not Found")
)

Functions

func HTTPGet

func HTTPGet(ctx context.Context, url string) (rc io.ReadCloser, er error)

HTTPGet gets the URL

func HTTPGetJSON

func HTTPGetJSON(ctx context.Context, url string) (obj interface{}, er error)

HTTPGetJSON gets the URL result as a JSON object

func UnmarshalHTTPGetJSON

func UnmarshalHTTPGetJSON(ctx context.Context, url string, v interface{}) error

UnmarshalHTTPGetJSON unmarshals the URL result as a JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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