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 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.Methods in io.netty5.handler.codec.http that return HttpHeaders Modifier and Type Method Description HttpHeaders
DefaultHttpHeaders. add(HttpHeaders headers)
HttpHeaders
DefaultHttpHeaders. add(CharSequence name, Iterable<?> values)
HttpHeaders
DefaultHttpHeaders. add(CharSequence name, Object value)
HttpHeaders
DefaultHttpHeaders. add(String name, Iterable<?> values)
HttpHeaders
DefaultHttpHeaders. add(String name, Object value)
HttpHeaders
EmptyHttpHeaders. add(String name, Iterable<?> values)
HttpHeaders
EmptyHttpHeaders. add(String name, Object value)
HttpHeaders
HttpHeaders. add(HttpHeaders headers)
Adds all header entries of the specifiedheaders
.HttpHeaders
HttpHeaders. add(CharSequence name, Iterable<?> values)
Adds a new header with the specified name and values.HttpHeaders
HttpHeaders. add(CharSequence name, Object value)
Adds a new header with the specified name and value.abstract HttpHeaders
HttpHeaders. add(String name, Iterable<?> values)
abstract HttpHeaders
HttpHeaders. add(String name, Object value)
HttpHeaders
ReadOnlyHttpHeaders. add(String name, Iterable<?> values)
HttpHeaders
ReadOnlyHttpHeaders. add(String name, Object value)
HttpHeaders
DefaultHttpHeaders. addInt(CharSequence name, int value)
HttpHeaders
EmptyHttpHeaders. addInt(CharSequence name, int value)
abstract HttpHeaders
HttpHeaders. addInt(CharSequence name, int value)
Add thename
tovalue
.HttpHeaders
ReadOnlyHttpHeaders. addInt(CharSequence name, int value)
HttpHeaders
DefaultHttpHeaders. addShort(CharSequence name, short value)
HttpHeaders
EmptyHttpHeaders. addShort(CharSequence name, short value)
abstract HttpHeaders
HttpHeaders. addShort(CharSequence name, short value)
Add thename
tovalue
.HttpHeaders
ReadOnlyHttpHeaders. addShort(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
DefaultHttpHeaders. remove(CharSequence name)
HttpHeaders
DefaultHttpHeaders. remove(String name)
HttpHeaders
EmptyHttpHeaders. remove(String name)
HttpHeaders
HttpHeaders. remove(CharSequence name)
Removes the header with the specified name.abstract HttpHeaders
HttpHeaders. remove(String name)
HttpHeaders
ReadOnlyHttpHeaders. remove(String name)
HttpHeaders
DefaultHttpHeaders. set(HttpHeaders headers)
HttpHeaders
DefaultHttpHeaders. set(CharSequence name, Iterable<?> values)
HttpHeaders
DefaultHttpHeaders. set(CharSequence name, Object value)
HttpHeaders
DefaultHttpHeaders. set(String name, Iterable<?> values)
HttpHeaders
DefaultHttpHeaders. set(String name, Object value)
HttpHeaders
EmptyHttpHeaders. set(String name, Iterable<?> values)
HttpHeaders
EmptyHttpHeaders. set(String name, Object value)
HttpHeaders
HttpHeaders. set(HttpHeaders headers)
Cleans the current header entries and copies all header entries of the specifiedheaders
.HttpHeaders
HttpHeaders. set(CharSequence name, Iterable<?> values)
Sets a header with the specified name and values.HttpHeaders
HttpHeaders. set(CharSequence name, Object value)
Sets a header with the specified name and value.abstract HttpHeaders
HttpHeaders. set(String name, Iterable<?> values)
abstract HttpHeaders
HttpHeaders. set(String name, Object value)
HttpHeaders
ReadOnlyHttpHeaders. set(String name, Iterable<?> values)
HttpHeaders
ReadOnlyHttpHeaders. set(String name, Object value)
HttpHeaders
HttpHeaders. setAll(HttpHeaders headers)
Retains all current headers but callsset(String, Object)
for each entry inheaders
HttpHeaders
DefaultHttpHeaders. setInt(CharSequence name, int value)
HttpHeaders
EmptyHttpHeaders. setInt(CharSequence name, int value)
abstract HttpHeaders
HttpHeaders. setInt(CharSequence name, int value)
Set thename
tovalue
.HttpHeaders
ReadOnlyHttpHeaders. setInt(CharSequence name, int value)
HttpHeaders
DefaultHttpHeaders. setShort(CharSequence name, short value)
HttpHeaders
EmptyHttpHeaders. setShort(CharSequence name, short value)
abstract HttpHeaders
HttpHeaders. setShort(CharSequence name, short value)
Set thename
tovalue
.HttpHeaders
ReadOnlyHttpHeaders. setShort(CharSequence name, short value)
HttpHeaders
DefaultFullHttpRequest. trailingHeaders()
HttpHeaders
DefaultFullHttpResponse. trailingHeaders()
HttpHeaders
DefaultLastHttpContent. trailingHeaders()
HttpHeaders
EmptyLastHttpContent. trailingHeaders()
HttpHeaders
LastHttpContent. trailingHeaders()
Methods in io.netty5.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, Buffer buf)
Encode theHttpHeaders
into aBuffer
.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.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 HttpHeaders
CorsConfig. 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 HttpHeaders
WebSocketClientHandshaker. customHeaders
Methods in io.netty5.handler.codec.http.websocketx that return HttpHeaders Modifier and Type Method Description HttpHeaders
WebSocketClientProtocolConfig. customHeaders()
HttpHeaders
WebSocketServerHandshakeCompletionEvent. requestHeaders()
Return the requestHttpHeaders
of the handshake ifProtocolEvent.isSuccess()
returnstrue
,null
otherwise.Methods in io.netty5.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 requestFuture<Void>
WebSocketServerHandshaker. handshake(Channel channel, FullHttpRequest req, HttpHeaders responseHeaders)
Performs the opening handshake When call this method you MUST NOT retain theFullHttpRequest
which 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 theHttpRequest
which is passed in.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, long forceCloseTimeoutMillis)
Creates a new handshaker.static WebSocketClientHandshaker
WebSocketClientHandshakerFactory. 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 FullHttpResponse
WebSocketServerHandshaker. newHandshakeResponse(BufferAllocator allocator, FullHttpRequest req, HttpHeaders responseHeaders)
Returns a new {@link FullHttpResponse) which will be used for as response to the handshake request.protected FullHttpResponse
WebSocketServerHandshaker13. 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 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)
-