httpclient

package
v0.19.4-hotfix Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure added in v0.5.0

func Configure()

Configures the http client transport

func ConfigureTransport added in v0.12.0

func ConfigureTransport(transport *http.Transport)

func SetHTTPClientGlobalSettings added in v0.12.0

func SetHTTPClientGlobalSettings(settings *Settings)

Types

type Settings

type Settings struct {
	Timeout               time.Duration `` /* 167-byte string literal not displayed */
	TLSHandshakeTimeout   time.Duration `mapstructure:"tls_handshake_timeout"`
	IdleConnTimeout       time.Duration `mapstructure:"idle_conn_timeout"`
	ResponseHeaderTimeout time.Duration `mapstructure:"response_header_timeout"`
	DialTimeout           time.Duration `mapstructure:"dial_timeout"`
	SkipSSLValidation     bool          `mapstructure:"skip_ssl_validation" description:"whether to skip ssl verification when making calls to external services"`
}

func DefaultSettings

func DefaultSettings() *Settings

DefaultSettings return the default values for httpclient settings

func GetHttpClientGlobalSettings added in v0.12.0

func GetHttpClientGlobalSettings() *Settings

func (*Settings) Validate

func (s *Settings) Validate() error

Validate validates the httpclient settings

Jump to

Keyboard shortcuts

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