Uses of Class
io.netty.handler.codec.http.HttpHeaders
-
Packages that use HttpHeaders Package Description io.netty.handler.codec.http Encoder, decoder and their related message types for HTTP.io.netty.handler.codec.http.cors This package contains Cross Origin Resource Sharing (CORS) related classes.io.netty.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty.handler.proxy Adds support for client connections via proxy protocols such as SOCKS and HTTP CONNECT tunneling -
-
Uses of HttpHeaders in io.netty.handler.codec.http
Subclasses of HttpHeaders in io.netty.handler.codec.http Modifier and Type Class Description class
CombinedHttpHeaders
Will add multiple values for the same header as single header with a comma separated list of values.class
DefaultHttpHeaders
Default implementation ofHttpHeaders
.class
EmptyHttpHeaders
class
ReadOnlyHttpHeaders
A variant ofHttpHeaders
which only supports read-only methods.Fields in io.netty.handler.codec.http declared as HttpHeaders Modifier and Type Field Description static HttpHeaders
HttpHeaders. EMPTY_HEADERS
Deprecated.Methods in io.netty.handler.codec.http that return HttpHeaders Modifier and Type Method Description HttpHeaders
DefaultHttpHeaders. add(HttpHeaders headers)
HttpHeaders
DefaultHttpHeaders. add(java.lang.CharSequence name, java.lang.Iterable<?> values)
HttpHeaders
DefaultHttpHeaders. add(java.lang.CharSequence name, java.lang.Object value)
HttpHeaders
DefaultHttpHeaders. add(java.lang.String name, java.lang.Iterable<?> values)
HttpHeaders
DefaultHttpHeaders. add(java.lang.String name, java.lang.Object value)
HttpHeaders
EmptyHttpHeaders. add(java.lang.String name, java.lang.Iterable<?> values)
HttpHeaders
EmptyHttpHeaders. add(java.lang.String name, java.lang.Object value)
HttpHeaders
HttpHeaders. add(HttpHeaders headers)
Adds all header entries of the specifiedheaders
.HttpHeaders
HttpHeaders. add(java.lang.CharSequence name, java.lang.Iterable<?> values)
Adds a new header with the specified name and values.HttpHeaders
HttpHeaders. add(java.lang.CharSequence name, java.lang.Object value)
Adds a new header with the specified name and value.abstract HttpHeaders
HttpHeaders. add(java.lang.String name, java.lang.Iterable<?> values)
abstract HttpHeaders
HttpHeaders. add(java.lang.String name, java.lang.Object value)
HttpHeaders
ReadOnlyHttpHeaders. add(java.lang.String name, java.lang.Iterable<?> values)
HttpHeaders
ReadOnlyHttpHeaders. add(java.lang.String name, java.lang.Object value)
HttpHeaders
DefaultHttpHeaders. addInt(java.lang.CharSequence name, int value)
HttpHeaders
EmptyHttpHeaders. addInt(java.lang.CharSequence name, int value)
abstract HttpHeaders
HttpHeaders. addInt(java.lang.CharSequence name, int value)
Add thename
tovalue
.HttpHeaders
ReadOnlyHttpHeaders. addInt(java.lang.CharSequence name, int value)
HttpHeaders
DefaultHttpHeaders. addShort(java.lang.CharSequence name, short value)
HttpHeaders
EmptyHttpHeaders. addShort(java.lang.CharSequence name, short value)
abstract HttpHeaders
HttpHeaders. addShort(java.lang.CharSequence name, short value)
Add thename
tovalue
.HttpHeaders
ReadOnlyHttpHeaders. addShort(java.lang.CharSequence name, short value)
HttpHeaders
DefaultHttpHeaders. clear()
HttpHeaders
EmptyHttpHeaders. clear()
abstract HttpHeaders
HttpHeaders. clear()
Removes all headers from thisHttpMessage
.HttpHeaders
ReadOnlyHttpHeaders. clear()
HttpHeaders
DefaultHttpHeaders. copy()
HttpHeaders
HttpHeaders. copy()
Returns a deep copy of the passed inHttpHeaders
.HttpHeaders
DefaultHttpMessage. headers()
HttpHeaders
HttpMessage. headers()
Returns the headers of this message.HttpHeaders
DefaultHttpHeadersFactory. newEmptyHeaders()
HttpHeaders
HttpHeadersFactory. newEmptyHeaders()
Create a newHttpHeaders
instance, but sized to be as small an object as possible.HttpHeaders
DefaultHttpHeadersFactory. newHeaders()
HttpHeaders
HttpHeadersFactory. newHeaders()
Create a newHttpHeaders
instance.HttpHeaders
DefaultHttpHeaders. remove(java.lang.CharSequence name)
HttpHeaders
DefaultHttpHeaders. remove(java.lang.String name)
HttpHeaders
EmptyHttpHeaders. remove(java.lang.String name)
HttpHeaders
HttpHeaders. remove(java.lang.CharSequence name)
Removes the header with the specified name.abstract HttpHeaders
HttpHeaders. remove(java.lang.String name)
HttpHeaders
ReadOnlyHttpHeaders. remove(java.lang.String name)
HttpHeaders
DefaultHttpHeaders. set(HttpHeaders headers)
HttpHeaders
DefaultHttpHeaders. set(java.lang.CharSequence name, java.lang.Iterable<?> values)
HttpHeaders
DefaultHttpHeaders. set(java.lang.CharSequence name, java.lang.Object value)
HttpHeaders
DefaultHttpHeaders. set(java.lang.String name, java.lang.Iterable<?> values)
HttpHeaders
DefaultHttpHeaders. set(java.lang.String name, java.lang.Object value)
HttpHeaders
EmptyHttpHeaders. set(java.lang.String name, java.lang.Iterable<?> values)
HttpHeaders
EmptyHttpHeaders. set(java.lang.String name, java.lang.Object value)
HttpHeaders
HttpHeaders. set(HttpHeaders headers)
Cleans the current header entries and copies all header entries of the specifiedheaders
.HttpHeaders
HttpHeaders. set(java.lang.CharSequence name, java.lang.Iterable<?> values)
Sets a header with the specified name and values.HttpHeaders
HttpHeaders. set(java.lang.CharSequence name, java.lang.Object value)
Sets a header with the specified name and value.abstract HttpHeaders
HttpHeaders. set(java.lang.String name, java.lang.Iterable<?> values)
abstract HttpHeaders
HttpHeaders. set(java.lang.String name, java.lang.Object value)
HttpHeaders
ReadOnlyHttpHeaders. set(java.lang.String name, java.lang.Iterable<?> values)
HttpHeaders
ReadOnlyHttpHeaders. set(java.lang.String name, java.lang.Object value)
HttpHeaders
HttpHeaders. setAll(HttpHeaders headers)
Retains all current headers but callsset(String, Object)
for each entry inheaders
HttpHeaders
DefaultHttpHeaders. setInt(java.lang.CharSequence name, int value)
HttpHeaders
EmptyHttpHeaders. setInt(java.lang.CharSequence name, int value)
abstract HttpHeaders
HttpHeaders. setInt(java.lang.CharSequence name, int value)
Set thename
tovalue
.HttpHeaders
ReadOnlyHttpHeaders. setInt(java.lang.CharSequence name, int value)
HttpHeaders
DefaultHttpHeaders. setShort(java.lang.CharSequence name, short value)
HttpHeaders
EmptyHttpHeaders. setShort(java.lang.CharSequence name, short value)
abstract HttpHeaders
HttpHeaders. setShort(java.lang.CharSequence name, short value)
Set thename
tovalue
.HttpHeaders
ReadOnlyHttpHeaders. setShort(java.lang.CharSequence name, short value)
HttpHeaders
DefaultFullHttpRequest. trailingHeaders()
HttpHeaders
DefaultFullHttpResponse. trailingHeaders()
HttpHeaders
DefaultLastHttpContent. trailingHeaders()
HttpHeaders
LastHttpContent. trailingHeaders()
Methods in io.netty.handler.codec.http with parameters of type HttpHeaders Modifier and Type Method Description HttpHeaders
DefaultHttpHeaders. add(HttpHeaders headers)
HttpHeaders
HttpHeaders. add(HttpHeaders headers)
Adds all header entries of the specifiedheaders
.protected void
HttpObjectEncoder. encodeHeaders(HttpHeaders headers, ByteBuf buf)
Encode theHttpHeaders
into aByteBuf
.boolean
HttpServerUpgradeHandler.UpgradeCodec. prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders upgradeHeaders)
Prepares theupgradeHeaders
for a protocol update based upon the contents ofupgradeRequest
.HttpHeaders
DefaultHttpHeaders. set(HttpHeaders headers)
HttpHeaders
HttpHeaders. set(HttpHeaders headers)
Cleans the current header entries and copies all header entries of the specifiedheaders
.HttpHeaders
HttpHeaders. setAll(HttpHeaders headers)
Retains all current headers but callsset(String, Object)
for each entry inheaders
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.Constructors in io.netty.handler.codec.http with parameters of type HttpHeaders Constructor Description DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.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, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeaders)
Create an HTTP response with the given HTTP version, status, contents, headers and trailers.DefaultHttpMessage(HttpVersion version, HttpHeaders headers)
Creates a new instance.DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri, HttpHeaders headers)
Creates a new instance.DefaultHttpResponse(HttpVersion version, HttpResponseStatus status, HttpHeaders headers)
Creates a new instance.DefaultLastHttpContent(ByteBuf content, HttpHeaders trailingHeaders)
Create a new last HTTP content message with the given contents, and trailing headers. -
Uses of HttpHeaders in io.netty.handler.codec.http.cors
Methods in io.netty.handler.codec.http.cors that return HttpHeaders Modifier and Type Method Description HttpHeaders
CorsConfig. preflightResponseHeaders()
Returns HTTP response headers that should be added to a CORS preflight response. -
Uses of HttpHeaders in io.netty.handler.codec.http.websocketx
Fields in io.netty.handler.codec.http.websocketx declared as HttpHeaders Modifier and Type Field Description protected HttpHeaders
WebSocketClientHandshaker. customHeaders
Methods in io.netty.handler.codec.http.websocketx that return HttpHeaders Modifier and Type Method Description HttpHeaders
WebSocketClientProtocolConfig. customHeaders()
HttpHeaders
WebSocketServerProtocolHandler.HandshakeComplete. requestHeaders()
Methods in io.netty.handler.codec.http.websocketx with parameters of type HttpHeaders Modifier and Type Method Description WebSocketClientProtocolConfig.Builder
WebSocketClientProtocolConfig.Builder. customHeaders(HttpHeaders customHeaders)
Map of custom headers to add to the client requestChannelFuture
WebSocketServerHandshaker. handshake(Channel channel, FullHttpRequest req, HttpHeaders responseHeaders, ChannelPromise promise)
Performs the opening handshake When call this method you MUST NOT retain theFullHttpRequest
which is passed in.ChannelFuture
WebSocketServerHandshaker. handshake(Channel channel, HttpRequest req, HttpHeaders responseHeaders, ChannelPromise promise)
Performs the opening handshake When call this method you MUST NOT retain theHttpRequest
which is passed in.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl, boolean generateOriginHeader)
Creates a new handshaker.protected abstract FullHttpResponse
WebSocketServerHandshaker. newHandshakeResponse(FullHttpRequest req, HttpHeaders responseHeaders)
Returns a new {@link FullHttpResponse) which will be used for as response to the handshake request.protected FullHttpResponse
WebSocketServerHandshaker00. newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 0 and lower.protected FullHttpResponse
WebSocketServerHandshaker07. newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 7.protected FullHttpResponse
WebSocketServerHandshaker08. newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 8 to 10.protected FullHttpResponse
WebSocketServerHandshaker13. newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi versions 13-17.Constructors in io.netty.handler.codec.http.websocketx with parameters of type HttpHeaders Constructor Description HandshakeComplete(java.lang.String requestUri, HttpHeaders requestHeaders, java.lang.String selectedSubprotocol)
WebSocketClientHandshaker(java.net.URI uri, WebSocketVersion version, java.lang.String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength)
Base constructorWebSocketClientHandshaker(java.net.URI uri, WebSocketVersion version, java.lang.String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength, long forceCloseTimeoutMillis)
Base constructorWebSocketClientHandshaker(java.net.URI uri, WebSocketVersion version, java.lang.String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl)
Base constructorWebSocketClientHandshaker(java.net.URI uri, WebSocketVersion version, java.lang.String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl, boolean generateOriginHeader)
Base constructorWebSocketClientHandshaker00(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength)
Creates a new instance with the specified destination WebSocket location and version to initiate.WebSocketClientHandshaker00(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength, long forceCloseTimeoutMillis)
Creates a new instance with the specified destination WebSocket location and version to initiate.WebSocketClientHandshaker07(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)
Creates a new instance.WebSocketClientHandshaker07(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch)
Creates a new instance.WebSocketClientHandshaker07(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis)
Creates a new instance.WebSocketClientHandshaker08(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)
Creates a new instance.WebSocketClientHandshaker08(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch)
Creates a new instance.WebSocketClientHandshaker08(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis)
Creates a new instance.WebSocketClientHandshaker13(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)
Creates a new instance.WebSocketClientHandshaker13(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch)
Creates a new instance.WebSocketClientHandshaker13(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis)
Creates a new instance.WebSocketClientProtocolHandler(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)
Base constructorWebSocketClientProtocolHandler(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean handleCloseFrames)
Base constructorWebSocketClientProtocolHandler(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean handleCloseFrames, boolean performMasking, boolean allowMaskMismatch)
Base constructorWebSocketClientProtocolHandler(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean handleCloseFrames, boolean performMasking, boolean allowMaskMismatch, long handshakeTimeoutMillis)
Base constructorWebSocketClientProtocolHandler(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean handleCloseFrames, long handshakeTimeoutMillis)
Base constructorWebSocketClientProtocolHandler(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, long handshakeTimeoutMillis)
Base constructor -
Uses of HttpHeaders in io.netty.handler.codec.http2
Methods in io.netty.handler.codec.http2 with parameters of type HttpHeaders Modifier and Type Method Description static 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.boolean
Http2ServerUpgradeCodec. prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders headers)
static Http2Headers
HttpConversionUtil. toHttp2Headers(HttpHeaders inHeaders, boolean validateHeaders)
static void
HttpConversionUtil. toHttp2Headers(HttpHeaders inHeaders, Http2Headers out)
-
Uses of HttpHeaders in io.netty.handler.proxy
Methods in io.netty.handler.proxy that return HttpHeaders Modifier and Type Method Description HttpHeaders
HttpProxyHandler.HttpProxyConnectException. headers()
Returns headers, if any.Constructors in io.netty.handler.proxy with parameters of type HttpHeaders Constructor Description HttpProxyConnectException(java.lang.String message, HttpHeaders headers)
HttpProxyHandler(java.net.SocketAddress proxyAddress, HttpHeaders headers)
HttpProxyHandler(java.net.SocketAddress proxyAddress, HttpHeaders headers, boolean ignoreDefaultPortsInConnectHostHeader)
HttpProxyHandler(java.net.SocketAddress proxyAddress, java.lang.String username, java.lang.String password, HttpHeaders headers)
HttpProxyHandler(java.net.SocketAddress proxyAddress, java.lang.String username, java.lang.String password, HttpHeaders headers, boolean ignoreDefaultPortsInConnectHostHeader)
-