private boolean closeAction(@Nullable Throwable cause) {
        final boolean closed;
        if (cause != null) {
            closed = delegate.tryClose(cause);
            ctx.logBuilder().endResponse(cause);
        } else {
            closed = delegate.tryClose();
            ctx.logBuilder().endResponse();
        }
        return closed;
    }
This method is called when the delegate is completed.
core/src/main/java/com/linecorp/armeria/client/HttpResponseWrapper.java