public class HttpRenderUtil extends Object
| 构造器和说明 |
|---|
HttpRenderUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static io.netty.handler.codec.http.FullHttpResponse |
getErroResponse() |
static io.netty.handler.codec.http.FullHttpResponse |
getNotFoundResponse() |
static io.netty.handler.codec.http.FullHttpResponse |
render(String text,
String contentType)
response输出
|
static io.netty.handler.codec.http.FullHttpResponse |
renderHTML(String html)
输出纯HTML
|
static io.netty.handler.codec.http.FullHttpResponse |
renderJSON(String json)
输出纯Json字符串
|
static io.netty.handler.codec.http.FullHttpResponse |
renderText(String text)
输出纯字符串
|
static io.netty.handler.codec.http.FullHttpResponse |
renderXML(String xml)
输出纯XML
|
public static io.netty.handler.codec.http.FullHttpResponse renderJSON(String json)
public static io.netty.handler.codec.http.FullHttpResponse renderText(String text)
public static io.netty.handler.codec.http.FullHttpResponse renderXML(String xml)
public static io.netty.handler.codec.http.FullHttpResponse renderHTML(String html)
public static io.netty.handler.codec.http.FullHttpResponse getErroResponse()
public static io.netty.handler.codec.http.FullHttpResponse getNotFoundResponse()
Copyright © 2020. All rights reserved.