httpclient

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(opts ...func(*http.Client)) (client *http.Client, err error)

Build builds a client session with our default parameters

func DefaultTransport added in v0.5.3

func DefaultTransport() *http.Transport

DefaultTransport sets an HTTP Transport

func SecureTLS added in v0.5.3

func SecureTLS(c *http.Client, rootCAs *x509.CertPool)

SecureTLS disables InsecureSkipVerify and adds a cert pool to an HTTP client's TLS config

func SecureTLSOption added in v0.5.3

func SecureTLSOption(rootCAs *x509.CertPool) func(*http.Client)

SecureTLSOption disables InsecureSkipVerify and adds a cert pool to an HTTP client's TLS config

func StandardizeProcessorName

func StandardizeProcessorName(name string) string

StandardizeProcessorName makes the processor name standard across vendors

Types

This section is empty.

Jump to

Keyboard shortcuts

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