Uses of Class
io.netty5.handler.codec.http.HttpHeaders
-
Packages that use HttpHeaders Package Description io.netty5.handler.codec.http Encoder, decoder and their related message types for HTTP.io.netty5.handler.codec.http.cors This package contains Cross Origin Resource Sharing (CORS) related classes.io.netty5.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty5.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames. -
-
Uses of HttpHeaders in io.netty5.handler.codec.http
Subclasses of HttpHeaders in io.netty5.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.Methods in io.netty5.handler.codec.http that return HttpHeaders Modifier and Type Method Description HttpHeadersDefaultHttpHeaders. add(HttpHeaders headers)HttpHeadersDefaultHttpHeaders. add(CharSequence name, Iterable<?> values)HttpHeadersDefaultHttpHeaders. add(CharSequence name, Object value)HttpHeadersDefaultHttpHeaders. add(String name, Iterable<?> values)HttpHeadersDefaultHttpHeaders. add(String name, Object value)HttpHeadersEmptyHttpHeaders. add(String name, Iterable<?> values)HttpHeadersEmptyHttpHeaders. add(String name, Object value)HttpHeadersHttpHeaders. add(HttpHeaders headers)Adds all header entries of the specifiedheaders.HttpHeadersHttpHeaders. add(CharSequence name, Iterable<?> values)Adds a new header with the specified name and values.HttpHeadersHttpHeaders. add(CharSequence name, Object value)Adds a new header with the specified name and value.abstract HttpHeadersHttpHeaders. add(String name, Iterable<?> values)abstract HttpHeadersHttpHeaders. add(String name, Object value)HttpHeadersReadOnlyHttpHeaders. add(String name, Iterable<?> values)HttpHeadersReadOnlyHttpHeaders. add(String name, Object value)HttpHeadersDefaultHttpHeaders. addInt(CharSequence name, int value)HttpHeadersEmptyHttpHeaders. addInt(CharSequence name, int value)abstract HttpHeadersHttpHeaders. addInt(CharSequence name, int value)Add thenametovalue.HttpHeadersReadOnlyHttpHeaders. addInt(CharSequence name, int value)HttpHeadersDefaultHttpHeaders. addShort(CharSequence name, short value)HttpHeadersEmptyHttpHeaders. addShort(CharSequence name, short value)abstract HttpHeadersHttpHeaders. addShort(CharSequence name, short value)Add thenametovalue.HttpHeadersReadOnlyHttpHeaders. addShort(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.HttpHeadersDefaultHttpHeaders. remove(CharSequence name)HttpHeadersDefaultHttpHeaders. remove(String name)HttpHeadersEmptyHttpHeaders. remove(String name)HttpHeadersHttpHeaders. remove(CharSequence name)Removes the header with the specified name.abstract HttpHeadersHttpHeaders. remove(String name)HttpHeadersReadOnlyHttpHeaders. remove(String name)HttpHeadersDefaultHttpHeaders. set(HttpHeaders headers)HttpHeadersDefaultHttpHeaders. set(CharSequence name, Iterable<?> values)HttpHeadersDefaultHttpHeaders. set(CharSequence name, Object value)HttpHeadersDefaultHttpHeaders. set(String name, Iterable<?> values)HttpHeadersDefaultHttpHeaders. set(String name, Object value)HttpHeadersEmptyHttpHeaders. set(String name, Iterable<?> values)HttpHeadersEmptyHttpHeaders. set(String name, Object value)HttpHeadersHttpHeaders. set(HttpHeaders headers)Cleans the current header entries and copies all header entries of the specifiedheaders.HttpHeadersHttpHeaders. set(CharSequence name, Iterable<?> values)Sets a header with the specified name and values.HttpHeadersHttpHeaders. set(CharSequence name, Object value)Sets a header with the specified name and value.abstract HttpHeadersHttpHeaders. set(String name, Iterable<?> values)abstract HttpHeadersHttpHeaders. set(String name, Object value)HttpHeadersReadOnlyHttpHeaders. set(String name, Iterable<?> values)HttpHeadersReadOnlyHttpHeaders. set(String name, Object value)HttpHeadersHttpHeaders. setAll(HttpHeaders headers)Retains all current headers but callsset(String, Object)for each entry inheadersHttpHeadersDefaultHttpHeaders. setInt(CharSequence name, int value)HttpHeadersEmptyHttpHeaders. setInt(CharSequence name, int value)abstract HttpHeadersHttpHeaders. setInt(CharSequence name, int value)Set thenametovalue.HttpHeadersReadOnlyHttpHeaders. setInt(CharSequence name, int value)HttpHeadersDefaultHttpHeaders. setShort(CharSequence name, short value)HttpHeadersEmptyHttpHeaders. setShort(CharSequence name, short value)abstract HttpHeadersHttpHeaders. setShort(CharSequence name, short value)Set thenametovalue.HttpHeadersReadOnlyHttpHeaders. setShort(CharSequence name, short value)HttpHeadersDefaultFullHttpRequest. trailingHeaders()HttpHeadersDefaultFullHttpResponse. trailingHeaders()HttpHeadersDefaultLastHttpContent. trailingHeaders()HttpHeadersEmptyLastHttpContent. trailingHeaders()HttpHeadersLastHttpContent. trailingHeaders()Methods in io.netty5.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, Buffer buf)Encode theHttpHeadersinto aBuffer.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.netty5.handler.codec.http with parameters of type HttpHeaders Constructor Description DefaultFullHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, Buffer payload, HttpHeaders headers, HttpHeaders trailingHeader)DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload, HttpHeaders headers, HttpHeaders trailingHeaders)DefaultHttpMessage(HttpVersion version, HttpHeaders headers)Creates a new instance.DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, HttpHeaders headers)Creates a new instance.DefaultHttpResponse(HttpVersion version, HttpResponseStatus status, HttpHeaders headers)Creates a new instance.DefaultLastHttpContent(Buffer payload, HttpHeaders trailingHeaders) -
Uses of HttpHeaders in io.netty5.handler.codec.http.cors
Methods in io.netty5.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.netty5.handler.codec.http.websocketx
Fields in io.netty5.handler.codec.http.websocketx declared as HttpHeaders Modifier and Type Field Description protected HttpHeadersWebSocketClientHandshaker. customHeadersMethods in io.netty5.handler.codec.http.websocketx that return HttpHeaders Modifier and Type Method Description HttpHeadersWebSocketClientProtocolConfig. customHeaders()HttpHeadersWebSocketServerHandshakeCompletionEvent. requestHeaders()Return the requestHttpHeadersof the handshake ifProtocolEvent.isSuccess()returnstrue,nullotherwise.Methods in io.netty5.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 requestFuture<Void>WebSocketServerHandshaker. handshake(Channel channel, FullHttpRequest req, HttpHeaders responseHeaders)Performs the opening handshake When call this method you MUST NOT retain theFullHttpRequestwhich is passed in.Future<Void>WebSocketServerHandshaker. handshake(Channel channel, HttpRequest req, HttpHeaders responseHeaders)Performs the opening handshake When call this method you MUST NOT retain theHttpRequestwhich is passed in.static WebSocketClientHandshakerWebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders)Creates a new handshaker.static WebSocketClientHandshakerWebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)Creates a new handshaker.static WebSocketClientHandshakerWebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch)Creates a new handshaker.static WebSocketClientHandshakerWebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis)Creates a new handshaker.static WebSocketClientHandshakerWebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl)Creates a new handshaker.protected abstract FullHttpResponseWebSocketServerHandshaker. newHandshakeResponse(BufferAllocator allocator, FullHttpRequest req, HttpHeaders responseHeaders)Returns a new {@link FullHttpResponse) which will be used for as response to the handshake request.protected FullHttpResponseWebSocketServerHandshaker13. newHandshakeResponse(BufferAllocator allocator, FullHttpRequest req, HttpHeaders headers)Handle the web socket handshake for the web socket specification HyBi versions 13-17.Constructors in io.netty5.handler.codec.http.websocketx with parameters of type HttpHeaders Constructor Description WebSocketClientHandshaker(URI uri, WebSocketVersion version, String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength)Base constructorWebSocketClientHandshaker(URI uri, WebSocketVersion version, String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength, long forceCloseTimeoutMillis)Base constructorWebSocketClientHandshaker(URI uri, WebSocketVersion version, String subprotocol, HttpHeaders customHeaders, int maxFramePayloadLength, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl)Base constructorWebSocketClientHandshaker13(URI webSocketURL, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)Creates a new instance.WebSocketClientHandshaker13(URI webSocketURL, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch)Creates a new instance.WebSocketClientHandshaker13(URI webSocketURL, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis)Creates a new instance.WebSocketClientProtocolHandler(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)Base constructorWebSocketClientProtocolHandler(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean handleCloseFrames)Base constructorWebSocketClientProtocolHandler(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean handleCloseFrames, boolean performMasking, boolean allowMaskMismatch)Base constructorWebSocketClientProtocolHandler(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean handleCloseFrames, boolean performMasking, boolean allowMaskMismatch, long handshakeTimeoutMillis)Base constructorWebSocketClientProtocolHandler(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean handleCloseFrames, long handshakeTimeoutMillis)Base constructorWebSocketClientProtocolHandler(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, long handshakeTimeoutMillis)Base constructorWebSocketServerHandshakeCompletionEvent(WebSocketVersion version, String requestUri, HttpHeaders requestHeaders, String selectedSubprotocol)Create a new event that indicate a successful websocket handshake. -
Uses of HttpHeaders in io.netty5.handler.codec.http2
Methods in io.netty5.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)
-