http

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 6 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

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

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

func Transport

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

Transport creates a new http.RoundTripper with insecureSkipVerify and optionally, additional CA certificates and/or HTTP basic authentication configured.

Types

This section is empty.

Jump to

Keyboard shortcuts

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