Class HttpUtil


  • public class HttpUtil
    extends Object
    HTTP工具类
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    • Constructor Detail

      • HttpUtil

        public HttpUtil()
    • Method Detail

      • createHttpResponse

        public static io.netty.handler.codec.http.HttpResponse createHttpResponse​(String content,
                                                                                  String contentType)
        创建有内容的HttpResponse响应
        Parameters:
        content - 响应内容
        contentType - 响应类型
        Returns:
        HttpResponse
      • resolveHeaders

        public static void resolveHeaders​(io.netty.handler.codec.http.FullHttpResponse httpResponse)