private boolean isEndOfRequestResponse(Object msg) {
        if (msg instanceof Http2HeadersFrame) {
            return ((Http2HeadersFrame) msg).isEndStream();
        }
        if (msg instanceof Http2DataFrame) {
            return ((Http2DataFrame) msg).isEndStream();
        }
        return false;
    }
Look on both the stream channel, and the parent channel to see if the CLOSE_AFTER_RESPONSE flag has been set.
If so, return that promise.

@param ctx
@param parent
@return
zuul-core/src/main/java/com/netflix/netty/common/Http2ConnectionCloseHandler.java