public final class ContentPreviewingUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static HttpRequest |
setUpRequestContentPreviewer(RequestContext ctx,
HttpRequest req,
ContentPreviewer requestContentPreviewer)
Sets up the request
ContentPreviewer to set
RequestLogBuilder.requestContentPreview(String) when the preview is available. |
static HttpResponse |
setUpResponseContentPreviewer(ContentPreviewerFactory factory,
RequestContext ctx,
HttpResponse res)
Sets up the response
ContentPreviewer to set
RequestLogBuilder.responseContentPreview(String) when the preview is available. |
public static HttpRequest setUpRequestContentPreviewer(RequestContext ctx, HttpRequest req, ContentPreviewer requestContentPreviewer)
ContentPreviewer to set
RequestLogBuilder.requestContentPreview(String) when the preview is available.public static HttpResponse setUpResponseContentPreviewer(ContentPreviewerFactory factory, RequestContext ctx, HttpResponse res)
ContentPreviewer to set
RequestLogBuilder.responseContentPreview(String) when the preview is available.Copyright © 2020 LeanCloud. All rights reserved.