public static HttpResponse setUpResponseContentPreviewer(
            ContentPreviewerFactory factory, RequestContext ctx, HttpResponse res,
            BiFunction<? super RequestContext, String, ? extends @Nullable Object> contentSanitizer) {
        requireNonNull(factory, "factory");
        requireNonNull(ctx, "ctx");
        requireNonNull(res, "res");
        requireNonNull(contentSanitizer, "contentSanitizer");
        return new ContentPreviewerHttpResponse(res, factory, ctx, contentSanitizer);
    }
Sets up the response {@link ContentPreviewer} to set
{@link RequestLogBuilder#responseContentPreview(String)} when the preview is available.
core/src/main/java/com/linecorp/armeria/internal/logging/ContentPreviewingUtil.java