writeFuture.addListener(ChannelFutureListener.CLOSE);
}
}
private void fullContentResponse(HttpRequest request, String index, final String digest) throws IOException {
BlobShard blobShard = localBlobShard(index, digest);
final RandomAccessFile raf = blobShard.blobContainer().getRandomAccessFile(digest);
HttpResponse response = new DefaultHttpResponse(HTTP_1_1, OK);
HttpHeaders.setContentLength(response, raf.length());
setDefaultGetHeaders(response);
logger.trace("HttpResponse: {}", response);
ctx.getChannel().write(response);