client

package
v0.0.0-...-349c95e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const UserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
	ErrBadData  = errors.New("bad data")
	ErrNoData   = errors.New("no data")
)

Functions

func Do

func Do(ctx context.Context, args Args) (*http.Response, error)

func SetProxy

func SetProxy(client *http.Client)

Types

type Args

type Args struct {
	Proxy    bool
	Method   string
	Endpoint *url.URL
	Headers  map[string]string
	Body     io.Reader
}

Jump to

Keyboard shortcuts

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