httpclient

package
v0.0.0-...-12a582f Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTimeout sets a sensible timeout
	DefaultTimeout = 10 * time.Second

	// DefaultKeepAlive set a sensible keepalive value
	DefaultKeepAlive = 10 * time.Second

	// IdleTimeout sets a sensible IdleTimeout
	IdleTimeout = 90 * time.Second

	// MaxIdleConnections sets sensible max idle connections
	MaxIdleConnections = 100
)

Variables

This section is empty.

Functions

func New

func New() *http.Client

New Returns a new http client with sensible defaults to the stdlib but which does not share global client configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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