Play 2.5: get response body in custom http action
问题 I'm trying to create a custom http action (https://playframework.com/documentation/2.5.x/JavaActionsComposition) to log request and response bodies with Play 2.5.0 Java. This is what I've got so far: public class Log extends play.mvc.Action.Simple { public CompletionStage<Result> call(Http.Context ctx) { CompletionStage<Result> response = delegate.call(ctx); //request body is fine System.out.println(ctx.request().body().asText()) //how to get response body string here while also not