request

package
v0.0.0-...-e0f7dcb Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UseProxyAddress string = ""
	NoProxy         bool   = false
)

Functions

func Exists

func Exists(path string) bool

func Strval

func Strval(value interface{}) string

Types

type Request

type Request interface {
	Send(redirectCount int) ([]byte, error)
	Set(key string, value string)
	InitHeader()
	SetHeaders(headers string)
	Get302() (string, error)
}

func New

func New(uri string, method string, timeOut time.Duration, banRedirect bool) (Request, error)

Jump to

Keyboard shortcuts

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