httpdefaults

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package httpdefaults provides default HTTP client settings for Chubo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatchTransport

func PatchTransport(transport *http.Transport) *http.Transport

PatchTransport updates *http.Transport with Chubo-specific settings.

Settings applied here only make sense when running in Chubo root filesystem.

func RootCAs

func RootCAs() *x509.CertPool

RootCAs provides a cached, but refreshed, list of root CAs.

If loading certificates fails for any reason, function returns nil.

func RootCAsTLSConfig

func RootCAsTLSConfig() *tls.Config

RootCAsTLSConfig provides a TLS configuration with the root CAs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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