http

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggingRoundTripper

func NewLoggingRoundTripper(transport http.RoundTripper, hclogLogger hclog.Logger) http.RoundTripper

NewLoggingRoundTripper creates a new logging round tripper. This complements Scaleway's own logging by focusing on timing, X-Request-Id tracking, and structured logging that aids in debugging performance issues.

Types

type LoggingRoundTripper

type LoggingRoundTripper struct {
	// contains filtered or unexported fields
}

LoggingRoundTripper wraps an http.RoundTripper to log request/response metadata.

func (*LoggingRoundTripper) RoundTrip

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

RoundTrip implements http.RoundTripper.

Jump to

Keyboard shortcuts

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