httputil

package
v0.0.0-...-6b85da6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = time.Second * 15

Variables

View Source
var DefaultClient = &http.Client{
	Transport: DefaultTransport,
}

DefaultClient is a http.Client using the DefaultTransport.

View Source
var DefaultTransport = &http.Transport{
	Dial:                (&net.Dialer{Timeout: DefaultTimeout}).Dial,
	TLSHandshakeTimeout: DefaultTimeout,
	ForceAttemptHTTP2:   false,
}

DeafultTransport is a http.Transport with a 15 second dial and TLS handshake timeout and HTTP/2 support disabled.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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