protected void sendResponse(ChannelHandlerContext ctx, int streamId, HttpResponseStatus status,
                                ByteBuf payload) {
        final Http2Headers headers = new DefaultHttp2Headers().status(status.codeAsText());
        encoder().writeHeaders(ctx, streamId, headers, 0, false, ctx.newPromise());
        encoder().writeData(ctx, streamId, payload, 0, true, ctx.newPromise());
    }
Sends an {@link Http2Headers} with the specified {@link HttpResponseStatus} and
{@code DATA} with the specified {@code payload}.
core/src/test/java/com/linecorp/armeria/client/SimpleH2CServerHandler.java