Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingHTTPClient ¶
type LoggingHTTPClient struct {
// contains filtered or unexported fields
}
LoggingHTTPClient wraps an HTTP client to add centralized request/response logging.
func NewLoggingHTTPClient ¶
func NewLoggingHTTPClient(logger *slog.Logger) *LoggingHTTPClient
NewLoggingHTTPClient creates a new logging HTTP client
func NewLoggingHTTPClientWithClient ¶
func NewLoggingHTTPClientWithClient(client *http.Client, logger *slog.Logger) *LoggingHTTPClient
NewLoggingHTTPClientWithClient wraps an existing HTTP client
Click to show internal directories.
Click to hide internal directories.