public class HttpRequest extends AbstractRequest
HttpClientCodec
and HttpServerCodec
and HttpObjectAggregator to handle http message.| 构造器和说明 |
|---|
HttpRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
Request |
addRefCnt() |
io.netty.buffer.ByteBuf |
content() |
void |
delRefCnt() |
static HttpRequest |
getHttpRequest() |
Object |
getMsg()
The msg param is the real request content to sent by netty.
|
io.netty.handler.codec.http.HttpHeaders |
headers() |
void |
reset() |
void |
setMsg(Object o) |
String |
uri() |
delRefCntForServerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgs, getAuth, getBinaryAttachment, getChannel, getCompressType, getException, getKvAttachment, getLogId, getMethodName, getNsHeadMeta, getRpcMethodInfo, getServiceName, getTarget, getTargetMethod, setArgs, setAuth, setBinaryAttachment, setChannel, setCompressType, setException, setKvAttachment, setLogId, setMethodName, setNsHeadMeta, setRpcMethodInfo, setServiceName, setTarget, setTargetMethodpublic static HttpRequest getHttpRequest()
public Object getMsg()
RequestFullHttpRequest.
For tcp protocols, the msg may be an instance of byte[].HttpRequest,
RpcRequestpublic void setMsg(Object o)
public void reset()
reset 在接口中 Requestreset 在类中 AbstractRequestpublic Request addRefCnt()
addRefCnt 在接口中 RequestaddRefCnt 在类中 AbstractRequestpublic void delRefCnt()
delRefCnt 在接口中 RequestdelRefCnt 在类中 AbstractRequestpublic io.netty.handler.codec.http.HttpHeaders headers()
public String uri()
public io.netty.buffer.ByteBuf content()
Copyright © 2019 Baidu, Inc.. All rights reserved.