httputil

package
v0.0.0-...-a68da76 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 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 = NewDefaultTransport()

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

Functions

func NewDefaultTransport

func NewDefaultTransport() *http.Transport

NewDefaultTransport returns a new default http.Transport with a 15 second dial and TLS handshake timeout and HTTP/2 support disabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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