-
- All Superinterfaces:
DecoderResultProvider
,HttpObject
- All Known Subinterfaces:
FullHttpMessage<R>
,FullHttpRequest
,FullHttpResponse
,HttpRequest
,HttpResponse
- All Known Implementing Classes:
DefaultFullHttpRequest
,DefaultFullHttpResponse
,DefaultHttpMessage
,DefaultHttpRequest
,DefaultHttpResponse
public interface HttpMessage extends HttpObject
An interface that defines an HTTP message, providing common properties forHttpRequest
andHttpResponse
.- See Also:
HttpResponse
,HttpRequest
,HttpHeaders
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description HttpVersion
getProtocolVersion()
Deprecated.UseprotocolVersion()
instead.HttpHeaders
headers()
Returns the headers of this message.HttpVersion
protocolVersion()
Returns the protocol version of thisHttpMessage
HttpMessage
setProtocolVersion(HttpVersion version)
Set the protocol version of thisHttpMessage
-
Methods inherited from interface io.netty5.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
-
-
-
Method Detail
-
getProtocolVersion
@Deprecated HttpVersion getProtocolVersion()
Deprecated.UseprotocolVersion()
instead.
-
protocolVersion
HttpVersion protocolVersion()
Returns the protocol version of thisHttpMessage
-
setProtocolVersion
HttpMessage setProtocolVersion(HttpVersion version)
Set the protocol version of thisHttpMessage
-
headers
HttpHeaders headers()
Returns the headers of this message.
-
-