public SELF requestHeadersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders,
                    ? extends @Nullable T> requestHeadersSanitizer) {
        requireNonNull(requestHeadersSanitizer, "requestHeadersSanitizer");
        // TODO(ikhoon): Replace BiFunction with HeadersSanitizer in Armeria 2.0.
        this.requestHeadersSanitizer = requestHeadersSanitizer::apply;
        return self();
    }
Sets the {@link BiFunction} to use to sanitize request headers before logging. It is common to have the
{@link BiFunction} that removes sensitive headers, like {@code Cookie}, before logging. If unset, will
not sanitize request headers.

<pre>{@code
HeadersSanitizer<String> headersSanitizer =
  HeadersSanitizer
    .builderForText()
    .sensitiveHeaders("Authorization", "Cookie")
    ...
    .build();

 LogFormatter
   .builderForText()
   .requestHeadersSanitizer(headersSanitizer)
   ...
}</pre>

@see HeadersSanitizer
core/src/main/java/com/linecorp/armeria/common/logging/AbstractLogFormatterBuilder.java