Provides additional utility functions for HTTP/1.x.
...
protected void channelRead0(ChannelHandlerContext ctx, FcgiMessage msg) {
String remoteAddress = HttpUtil.remoteAddress(ctx.channel(), msg.headers());
...
}
...// convert content-type to "application/json;charset=UTF-8"
String contentType = HttpUtil.contentType(HttpHeaderValues.APPLICATION_JSON, CharsetUtil.UTF_8);