http

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 4 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 TransportWithCA

func TransportWithCA(caPems [][]byte, insecureSkipVerify bool) (*http.Transport, error)

TransportWithCA creates a new http.Transport with the provided CA certificates and insecureSkipVerify. If loading the system cert pool fails, it must be provided with at least one alternative cert to use. If no alternative certs are provided, the system cert pool must load.

Types

This section is empty.

Jump to

Keyboard shortcuts

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