Making HtmlFileTransport extend ChannelDuplexHandler and use
ByteBufAllocator, and reduce writeAndFlush calls.