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.multipart |
HTTP multipart support.
|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
io.netty.handler.codec.http.websocketx.extensions |
Encoder, decoder, handshakers to handle
WebSocket Extensions.
|
io.netty.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
Modifier and Type | Class and 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 of
HttpHeaders . |
private static class |
DefaultLastHttpContent.TrailingHttpHeaders |
class |
EmptyHttpHeaders |
Modifier and Type | Field and Description |
---|---|
static HttpHeaders |
HttpHeaders.EMPTY_HEADERS
Deprecated.
Use
EmptyHttpHeaders.INSTANCE .
The instance is instantiated here to break the cyclic static initialization between |
private HttpHeaders |
DefaultHttpMessage.headers |
private HttpHeaders |
DefaultFullHttpRequest.trailingHeader |
private HttpHeaders |
ComposedLastHttpContent.trailingHeaders |
private HttpHeaders |
DefaultFullHttpResponse.trailingHeaders |
private HttpHeaders |
DefaultLastHttpContent.trailingHeaders |
private HttpHeaders |
HttpObjectAggregator.AggregatedFullHttpMessage.trailingHeaders |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
DefaultHttpHeaders.add(java.lang.CharSequence name,
java.lang.Iterable<?> values) |
HttpHeaders |
HttpHeaders.add(java.lang.CharSequence name,
java.lang.Iterable<?> values)
Adds a new header with the specified name and values.
|
HttpHeaders |
DefaultHttpHeaders.add(java.lang.CharSequence name,
java.lang.Object value) |
HttpHeaders |
HttpHeaders.add(java.lang.CharSequence name,
java.lang.Object value)
Adds a new header with the specified name and value.
|
HttpHeaders |
DefaultHttpHeaders.add(HttpHeaders headers) |
HttpHeaders |
HttpHeaders.add(HttpHeaders headers)
Adds all header entries of the specified
headers . |
HttpHeaders |
DefaultHttpHeaders.add(java.lang.String name,
java.lang.Iterable<?> values) |
HttpHeaders |
EmptyHttpHeaders.add(java.lang.String name,
java.lang.Iterable<?> values) |
abstract HttpHeaders |
HttpHeaders.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.Object value) |
abstract HttpHeaders |
HttpHeaders.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 the
name to 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 the
name to value . |
HttpHeaders |
DefaultHttpHeaders.clear() |
HttpHeaders |
EmptyHttpHeaders.clear() |
abstract HttpHeaders |
HttpHeaders.clear()
Removes all headers from this
HttpMessage . |
HttpHeaders |
DefaultHttpMessage.headers() |
HttpHeaders |
HttpMessage.headers()
Returns the headers of this message.
|
HttpHeaders |
HttpObjectAggregator.AggregatedFullHttpMessage.headers() |
HttpHeaders |
DefaultHttpHeaders.remove(java.lang.CharSequence name) |
HttpHeaders |
HttpHeaders.remove(java.lang.CharSequence name)
Removes the header with the specified name.
|
HttpHeaders |
DefaultHttpHeaders.remove(java.lang.String name) |
HttpHeaders |
EmptyHttpHeaders.remove(java.lang.String name) |
abstract HttpHeaders |
HttpHeaders.remove(java.lang.String name) |
HttpHeaders |
DefaultHttpHeaders.set(java.lang.CharSequence name,
java.lang.Iterable<?> values) |
HttpHeaders |
HttpHeaders.set(java.lang.CharSequence name,
java.lang.Iterable<?> values)
Sets a header with the specified name and values.
|
HttpHeaders |
DefaultHttpHeaders.set(java.lang.CharSequence name,
java.lang.Object value) |
HttpHeaders |
HttpHeaders.set(java.lang.CharSequence name,
java.lang.Object value)
Sets a header with the specified name and value.
|
HttpHeaders |
DefaultHttpHeaders.set(HttpHeaders headers) |
HttpHeaders |
HttpHeaders.set(HttpHeaders headers)
Cleans the current header entries and copies all header entries of the specified
headers . |
HttpHeaders |
DefaultHttpHeaders.set(java.lang.String name,
java.lang.Iterable<?> values) |
HttpHeaders |
EmptyHttpHeaders.set(java.lang.String name,
java.lang.Iterable<?> values) |
abstract HttpHeaders |
HttpHeaders.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.Object value) |
abstract HttpHeaders |
HttpHeaders.set(java.lang.String name,
java.lang.Object value) |
HttpHeaders |
HttpHeaders.setAll(HttpHeaders headers)
Retains all current headers but calls
set(String, Object) for each entry in headers |
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 the
name to 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 the
name to value . |
HttpHeaders |
ComposedLastHttpContent.trailingHeaders() |
HttpHeaders |
DefaultFullHttpRequest.trailingHeaders() |
HttpHeaders |
DefaultFullHttpResponse.trailingHeaders() |
HttpHeaders |
DefaultLastHttpContent.trailingHeaders() |
HttpHeaders |
HttpObjectAggregator.AggregatedFullHttpMessage.trailingHeaders() |
HttpHeaders |
LastHttpContent.trailingHeaders() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
DefaultHttpHeaders.add(HttpHeaders headers) |
HttpHeaders |
HttpHeaders.add(HttpHeaders headers)
Adds all header entries of the specified
headers . |
private static void |
HttpMessageUtil.appendHeaders(java.lang.StringBuilder buf,
HttpHeaders headers) |
protected void |
HttpObjectEncoder.encodeHeaders(HttpHeaders headers,
ByteBuf buf)
Encode the
HttpHeaders into a ByteBuf . |
boolean |
HttpServerUpgradeHandler.UpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
HttpHeaders upgradeHeaders)
Prepares the
upgradeHeaders for a protocol update based upon the contents of upgradeRequest . |
HttpHeaders |
DefaultHttpHeaders.set(HttpHeaders headers) |
HttpHeaders |
HttpHeaders.set(HttpHeaders headers)
Cleans the current header entries and copies all header entries of the specified
headers . |
HttpHeaders |
HttpHeaders.setAll(HttpHeaders headers)
Retains all current headers but calls
set(String, Object) for each entry in headers |
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. |
(package private) void |
HttpObjectAggregator.AggregatedFullHttpMessage.setTrailingHeaders(HttpHeaders trailingHeaders) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
CorsConfig.preflightResponseHeaders()
Returns HTTP response headers that should be added to a CORS preflight response.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpPostRequestEncoder.WrappedHttpRequest.headers() |
HttpHeaders |
HttpPostRequestEncoder.WrappedFullHttpRequest.trailingHeaders() |
Modifier and Type | Field and Description |
---|---|
protected HttpHeaders |
WebSocketClientHandshaker.customHeaders |
private HttpHeaders |
WebSocketServerProtocolHandler.HandshakeComplete.requestHeaders |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
WebSocketServerProtocolHandler.HandshakeComplete.requestHeaders() |
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel,
FullHttpRequest req,
HttpHeaders responseHeaders,
ChannelPromise promise)
Performs the opening handshake
When call this method you MUST NOT retain the
FullHttpRequest 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 the
HttpRequest 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.
|
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.
|
Constructor and 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 constructor
|
WebSocketClientHandshaker00(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
HttpHeaders customHeaders,
int maxFramePayloadLength)
Constructor specifying the destination web socket 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.
|
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.
|
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.
|
WebSocketClientProtocolHandler(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength)
Base constructor
|
WebSocketClientProtocolHandler(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength,
boolean handleCloseFrames)
Base constructor
|
WebSocketClientProtocolHandler(java.net.URI webSocketURL,
WebSocketVersion version,
java.lang.String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength,
boolean handleCloseFrames,
boolean performMasking,
boolean allowMaskMismatch)
Base constructor
|
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
WebSocketExtensionUtil.isWebsocketUpgrade(HttpHeaders headers) |
Modifier and Type | Field and Description |
---|---|
private HttpHeaders |
HttpConversionUtil.Http2ToHttpHeaderTranslator.output |
Modifier and Type | Method and 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.
|
private int |
HttpToHttp2ConnectionHandler.getStreamId(HttpHeaders httpHeaders)
Get the next stream id either from the
HttpHeaders object or HTTP/2 codec |
private int |
InboundHttpToHttp2Adapter.getStreamId(HttpHeaders httpHeaders) |
boolean |
Http2ServerUpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
HttpHeaders headers) |
private static void |
HttpConversionUtil.setHttp2Scheme(HttpHeaders in,
java.net.URI uri,
Http2Headers out) |
static Http2Headers |
HttpConversionUtil.toHttp2Headers(HttpHeaders inHeaders,
boolean validateHeaders) |
static void |
HttpConversionUtil.toHttp2Headers(HttpHeaders inHeaders,
Http2Headers out) |
private static void |
HttpToHttp2ConnectionHandler.writeHeaders(ChannelHandlerContext ctx,
Http2ConnectionEncoder encoder,
int streamId,
HttpHeaders headers,
Http2Headers http2Headers,
boolean endStream,
Http2CodecUtil.SimpleChannelPromiseAggregator promiseAggregator) |
Constructor and Description |
---|
Http2ToHttpHeaderTranslator(int streamId,
HttpHeaders output,
boolean request)
Create a new instance
|