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.
|
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 . |
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 |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpHeaders.add(CharSequence name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
HttpHeaders |
DefaultHttpHeaders.add(CharSequence name,
Iterable<?> values) |
HttpHeaders |
HttpHeaders.add(CharSequence name,
Object value)
Adds a new header with the specified name and value.
|
HttpHeaders |
DefaultHttpHeaders.add(CharSequence name,
Object value) |
HttpHeaders |
HttpHeaders.add(HttpHeaders headers)
Adds all header entries of the specified
headers . |
HttpHeaders |
DefaultHttpHeaders.add(HttpHeaders headers) |
abstract HttpHeaders |
HttpHeaders.add(String name,
Iterable<?> values) |
HttpHeaders |
EmptyHttpHeaders.add(String name,
Iterable<?> values) |
HttpHeaders |
DefaultHttpHeaders.add(String name,
Iterable<?> values) |
abstract HttpHeaders |
HttpHeaders.add(String name,
Object value) |
HttpHeaders |
EmptyHttpHeaders.add(String name,
Object value) |
HttpHeaders |
DefaultHttpHeaders.add(String name,
Object value) |
abstract HttpHeaders |
HttpHeaders.addInt(CharSequence name,
int value)
Add the
name to value . |
HttpHeaders |
EmptyHttpHeaders.addInt(CharSequence name,
int value) |
HttpHeaders |
DefaultHttpHeaders.addInt(CharSequence name,
int value) |
abstract HttpHeaders |
HttpHeaders.addShort(CharSequence name,
short value)
Add the
name to value . |
HttpHeaders |
EmptyHttpHeaders.addShort(CharSequence name,
short value) |
HttpHeaders |
DefaultHttpHeaders.addShort(CharSequence name,
short value) |
abstract HttpHeaders |
HttpHeaders.clear()
Removes all headers from this
HttpMessage . |
HttpHeaders |
EmptyHttpHeaders.clear() |
HttpHeaders |
DefaultHttpHeaders.clear() |
HttpHeaders |
HttpMessage.headers()
Returns the headers of this message.
|
HttpHeaders |
DefaultHttpMessage.headers() |
HttpHeaders |
HttpHeaders.remove(CharSequence name)
Removes the header with the specified name.
|
HttpHeaders |
DefaultHttpHeaders.remove(CharSequence name) |
abstract HttpHeaders |
HttpHeaders.remove(String name) |
HttpHeaders |
EmptyHttpHeaders.remove(String name) |
HttpHeaders |
DefaultHttpHeaders.remove(String name) |
HttpHeaders |
HttpHeaders.set(CharSequence name,
Iterable<?> values)
Sets a header with the specified name and values.
|
HttpHeaders |
DefaultHttpHeaders.set(CharSequence name,
Iterable<?> values) |
HttpHeaders |
HttpHeaders.set(CharSequence name,
Object value)
Sets a header with the specified name and value.
|
HttpHeaders |
DefaultHttpHeaders.set(CharSequence name,
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(String name,
Iterable<?> values) |
HttpHeaders |
EmptyHttpHeaders.set(String name,
Iterable<?> values) |
HttpHeaders |
DefaultHttpHeaders.set(String name,
Iterable<?> values) |
abstract HttpHeaders |
HttpHeaders.set(String name,
Object value) |
HttpHeaders |
EmptyHttpHeaders.set(String name,
Object value) |
HttpHeaders |
DefaultHttpHeaders.set(String name,
Object value) |
HttpHeaders |
HttpHeaders.setAll(HttpHeaders headers)
Retains all current headers but calls
set(String, Object) for each entry in headers |
abstract HttpHeaders |
HttpHeaders.setInt(CharSequence name,
int value)
Set the
name to value . |
HttpHeaders |
EmptyHttpHeaders.setInt(CharSequence name,
int value) |
HttpHeaders |
DefaultHttpHeaders.setInt(CharSequence name,
int value) |
abstract HttpHeaders |
HttpHeaders.setShort(CharSequence name,
short value)
Set the
name to value . |
HttpHeaders |
EmptyHttpHeaders.setShort(CharSequence name,
short value) |
HttpHeaders |
DefaultHttpHeaders.setShort(CharSequence name,
short 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 . |
boolean |
HttpServerUpgradeHandler.UpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
HttpHeaders upgradeHeaders)
Prepares the
upgradeHeaders for a protocol update based upon the contents of upgradeRequest . |
HttpHeaders |
HttpHeaders.set(HttpHeaders headers)
Cleans the current header entries and copies all header entries of the specified
headers . |
HttpHeaders |
DefaultHttpHeaders.set(HttpHeaders 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. |
Constructor and Description |
---|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
ByteBuf content,
HttpHeaders headers,
HttpHeaders trailingHeader) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content,
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.
|
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 |
---|---|
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(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.
|
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(URI uri,
WebSocketVersion version,
String subprotocol,
HttpHeaders customHeaders,
int maxFramePayloadLength)
Base constructor
|
WebSocketClientHandshaker00(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
HttpHeaders customHeaders,
int maxFramePayloadLength)
Constructor specifying the destination web socket location and version to initiate
|
WebSocketClientHandshaker07(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength)
Creates a new instance.
|
WebSocketClientHandshaker07(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength,
boolean performMasking,
boolean allowMaskMismatch)
Creates a new instance.
|
WebSocketClientHandshaker08(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength)
Creates a new instance.
|
WebSocketClientHandshaker08(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength,
boolean performMasking,
boolean allowMaskMismatch)
Creates a new instance.
|
WebSocketClientHandshaker13(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength)
Creates a new instance.
|
WebSocketClientHandshaker13(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength,
boolean performMasking,
boolean allowMaskMismatch)
Creates a new instance.
|
WebSocketClientProtocolHandler(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength)
Base constructor
|
WebSocketClientProtocolHandler(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength,
boolean handleCloseFrames)
Base constructor
|
WebSocketClientProtocolHandler(URI webSocketURL,
WebSocketVersion version,
String subprotocol,
boolean allowExtensions,
HttpHeaders customHeaders,
int maxFramePayloadLength,
boolean handleCloseFrames,
boolean performMasking,
boolean allowMaskMismatch)
Base constructor
|
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.
|
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) |
Copyright © 2008–2017 The Netty Project. All rights reserved.