@Override
        protected HttpObject filter(HttpObject obj) {
            if (obj instanceof ResponseHeaders) {
                final ResponseHeaders resHeaders = (ResponseHeaders) obj;

                // Skip informational headers.
                final String status = resHeaders.get(HttpHeaderNames.STATUS);
                if (ArmeriaHttpUtil.isInformational(status)) {
                    return obj;
                }
                final ContentPreviewer contentPreviewer = factory.responseContentPreviewer(ctx, resHeaders);
                if (!contentPreviewer.isDisabled()) {
                    responseContentPreviewer = contentPreviewer;
                }
            } else if (obj instanceof HttpData) {
                if (responseContentPreviewer != null) {
                    responseContentPreviewer.onData((HttpData) obj);
                }
            }
            return obj;
        }
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