httpdbg

package
v0.0.0-...-1873eae Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpRequests

func DumpRequests(ctx context.Context, client *http.Client, writer io.Writer)

DumpRequests wraps the underlying http.Client transport to logs all requests/responses to the log.

func DumpTraces

func DumpTraces(ctx context.Context, client *http.Client)

DumpTraces attaches HTTP events tracer to the client's transport.

func NewDebugClientTrace

func NewDebugClientTrace(ctx context.Context) *httptrace.ClientTrace

NewDebugClientTrace returns a Go http trace client predefined to write DNS and connection information to the log. This is used via the --http-trace flag on push and pull operations in ctr.

func WithClientTrace

func WithClientTrace(ctx context.Context) context.Context

WithClientTrace wraps context with a httptrace.ClientTrace for debugging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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