web

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: BSD-3-Clause Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTLSCert

func LoadTLSCert(path string) (string, error)

LoadTLSCert loads a PEM-encoded certificate from file and returns it as a base64-encoded string.

func NewTLSClient

func NewTLSClient(skipVerify bool, caCerts ...string) (*http.Client, error)

NewTLSClient creates a new http.Client configured for TLS. It uses the system certs by default if possible and appends all of the provided certs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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