http

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextDialer

type ContextDialer interface {
	DialContext(ctx context.Context, network string, addr string) (net.Conn, error)
	Close() error
}

type Option

type Option func(*options)

func WithInClusterDialer

func WithInClusterDialer(inClusterDialer ContextDialer) Option

func WithInsecureSkipVerify

func WithInsecureSkipVerify(insecureSkipVerify bool) Option

func WithOpenShiftServiceCA added in v0.38.1

func WithOpenShiftServiceCA() Option

WithOpenShiftServiceCA enables trust to OpenShift's service CA for internal image registry

func WithSelectCA

func WithSelectCA(selectCA func(ctx context.Context, serverName string) (*x509.Certificate, error)) Option

type RoundTripCloser

type RoundTripCloser interface {
	http.RoundTripper
	io.Closer
}

func NewRoundTripper

func NewRoundTripper(opts ...Option) RoundTripCloser

NewRoundTripper returns new closable RoundTripper that first tries to dial connection in standard way, if the dial operation fails due to hostname resolution the RoundTripper tries to dial from in cluster pod.

This is useful for accessing cluster internal services (pushing a CloudEvent into Knative broker).

Jump to

Keyboard shortcuts

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