http

package
v0.0.0-...-a7868f3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggingRoundTripper

func NewLoggingRoundTripper(rt http.RoundTripper) http.RoundTripper

NewLoggingRoundTripper creates a new logging roundtripper

Types

type LoggingRoundTripper

type LoggingRoundTripper struct {
	Next http.RoundTripper
}

LoggingRoundTripper logs a request-response

func (LoggingRoundTripper) RoundTrip

func (l LoggingRoundTripper) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip logs a request-response

Jump to

Keyboard shortcuts

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