public class HttpOutputManager
extends java.lang.Object
| 构造器和说明 |
|---|
HttpOutputManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
logParameter(xyz.noark.network.http.NoarkHttpServletRequest req)
记录请求参数
|
static void |
logRequest(io.netty.handler.codec.http.FullHttpRequest req,
java.lang.String ip)
记录请求报文.
|
static void |
logResponse(io.netty.handler.codec.http.FullHttpResponse res,
java.lang.String cacheContent)
记录响应报文
|
public static void logRequest(io.netty.handler.codec.http.FullHttpRequest req,
java.lang.String ip)
req - 一次请求ip - 客户端IPpublic static void logParameter(xyz.noark.network.http.NoarkHttpServletRequest req)
throws java.io.IOException
req - 一次请求java.io.IOException - 处理请求体时可能会发生IO异常public static void logResponse(io.netty.handler.codec.http.FullHttpResponse res,
java.lang.String cacheContent)
res - 一次响应cacheContent - 响应正文内容