debug

package
v0.0.0-...-6605a81 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(fn ...OptionFn) http.RoundTripper

New returns a RoundTripper that dumps the request/response pair to disk to the "where" directory It needs to be used as a base transport if used to debug the headers produced by the OAuth2 or HTTP-Signatures authorization transports.

Types

type OptionFn

type OptionFn func(transport *Transport) error

func WithPath

func WithPath(where string) OptionFn

func WithTransport

func WithTransport(tr http.RoundTripper) OptionFn

type Transport

type Transport struct {
	Base http.RoundTripper
	// contains filtered or unexported fields
}

func (Transport) RoundTrip

func (d Transport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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