Versions in this module Expand all Collapse all v0 v0.9.0-alpha.5 May 17, 2024 v0.9.0-alpha.4 May 1, 2024 v0.9.0-alpha.3 Apr 24, 2024 v0.9.0-alpha.2 Apr 18, 2024 v0.9.0-alpha.1 Mar 21, 2024 v0.9.0-0.dev Mar 15, 2024 v0.8.2 Apr 26, 2024 v0.8.1 Apr 3, 2024 v0.8.0 Mar 15, 2024 Changes in this version + const DefaultMaxBodySize + func ContextWithAllowedURLQueryParams(ctx context.Context, allow func(key string) bool) context.Context + func RedactRequestBody(ctx context.Context, reason string) context.Context + func RedactResponseBody(ctx context.Context, reason string) context.Context + func RedactedURL(ctx context.Context, u *url.URL) *url.URL + func Transport(cfg0 *TransportConfig) http.RoundTripper + type BodyData struct + Body string + Body64 []byte + BodyRedactedBecause string + BodyTruncated bool + type EventKind int + const KindClientRecvResponse + const KindClientSendRequest + const NoEvent + func (k EventKind) String() string + type Logger interface + Log func(ctx context.Context, kind EventKind, r RequestOrResponse) + type Request struct + ContentLength int64 + Header http.Header + ID int64 + Method string + URL string + type RequestOrResponse interface + type Response struct + Error string + Header http.Header + ID int64 + Method string + StatusCode int + URL string + type SlogLogger struct + Level slog.Level + Logger *slog.Logger + func (l SlogLogger) Log(ctx context.Context, kind EventKind, r RequestOrResponse) + type TransportConfig struct + IncludeAllQueryParams bool + Logger Logger + MaxBodySize int + Transport http.RoundTripper v0.8.0-rc.1 Mar 13, 2024