Skip to content

Commit

Permalink
Update HttpClientBuilderExtensions.cs (#94869)
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Nov 21, 2023
1 parent 2e95c8f commit d444fda
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -552,12 +552,12 @@ internal static IHttpClientBuilder AddTypedClientCore<TClient>(this IHttpClientB
}

/// <summary>
/// Sets the <see cref="Func{T, R}"/> which determines whether to redact the HTTP header value before logging.
/// Sets the <see cref="Func{T, R}"/> which determines whether to redact the HTTP header value given its corresponding header name before logging.
/// </summary>
/// <param name="builder">The <see cref="IHttpClientBuilder"/>.</param>
/// <param name="shouldRedactHeaderValue">The <see cref="Func{T, R}"/> which determines whether to redact the HTTP header value before logging.</param>
/// <param name="shouldRedactHeaderValue">The <see cref="Func{T, R}"/> which determines whether to redact the HTTP header value given its corresponding header name before logging.</param>
/// <returns>The <see cref="IHttpClientBuilder"/>.</returns>
/// <remarks>The provided <paramref name="shouldRedactHeaderValue"/> predicate will be evaluated for each header value when logging. If the predicate returns <c>true</c> then the header value will be replaced with a marker value <c>*</c> in logs; otherwise the header value will be logged.
/// <remarks>The provided <paramref name="shouldRedactHeaderValue"/> predicate will be evaluated for each header name when logging. If the predicate returns <see langword="true"/> then the header value will be replaced with a marker value <c>*</c> in logs; otherwise the header value will be logged.
/// </remarks>
public static IHttpClientBuilder RedactLoggedHeaders(this IHttpClientBuilder builder, Func<string, bool> shouldRedactHeaderValue)
{
Expand Down

0 comments on commit d444fda

Please sign in to comment.