httputil

package
v0.0.0-...-277eb20 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Get func(url string) ([]byte, error)

Get takes a URL and returns the contents as bytes

View Source
var GetDirect = httpGet
View Source
var GetWithProgress func(url string, progress progress.Reporter) ([]byte, error)

GetWithProgress takes a URL and returns the contents as bytes, it takes an optional second arg which will spawn a progressbar

Functions

func SetMocking

func SetMocking(useMocking bool)

SetMocking sets the correct Get methods for testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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