Package com.foxinmy.weixin4j.util
Class HttpUtil
- java.lang.Object
-
- com.foxinmy.weixin4j.util.HttpUtil
-
public class HttpUtil extends Object
HTTP工具类- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description HttpUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.netty.handler.codec.http.HttpResponse
createHttpResponse(String content, String contentType)
创建有内容的HttpResponse响应static void
resolveHeaders(io.netty.handler.codec.http.FullHttpResponse httpResponse)
-
-
-
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)
-
-