httpdefaults

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MPL-2.0 Imports: 10 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package httpdefaults provides default HTTP client settings for Talos.

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 Talos-specific settings.

Settings applied here only make sense when running in Talos 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 added in v1.11.3

func RootCAsTLSConfig() *tls.Config

RootCAsTLSConfig provides a TLS configuration with the root CAs.

func UserAgent added in v1.13.0

func UserAgent() string

UserAgent is the default User-Agent header value for HTTP requests made by Talos.

Types

This section is empty.

Jump to

Keyboard shortcuts

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