netutils

package
v0.0.5-alpha02 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPClient

func GetHTTPClient(httpCtx HTTPContext, existingClient *http.Client) *http.Client

func GetRoundTripper

func GetRoundTripper(httpCtx HTTPContext, existingTransport http.RoundTripper) http.RoundTripper

Types

type HTTPContext

type HTTPContext interface {
	GetCABundle() string
	GetHTTPProxyHost() string
	GetHTTPProxyUser() string
	GetHTTPProxyPassword() string
	GetHTTPProxyPort() int
	GetHTTPProxyScheme() string
	GetAPIRequestTimeout() int
	GetTLSAllowInsecure() bool
}

Jump to

Keyboard shortcuts

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