utilhttp

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClient

func NewHttpClient(options ...Option) *http.Client

Types

type HttpClientT

type HttpClientT struct {
	// contains filtered or unexported fields
}

type Option

type Option func(c *HttpClientT)

func MaxConnsPerHost

func MaxConnsPerHost(maxConnsPerHost int) Option

func MaxIdleConns

func MaxIdleConns(maxIdleConns int) Option

func MaxIdleConnsPerHost

func MaxIdleConnsPerHost(maxIdleConnsPerHost int) Option

func ReqTimeout

func ReqTimeout(reqTimeout time.Duration) Option

Jump to

Keyboard shortcuts

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