public class LoggingHttpClientA wrapper [HttpClient] around [httpClient] that logs request and response information..
A wrapper [HttpClient] around [httpClient] that logs request and response information.
The underlying [HttpClient] for making requests..
The underlying [HttpClient] for making requests.
Sensitive headers to redact from logs.
Sensitive headers to redact from logs.
Defaults to Set.of("authorization", "api-key", "x-api-key", "cookie", "set-cookie", "x-tenant-id").
The clock to use for measuring request and response durations.
The clock to use for measuring request and response durations. This is primarily useful for using a fake clock in tests. Defaults to [Clock.systemUTC].
The log level to use.
The log level to use. Pass [LogLevel.fromEnv] to read from environment variables.
Returns a mutable builder for constructing an instance of [LoggingHttpClient].
The underlying [HttpClient] for making requests..
Sensitive headers to redact from logs.
The clock to use for measuring request and response durations.
The log level to use.
Returns an immutable instance of [LoggingHttpClient].