public class HttpRequest extends AbstractRequest
HttpClientCodec
and HttpServerCodec
and HttpObjectAggregator to handle http message.| Constructor and Description |
|---|
HttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
content() |
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 |
release() |
void |
reset() |
Request |
retain() |
void |
setMsg(Object o) |
String |
uri() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgs, getAuth, getBinaryAttachment, getCallback, getChannel, getClientName, getCommunicationClient, getCompressType, getCorrelationId, getException, getKvAttachment, getLogId, getMethodName, getNsHead, getParentSpanId, getReadTimeoutMillis, getRpcFuture, getRpcMethodInfo, getSelectedInstances, getSendBuf, getServiceName, getServiceTag, getSpanId, getSpHead, getSubscribeInfo, getTarget, getTargetMethod, getTraceId, getWriteTimeoutMillis, isHeartbeat, isOneWay, setArgs, setAuth, setBinaryAttachment, setCallback, setChannel, setClientName, setCommunicationClient, setCompressType, setCorrelationId, setException, setHeartbeat, setKvAttachment, setLogId, setMethodName, setNsHead, setOneWay, setParentSpanId, setReadTimeoutMillis, setRpcFuture, setRpcMethodInfo, setSelectedInstances, setSendBuf, setServiceName, setServiceTag, setSpanId, setSpHead, setSubscribeInfo, setTarget, setTargetMethod, setTraceId, setWriteTimeoutMillispublic 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 in interface Requestreset in class AbstractRequestpublic Request retain()
retain in interface Requestretain in class AbstractRequestpublic void release()
release in interface Requestrelease in class AbstractRequestpublic io.netty.handler.codec.http.HttpHeaders headers()
public String uri()
public io.netty.buffer.ByteBuf content()
Copyright © 2020 Baidu, Inc.. All rights reserved.