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 classCombinedHttpHeadersWill add multiple values for the same header as single header with a comma separated list of values.classDefaultHttpHeadersDefault implementation ofHttpHeaders.classEmptyHttpHeadersclassReadOnlyHttpHeadersA variant ofHttpHeaderswhich only supports read-only methods.Fields in io.netty.handler.codec.http declared as HttpHeaders Modifier and Type Field Description static HttpHeadersHttpHeaders. EMPTY_HEADERSDeprecated.Methods in io.netty.handler.codec.http that return HttpHeaders Modifier and Type Method Description HttpHeadersDefaultHttpHeaders. add(HttpHeaders headers)HttpHeadersDefaultHttpHeaders. add(java.lang.CharSequence name, java.lang.Iterable<?> values)HttpHeadersDefaultHttpHeaders. add(java.lang.CharSequence name, java.lang.Object value)HttpHeadersDefaultHttpHeaders. add(java.lang.String name, java.lang.Iterable<?> values)HttpHeadersDefaultHttpHeaders. add(java.lang.String name, java.lang.Object value)HttpHeadersEmptyHttpHeaders. add(java.lang.String name, java.lang.Iterable<?> values)HttpHeadersEmptyHttpHeaders. add(java.lang.String name, java.lang.Object value)HttpHeadersHttpHeaders. add(HttpHeaders headers)Adds all header entries of the specifiedheaders.HttpHeadersHttpHeaders. add(java.lang.CharSequence name, java.lang.Iterable<?> values)Adds a new header with the specified name and values.HttpHeadersHttpHeaders. add(java.lang.CharSequence name, java.lang.Object value)Adds a new header with the specified name and value.abstract HttpHeadersHttpHeaders. add(java.lang.String name, java.lang.Iterable<?> values)abstract HttpHeadersHttpHeaders. add(java.lang.String name, java.lang.Object value)HttpHeadersReadOnlyHttpHeaders. add(java.lang.String name, java.lang.Iterable<?> values)HttpHeadersReadOnlyHttpHeaders. add(java.lang.String name, java.lang.Object value)HttpHeadersDefaultHttpHeaders. addInt(java.lang.CharSequence name, int value)HttpHeadersEmptyHttpHeaders. addInt(java.lang.CharSequence name, int value)abstract HttpHeadersHttpHeaders. addInt(java.lang.CharSequence name, int value)Add thenametovalue.HttpHeadersReadOnlyHttpHeaders. addInt(java.lang.CharSequence name, int value)HttpHeadersDefaultHttpHeaders. addShort(java.lang.CharSequence name, short value)HttpHeadersEmptyHttpHeaders. addShort(java.lang.CharSequence name, short value)abstract HttpHeadersHttpHeaders. addShort(java.lang.CharSequence name, short value)Add thenametovalue.HttpHeadersReadOnlyHttpHeaders. addShort(java.lang.CharSequence name, short value)HttpHeadersDefaultHttpHeaders. clear()HttpHeadersEmptyHttpHeaders. clear()abstract HttpHeadersHttpHeaders. clear()Removes all headers from thisHttpMessage.HttpHeadersReadOnlyHttpHeaders. clear()HttpHeadersDefaultHttpHeaders. copy()HttpHeadersHttpHeaders. copy()Returns a deep copy of the passed inHttpHeaders.HttpHeadersDefaultHttpMessage. headers()HttpHeadersHttpMessage. headers()Returns the headers of this message.HttpHeadersDefaultHttpHeadersFactory. newEmptyHeaders()HttpHeadersHttpHeadersFactory. newEmptyHeaders()Create a newHttpHeadersinstance, but sized to be as small an object as possible.HttpHeadersDefaultHttpHeadersFactory. newHeaders()HttpHeadersHttpHeadersFactory. newHeaders()Create a newHttpHeadersinstance.HttpHeadersDefaultHttpHeaders. remove(java.lang.CharSequence name)HttpHeadersDefaultHttpHeaders. remove(java.lang.String name)HttpHeadersEmptyHttpHeaders. remove(java.lang.String name)HttpHeadersHttpHeaders. remove(java.lang.CharSequence name)Removes the header with the specified name.abstract HttpHeadersHttpHeaders. remove(java.lang.String name)HttpHeadersReadOnlyHttpHeaders. remove(java.lang.String name)HttpHeadersDefaultHttpHeaders. set(HttpHeaders headers)HttpHeadersDefaultHttpHeaders. set(java.lang.CharSequence name, java.lang.Iterable<?> values)HttpHeadersDefaultHttpHeaders. set(java.lang.CharSequence name, java.lang.Object value)HttpHeadersDefaultHttpHeaders. set(java.lang.String name, java.lang.Iterable<?> values)HttpHeadersDefaultHttpHeaders. set(java.lang.String name, java.lang.Object value)HttpHeadersEmptyHttpHeaders. set(java.lang.String name, java.lang.Iterable<?> values)HttpHeadersEmptyHttpHeaders. set(java.lang.String name, java.lang.Object value)HttpHeadersHttpHeaders. set(HttpHeaders headers)Cleans the current header entries and copies all header entries of the specifiedheaders.HttpHeadersHttpHeaders. set(java.lang.CharSequence name, java.lang.Iterable<?> values)Sets a header with the specified name and values.HttpHeadersHttpHeaders. set(java.lang.CharSequence name, java.lang.Object value)Sets a header with the specified name and value.abstract HttpHeadersHttpHeaders. set(java.lang.String name, java.lang.Iterable<?> values)abstract HttpHeadersHttpHeaders. set(java.lang.String name, java.lang.Object value)HttpHeadersReadOnlyHttpHeaders. set(java.lang.String name, java.lang.Iterable<?> values)HttpHeadersReadOnlyHttpHeaders. set(java.lang.String name, java.lang.Object value)HttpHeadersHttpHeaders. setAll(HttpHeaders headers)Retains all current headers but callsset(String, Object)for each entry inheadersHttpHeadersDefaultHttpHeaders. setInt(java.lang.CharSequence name, int value)HttpHeadersEmptyHttpHeaders. setInt(java.lang.CharSequence name, int value)abstract HttpHeadersHttpHeaders. setInt(java.lang.CharSequence name, int value)Set thenametovalue.HttpHeadersReadOnlyHttpHeaders. setInt(java.lang.CharSequence name, int value)HttpHeadersDefaultHttpHeaders. setShort(java.lang.CharSequence name, short value)HttpHeadersEmptyHttpHeaders. setShort(java.lang.CharSequence name, short value)abstract HttpHeadersHttpHeaders. setShort(java.lang.CharSequence name, short value)Set thenametovalue.HttpHeadersReadOnlyHttpHeaders. setShort(java.lang.CharSequence name, short value)HttpHeadersDefaultFullHttpRequest. trailingHeaders()HttpHeadersDefaultFullHttpResponse. trailingHeaders()HttpHeadersDefaultLastHttpContent. trailingHeaders()HttpHeadersLastHttpContent. trailingHeaders()Methods in io.netty.handler.codec.http with parameters of type HttpHeaders Modifier and Type Method Description HttpHeadersDefaultHttpHeaders. add(HttpHeaders headers)HttpHeadersHttpHeaders. add(HttpHeaders headers)Adds all header entries of the specifiedheaders.protected voidHttpObjectEncoder. encodeHeaders(HttpHeaders headers, ByteBuf buf)Encode theHttpHeadersinto aByteBuf.booleanHttpServerUpgradeHandler.UpgradeCodec. prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders upgradeHeaders)Prepares theupgradeHeadersfor a protocol update based upon the contents ofupgradeRequest.HttpHeadersDefaultHttpHeaders. set(HttpHeaders headers)HttpHeadersHttpHeaders. set(HttpHeaders headers)Cleans the current header entries and copies all header entries of the specifiedheaders.HttpHeadersHttpHeaders. setAll(HttpHeaders headers)Retains all current headers but callsset(String, Object)for each entry inheadersstatic voidHttpUtil. 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 HttpHeadersCorsConfig. 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 HttpHeadersWebSocketClientHandshaker. customHeadersMethods in io.netty.handler.codec.http.websocketx that return HttpHeaders Modifier and Type Method Description HttpHeadersWebSocketClientProtocolConfig. customHeaders()HttpHeadersWebSocketServerProtocolHandler.HandshakeComplete. requestHeaders()Methods in io.netty.handler.codec.http.websocketx with parameters of type HttpHeaders Modifier and Type Method Description WebSocketClientProtocolConfig.BuilderWebSocketClientProtocolConfig.Builder. customHeaders(HttpHeaders customHeaders)Map of custom headers to add to the client requestChannelFutureWebSocketServerHandshaker. handshake(Channel channel, FullHttpRequest req, HttpHeaders responseHeaders, ChannelPromise promise)Performs the opening handshake When call this method you MUST NOT retain theFullHttpRequestwhich is passed in.ChannelFutureWebSocketServerHandshaker. handshake(Channel channel, HttpRequest req, HttpHeaders responseHeaders, ChannelPromise promise)Performs the opening handshake When call this method you MUST NOT retain theHttpRequestwhich is passed in.static WebSocketClientHandshakerWebSocketClientHandshakerFactory. newHandshaker(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders)Creates a new handshaker.static WebSocketClientHandshakerWebSocketClientHandshakerFactory. newHandshaker(java.net.URI webSocketURL, WebSocketVersion version, java.lang.String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)Creates a new handshaker.static WebSocketClientHandshakerWebSocketClientHandshakerFactory. 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 WebSocketClientHandshakerWebSocketClientHandshakerFactory. 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 WebSocketClientHandshakerWebSocketClientHandshakerFactory. 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 WebSocketClientHandshakerWebSocketClientHandshakerFactory. 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 FullHttpResponseWebSocketServerHandshaker. newHandshakeResponse(FullHttpRequest req, HttpHeaders responseHeaders)Returns a new {@link FullHttpResponse) which will be used for as response to the handshake request.protected FullHttpResponseWebSocketServerHandshaker00. newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)Handle the web socket handshake for the web socket specification HyBi version 0 and lower.protected FullHttpResponseWebSocketServerHandshaker07. newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)Handle the web socket handshake for the web socket specification HyBi version 7.protected FullHttpResponseWebSocketServerHandshaker08. newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)Handle the web socket handshake for the web socket specification HyBi version 8 to 10.protected FullHttpResponseWebSocketServerHandshaker13. 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 voidHttpConversionUtil. addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders, HttpHeaders outputHeaders, HttpVersion httpVersion, boolean isTrailer, boolean isRequest)Translate and add HTTP/2 headers to HTTP/1.x headers.booleanHttp2ServerUpgradeCodec. prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders headers)static Http2HeadersHttpConversionUtil. toHttp2Headers(HttpHeaders inHeaders, boolean validateHeaders)static voidHttpConversionUtil. 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 HttpHeadersHttpProxyHandler.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)
-