Interface ContentPreviewer


public interface ContentPreviewer
Produces the preview of RequestLog.
  • Method Details

    • disabled

      static ContentPreviewer disabled()
      Returns a dummy ContentPreviewer which produces null.
    • isDisabled

      default boolean isDisabled()
      Returns whether this ContentPreviewer is disabled() or not.
    • onData

      void onData​(HttpData data)
      Invoked after request/response data is received.
    • produce

      @Nullable String produce()
      Produces the preview of the request or response.
      Returns:
      the preview, or null if this previewer is disabled or does not produce anything