Top Description Methods
io.netty.handler.codec.http

public Interface HttpMessage

extends HttpObject
Known Direct Subinterfaces
io.netty.handler.codec.http.HttpRequest, io.netty.handler.codec.http.HttpResponse, io.netty.handler.codec.http.FullHttpMessage
Known Direct Implementers
io.netty.handler.codec.http.DefaultHttpMessage

An interface that defines an HTTP message, providing common properties for HttpRequest and HttpResponse.
See Also
HttpResponse, HttpRequest, HttpHeaders

Method Summary

Modifier and TypeMethod and Description
public HttpVersion
getProtocolVersion()

Deprecated Use protocolVersion() instead.
public HttpHeaders
headers()

Returns the headers of this message.

public HttpVersion
protocolVersion()

Returns the protocol version of this HttpMessage

public HttpMessage
setProtocolVersion(HttpVersion version)

Set the protocol version of this HttpMessage

Inherited from io.netty.handler.codec.http.HttpObject:
getDecoderResult

Method Detail

getProtocolVersionback to summary
public HttpVersion getProtocolVersion()

Deprecated

Use protocolVersion() instead.

Annotations
@Deprecated
headersback to summary
public HttpHeaders headers()

Returns the headers of this message.

protocolVersionback to summary
public HttpVersion protocolVersion()

Returns the protocol version of this HttpMessage

setProtocolVersionback to summary
public HttpMessage setProtocolVersion(HttpVersion version)

Set the protocol version of this HttpMessage