httplogger

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package httplogger provides functionality to attach a logger to an http request's context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingTransport

type LoggingTransport struct {
	Base http.RoundTripper
}

LoggingTransport logs to the request's context. The output can be processed by jq to format it nicely.

func (*LoggingTransport) RoundTrip

func (s *LoggingTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip logs http requests and reponses while redacting sensistive information.

Jump to

Keyboard shortcuts

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