httputil

package
v0.0.0-...-778c101 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: AGPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = NewClient(DefaultTransport)
View Source
var DefaultRetryCount = 10
View Source
var DefaultTransport = NewTransport()

Functions

func AllowRedirect

func AllowRedirect(req *http.Request, allow bool)

func CheckRedirect

func CheckRedirect(req *http.Request, via []*http.Request) error

func NewClient

func NewClient(transport *http.Transport) *http.Client

func NewTransport

func NewTransport() *http.Transport

func Retry

func Retry(body io.Seeker, do func() (*http.Response, error)) (rsp *http.Response, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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