Help us shape the future of Go! Take the 2026 Go Developer Survey

http

package
v0.19.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertFromFilePair added in v0.16.0

func CertFromFilePair(certFile, keyFile string) (*tls.Certificate, error)

func CertPoolFromFile added in v0.16.0

func CertPoolFromFile(filename string) (*x509.CertPool, error)

func NewClientTLS added in v0.16.0

func NewClientTLS(certFile, keyFile, caFile string, insecureSkipTLSverify bool) (*tls.Config, error)

func NewHttpClient

func NewHttpClient() *http.Client

Types

type HeaderAdder

type HeaderAdder struct {
	Rt http.RoundTripper
}

func (*HeaderAdder) RoundTrip

func (h *HeaderAdder) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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