Package | Description |
---|---|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
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 |
DefaultFullHttpRequest
Default implementation of
FullHttpRequest . |
Modifier and Type | Method and Description |
---|---|
FullHttpRequest |
FullHttpRequest.copy() |
FullHttpRequest |
DefaultFullHttpRequest.copy() |
FullHttpRequest |
FullHttpRequest.duplicate() |
FullHttpRequest |
DefaultFullHttpRequest.duplicate() |
FullHttpRequest |
FullHttpRequest.replace(ByteBuf content) |
FullHttpRequest |
DefaultFullHttpRequest.replace(ByteBuf content) |
FullHttpRequest |
FullHttpRequest.retain() |
FullHttpRequest |
DefaultFullHttpRequest.retain() |
FullHttpRequest |
FullHttpRequest.retain(int increment) |
FullHttpRequest |
DefaultFullHttpRequest.retain(int increment) |
FullHttpRequest |
FullHttpRequest.retainedDuplicate() |
FullHttpRequest |
DefaultFullHttpRequest.retainedDuplicate() |
FullHttpRequest |
FullHttpRequest.setMethod(HttpMethod method) |
FullHttpRequest |
DefaultFullHttpRequest.setMethod(HttpMethod method) |
FullHttpRequest |
FullHttpRequest.setProtocolVersion(HttpVersion version) |
FullHttpRequest |
DefaultFullHttpRequest.setProtocolVersion(HttpVersion version) |
FullHttpRequest |
FullHttpRequest.setUri(String uri) |
FullHttpRequest |
DefaultFullHttpRequest.setUri(String uri) |
FullHttpRequest |
FullHttpRequest.touch() |
FullHttpRequest |
DefaultFullHttpRequest.touch() |
FullHttpRequest |
FullHttpRequest.touch(Object hint) |
FullHttpRequest |
DefaultFullHttpRequest.touch(Object hint) |
FullHttpRequest |
HttpServerUpgradeHandler.UpgradeEvent.upgradeRequest()
Gets the request that triggered the protocol upgrade.
|
Modifier and Type | Method and Description |
---|---|
boolean |
HttpServerUpgradeHandler.UpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
HttpHeaders upgradeHeaders)
Prepares the
upgradeHeaders for a protocol update based upon the contents of upgradeRequest . |
void |
HttpServerUpgradeHandler.UpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest)
Performs an HTTP protocol upgrade from the source codec.
|
Modifier and Type | Method and Description |
---|---|
protected FullHttpRequest |
WebSocketClientHandshaker13.newHandshakeRequest()
/**
Sends the opening request to the server:
GET /chat HTTP/1.1
Host: server.example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Origin: http://example.com
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version: 13
|
protected FullHttpRequest |
WebSocketClientHandshaker08.newHandshakeRequest()
/**
Sends the opening request to the server:
GET /chat HTTP/1.1
Host: server.example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Origin: http://example.com
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version: 8
|
protected FullHttpRequest |
WebSocketClientHandshaker07.newHandshakeRequest()
/**
Sends the opening request to the server:
GET /chat HTTP/1.1
Host: server.example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Origin: http://example.com
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version: 7
|
protected FullHttpRequest |
WebSocketClientHandshaker00.newHandshakeRequest()
Sends the opening request to the server:
GET /demo HTTP/1.1
Upgrade: WebSocket
Connection: Upgrade
Host: example.com
Origin: http://example.com
Sec-WebSocket-Key1: 4 @1 46546xW%0l 1 5
Sec-WebSocket-Key2: 12998 5 Y3 1 .P00
^n:ds[4U
|
protected abstract FullHttpRequest |
WebSocketClientHandshaker.newHandshakeRequest()
Returns a new {@link FullHttpRequest) which will be used for the handshake.
|
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel,
FullHttpRequest req)
Performs the opening handshake.
|
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. |
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.
|
Modifier and Type | Method and Description |
---|---|
static FullHttpRequest |
HttpConversionUtil.toFullHttpRequest(int streamId,
Http2Headers http2Headers,
ByteBufAllocator alloc,
boolean validateHttpHeaders)
Create a new object to contain the request data
|
Modifier and Type | Method and Description |
---|---|
boolean |
Http2ServerUpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
HttpHeaders headers) |
void |
Http2ServerUpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest) |
Copyright © 2008–2017 The Netty Project. All rights reserved.