debug

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport struct {
	http.RoundTripper
	Output io.Writer
	// Dump controls whether to dump HTTP request and responses.
	Dump bool
	// Trace enables usage of net/http/httptrace.
	Trace bool
}

Transport implements http.RoundTripper and can be used to wrap other HTTP transports for debugging, normally http.DefaultTransport.

func (*Transport) RoundTrip

func (t *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