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.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultHttpHeaders |
Modifier and Type | Field and Description |
---|---|
static HttpHeaders |
HttpHeaders.EMPTY_HEADERS |
Modifier and Type | Method and Description |
---|---|
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.Iterable<?> values) |
HttpHeaders |
HttpHeaders.add(java.lang.CharSequence name,
java.lang.Object value)
Adds a new header with the specified name and value.
|
HttpHeaders |
DefaultHttpHeaders.add(java.lang.CharSequence name,
java.lang.Object value) |
HttpHeaders |
HttpHeaders.add(HttpHeaders headers)
Adds all header entries of the specified
headers . |
HttpHeaders |
DefaultHttpHeaders.add(HttpHeaders headers) |
abstract HttpHeaders |
HttpHeaders.add(java.lang.String name,
java.lang.Iterable<?> values) |
HttpHeaders |
DefaultHttpHeaders.add(java.lang.String name,
java.lang.Iterable<?> values) |
abstract HttpHeaders |
HttpHeaders.add(java.lang.String name,
java.lang.Object value) |
HttpHeaders |
DefaultHttpHeaders.add(java.lang.String name,
java.lang.Object value) |
abstract HttpHeaders |
HttpHeaders.clear()
Removes all headers from this
HttpMessage . |
HttpHeaders |
DefaultHttpHeaders.clear() |
HttpHeaders |
HttpMessage.headers()
Returns the headers of this message.
|
HttpHeaders |
DefaultHttpMessage.headers() |
HttpHeaders |
HttpHeaders.remove(java.lang.CharSequence name)
Removes the header with the specified name.
|
HttpHeaders |
DefaultHttpHeaders.remove(java.lang.CharSequence name) |
abstract HttpHeaders |
HttpHeaders.remove(java.lang.String name) |
HttpHeaders |
DefaultHttpHeaders.remove(java.lang.String name) |
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.Iterable<?> values) |
HttpHeaders |
HttpHeaders.set(java.lang.CharSequence name,
java.lang.Object value)
Sets a header with the specified name and value.
|
HttpHeaders |
DefaultHttpHeaders.set(java.lang.CharSequence name,
java.lang.Object value) |
HttpHeaders |
HttpHeaders.set(HttpHeaders headers)
Cleans the current header entries and copies all header entries of the specified
headers . |
HttpHeaders |
DefaultHttpHeaders.set(HttpHeaders headers) |
abstract HttpHeaders |
HttpHeaders.set(java.lang.String name,
java.lang.Iterable<?> values) |
HttpHeaders |
DefaultHttpHeaders.set(java.lang.String name,
java.lang.Iterable<?> values) |
abstract HttpHeaders |
HttpHeaders.set(java.lang.String name,
java.lang.Object value) |
HttpHeaders |
DefaultHttpHeaders.set(java.lang.String name,
java.lang.Object value) |
HttpHeaders |
LastHttpContent.trailingHeaders() |
HttpHeaders |
DefaultLastHttpContent.trailingHeaders() |
HttpHeaders |
DefaultFullHttpResponse.trailingHeaders() |
HttpHeaders |
DefaultFullHttpRequest.trailingHeaders() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpHeaders.add(HttpHeaders headers)
Adds all header entries of the specified
headers . |
HttpHeaders |
DefaultHttpHeaders.add(HttpHeaders headers) |
protected void |
HttpObjectEncoder.encodeHeaders(HttpHeaders headers,
ByteBuf buf)
Encode the
HttpHeaders into a ByteBuf . |
HttpHeaders |
HttpHeaders.set(HttpHeaders headers)
Cleans the current header entries and copies all header entries of the specified
headers . |
HttpHeaders |
DefaultHttpHeaders.set(HttpHeaders headers) |
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 | Field and Description |
---|---|
protected HttpHeaders |
WebSocketClientHandshaker.customHeaders |
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.
|
protected FullHttpResponse |
WebSocketServerHandshaker13.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi versions 13-17.
|
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 |
WebSocketServerHandshaker07.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 7.
|
protected FullHttpResponse |
WebSocketServerHandshaker00.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 0 and lower.
|
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.
|
Constructor and Description |
---|
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.
|
WebSocketClientHandshaker08(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)
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
|
Copyright © 2008–2018 The Netty Project. All rights reserved.