web

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTLSCert added in v1.1.0

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(certs ...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