log.debug("send: Sending last HTTP chunk");
}
DefaultLastHttpContent chunk = new DefaultLastHttpContent();
if ((trailers != null) && !isOlderHttpVersion()) {
for (Map.Entry<String, String> t : trailers) {
chunk.trailingHeaders().add(t.getKey(), t.getValue());
}
}
ChannelFuture ret = channel.write(chunk);
return ret;
}