Documentation
¶
Overview ¶
Package httpslog implements structured logging for HTTP clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeLogRoundTripDone ¶
func MaybeLogRoundTripDone( logger *slog.Logger, localAddr netip.AddrPort, protocol string, remoteAddr netip.AddrPort, req *http.Request, resp *http.Response, err error, t0 time.Time, t time.Time, )
MaybeLogRoundTripDone logs the end of a round trip if the given logger is not nil, otherwise it does nothing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.