@Deprecated
    default String toStringResponseOnly(
            BiFunction<? super RequestContext, ? super ResponseHeaders,
                    ? extends @Nullable Object> headersSanitizer,
            BiFunction<? super RequestContext, Object,
                    ? extends @Nullable Object> contentSanitizer,
            BiFunction<? super RequestContext, ? super HttpHeaders,
                    ? extends @Nullable Object> trailersSanitizer) {
        return LogFormatter.builderForText()
                           .responseHeadersSanitizer((ctx, headers) -> {
                               final ResponseHeaders responseHeaders = (ResponseHeaders) headers;
                               final Object sanitized = headersSanitizer.apply(ctx, responseHeaders);
                               if (sanitized == null) {
                                   return "<sanitized>";
                               }
                               return sanitized.toString();
                           })
                           .responseTrailersSanitizer((ctx, headers) -> {
                               final Object sanitized = trailersSanitizer.apply(ctx, headers);
                               if (sanitized == null) {
                                   return "<sanitized>";
                               }
                               return sanitized.toString();
                           })
                           .responseContentSanitizer((ctx, content) -> {
                               final Object sanitized = contentSanitizer.apply(ctx, content);
                               if (sanitized == null) {
                                   return "<sanitized>";
                               }
                               return sanitized.toString();
                           })
                           .includeContext(false)
                           .build()
                           .formatResponse(this);
    }
Returns the string representation of the {@link Response}.

@param headersSanitizer a {@link BiFunction} for sanitizing HTTP headers for logging. The result of
                        the {@link BiFunction} is what is actually logged as headers.
@param contentSanitizer a {@link BiFunction} for sanitizing response content for logging. The result of
                        the {@link BiFunction} is what is actually logged as content.
@param trailersSanitizer a {@link BiFunction} for sanitizing HTTP trailers for logging. The result of
                         the {@link BiFunction} is what is actually logged as trailers.
@deprecated Use {@link LogFormatter#formatResponse(RequestLog)} instead.
core/src/main/java/com/linecorp/armeria/common/logging/RequestLog.java