public void transmit(HttpResponseStatus status, ByteBuf byteBuf) {
sentResponse = true;
body = new byte[byteBuf.readableBytes()];
byteBuf.readBytes(body);
byteBuf.release();
eventController.fire(new DefaultRequestOutcome(request, new DefaultSentResponse(headers, new DefaultStatus(status)), System.currentTimeMillis()));
latch.countDown();
}
@Override
public void transmit(HttpResponseStatus responseStatus, BasicFileAttributes basicFileAttributes, Path file) {