http

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 added in v0.0.19

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 added in v0.0.19

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