httputil

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnauthenticated = errors.New("unauthenticated")

ErrUnauthenticated indicates the user needs to authenticate.

Functions

func Fetch

func Fetch(ctx context.Context, tlsConfig *tls.Config, req *http.Request) ([]byte, error)

Fetch fetches the http request.

func NewLoggingRoundTripper

func NewLoggingRoundTripper(logger zerolog.Logger, base http.RoundTripper, customize ...func(event *zerolog.Event) *zerolog.Event) http.RoundTripper

NewLoggingRoundTripper creates a http.RoundTripper that will log requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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