Uses of Class
io.netty.handler.codec.http.HttpVersion
Packages that use HttpVersion
Package
Description
Encoder, decoder and their related message types for HTTP.
HTTP multipart support.
Handlers for sending and receiving HTTP/2 frames.
An RTSP
extension based on the HTTP codec.
-
Uses of HttpVersion in io.netty.handler.codec.http
Fields in io.netty.handler.codec.http declared as HttpVersionModifier and TypeFieldDescriptionstatic final HttpVersion
HttpVersion.HTTP_1_0
HTTP/1.0static final HttpVersion
HttpVersion.HTTP_1_1
HTTP/1.1private HttpVersion
DefaultHttpMessage.version
Methods in io.netty.handler.codec.http that return HttpVersionModifier and TypeMethodDescriptionDefaultHttpMessage.getProtocolVersion()
Deprecated.HttpMessage.getProtocolVersion()
Deprecated.HttpObjectAggregator.AggregatedFullHttpMessage.getProtocolVersion()
DefaultHttpMessage.protocolVersion()
HttpMessage.protocolVersion()
Returns the protocol version of thisHttpMessage
HttpObjectAggregator.AggregatedFullHttpMessage.protocolVersion()
static HttpVersion
Returns an existing or newHttpVersion
instance which matches to the specified protocol version string.private static HttpVersion
Methods in io.netty.handler.codec.http with parameters of type HttpVersionModifier and TypeMethodDescriptionint
HttpVersion.compareTo
(HttpVersion o) private static boolean
HttpContentEncoder.isPassthru
(HttpVersion version, int code, CharSequence httpMethod) static void
HttpUtil.setKeepAlive
(HttpHeaders h, HttpVersion httpVersion, boolean keepAlive) Sets the value of the"Connection"
header depending on the protocol version of the specified message.DefaultFullHttpRequest.setProtocolVersion
(HttpVersion version) DefaultFullHttpResponse.setProtocolVersion
(HttpVersion version) DefaultHttpMessage.setProtocolVersion
(HttpVersion version) DefaultHttpRequest.setProtocolVersion
(HttpVersion version) DefaultHttpResponse.setProtocolVersion
(HttpVersion version) FullHttpRequest.setProtocolVersion
(HttpVersion version) FullHttpResponse.setProtocolVersion
(HttpVersion version) HttpMessage.setProtocolVersion
(HttpVersion version) Set the protocol version of thisHttpMessage
HttpObjectAggregator.AggregatedFullHttpMessage.setProtocolVersion
(HttpVersion version) HttpObjectAggregator.AggregatedFullHttpRequest.setProtocolVersion
(HttpVersion version) HttpObjectAggregator.AggregatedFullHttpResponse.setProtocolVersion
(HttpVersion version) HttpRequest.setProtocolVersion
(HttpVersion version) HttpResponse.setProtocolVersion
(HttpVersion version) Constructors in io.netty.handler.codec.http with parameters of type HttpVersionModifierConstructorDescriptionDefaultFullHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri) Create a full HTTP response with the given HTTP version, method, and URI.DefaultFullHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri, boolean validateHeaders) Deprecated.Use theDefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content) Create a full HTTP response with the given HTTP version, method, URI, and contents.DefaultFullHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, boolean validateHeaders) Deprecated.Use theDefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory) Create a full HTTP response with the given HTTP version, method, URI, contents, and factories for creating headers and trailers.DefaultFullHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeader) Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects.DefaultFullHttpResponse
(HttpVersion version, HttpResponseStatus status) Create an empty HTTP response with the given HTTP version and status.DefaultFullHttpResponse
(HttpVersion version, HttpResponseStatus status, boolean validateHeaders) Deprecated.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpResponse
(HttpVersion version, HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders) Deprecated.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpResponse
(HttpVersion version, HttpResponseStatus status, ByteBuf content) Create an HTTP response with the given HTTP version, status, and contents.DefaultFullHttpResponse
(HttpVersion version, HttpResponseStatus status, ByteBuf content, boolean validateHeaders) Deprecated.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpResponse
(HttpVersion version, HttpResponseStatus status, ByteBuf content, boolean validateHeaders, boolean singleFieldHeaders) Deprecated.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.DefaultFullHttpResponse
(HttpVersion version, HttpResponseStatus status, ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory) Create an HTTP response with the given HTTP version, status, contents, and with headers and trailers created by the given header factories.DefaultFullHttpResponse
(HttpVersion version, HttpResponseStatus status, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeaders) Create an HTTP response with the given HTTP version, status, contents, headers and trailers.protected
DefaultHttpMessage
(HttpVersion version) Creates a new instance.protected
DefaultHttpMessage
(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders) Deprecated.Use theDefaultHttpMessage(HttpVersion, HttpHeadersFactory)
constructor instead, ideally using theDefaultHttpHeadersFactory.headersFactory()
, or a factory that otherwise has validation enabled.protected
DefaultHttpMessage
(HttpVersion version, HttpHeaders headers) Creates a new instance.protected
DefaultHttpMessage
(HttpVersion version, HttpHeadersFactory headersFactory) Creates a new instance.DefaultHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri) Creates a new instance.DefaultHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri, boolean validateHeaders) Deprecated.Prefer theDefaultHttpRequest(HttpVersion, HttpMethod, String)
constructor instead, to always have header validation enabled.DefaultHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri, HttpHeaders headers) Creates a new instance.DefaultHttpRequest
(HttpVersion httpVersion, HttpMethod method, String uri, HttpHeadersFactory headersFactory) Creates a new instance.DefaultHttpResponse
(HttpVersion version, HttpResponseStatus status) Creates a new instance.DefaultHttpResponse
(HttpVersion version, HttpResponseStatus status, boolean validateHeaders) Deprecated.Use theDefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory)
constructor instead.DefaultHttpResponse
(HttpVersion version, HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders) Deprecated.Use theDefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory)
constructor instead.DefaultHttpResponse
(HttpVersion version, HttpResponseStatus status, HttpHeaders headers) Creates a new instance.DefaultHttpResponse
(HttpVersion version, HttpResponseStatus status, HttpHeadersFactory headersFactory) Creates a new instance. -
Uses of HttpVersion in io.netty.handler.codec.http.multipart
Methods in io.netty.handler.codec.http.multipart that return HttpVersionModifier and TypeMethodDescriptionHttpPostRequestEncoder.WrappedHttpRequest.getProtocolVersion()
HttpPostRequestEncoder.WrappedHttpRequest.protocolVersion()
Methods in io.netty.handler.codec.http.multipart with parameters of type HttpVersionModifier and TypeMethodDescriptionHttpPostRequestEncoder.WrappedFullHttpRequest.setProtocolVersion
(HttpVersion version) HttpPostRequestEncoder.WrappedHttpRequest.setProtocolVersion
(HttpVersion version) -
Uses of HttpVersion in io.netty.handler.codec.http2
Methods in io.netty.handler.codec.http2 with parameters of type HttpVersionModifier and TypeMethodDescriptionstatic void
HttpConversionUtil.addHttp2ToHttpHeaders
(int streamId, Http2Headers inputHeaders, HttpHeaders outputHeaders, HttpVersion httpVersion, boolean isTrailer, boolean isRequest) Translate and add HTTP/2 headers to HTTP/1.x headers. -
Uses of HttpVersion in io.netty.handler.codec.rtsp
Fields in io.netty.handler.codec.rtsp declared as HttpVersionMethods in io.netty.handler.codec.rtsp that return HttpVersionModifier and TypeMethodDescriptionstatic HttpVersion
Returns an existing or newHttpVersion
instance which matches to the specified RTSP version string.
HttpMessage.protocolVersion()
instead.