http

package
v0.0.20 Latest Latest
Warning

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

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

Documentation

Overview

Package http contains helpers for configuring and creating HTTP clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TLSConfig added in v0.0.19

func TLSConfig(caPems [][]byte, insecureSkipVerify bool, log logr.Logger) (*tls.Config, error)

TLSConfig creates a new tls.Config. If the system cert pool cannot be loaded, an empty pool is used.

func Transport added in v0.0.19

func Transport(caPems [][]byte, insecureSkipVerify bool, log logr.Logger) (*http.Transport, error)

Transport creates a new http.Transport with insecureSkipVerify and optionally, additional CA certificates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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