程序包 | 说明 |
---|---|
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.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultHttpHeaders |
限定符和类型 | 字段和说明 |
---|---|
static HttpHeaders |
HttpHeaders.EMPTY_HEADERS |
限定符和类型 | 方法和说明 |
---|---|
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() |
限定符和类型 | 方法和说明 |
---|---|
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) |
限定符和类型 | 方法和说明 |
---|---|
HttpHeaders |
CorsConfig.preflightResponseHeaders()
Returns HTTP response headers that should be added to a CORS preflight response.
|
限定符和类型 | 字段和说明 |
---|---|
protected HttpHeaders |
WebSocketClientHandshaker.customHeaders |
限定符和类型 | 方法和说明 |
---|---|
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.
|
构造器和说明 |
---|
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
|