httpclient

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransportMaxIdleConns        = 100
	TransportMaxConnsPerHost     = 100
	TransportMaxIdleConnsPerHost = 80
)

Variables

This section is empty.

Functions

func New

func New(options ...func(args *httpClientConf)) *http.Client

func WithFollowRedirects

func WithFollowRedirects() func(args *httpClientConf)

func WithIdleConnTimeout

func WithIdleConnTimeout(value time.Duration) func(args *httpClientConf)

WithIdleConnTimeout specifies the maximum amount of time an idle (keep-alive) connection will remain idle before closing itself. To set no limit, use zero.

func WithInsecureSkipVerify

func WithInsecureSkipVerify() func(args *httpClientConf)

WithInsecureSkipVerify disables certificate verification. Please note that this is intended for internal network usage due to possible security implications.

func WithTimeout

func WithTimeout(value time.Duration) func(args *httpClientConf)

WithTimeout specifies request timeout (incl. connecting, redirects, body reading).

Types

This section is empty.

Jump to

Keyboard shortcuts

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