| 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  | DefaultFullHttpRequestDefault implementation of  FullHttpRequest. | 
| Modifier and Type | Method and Description | 
|---|---|
| FullHttpRequest | FullHttpRequest. copy() | 
| FullHttpRequest | DefaultFullHttpRequest. copy() | 
| FullHttpRequest | FullHttpRequest. copy(ByteBuf newContent) | 
| FullHttpRequest | DefaultFullHttpRequest. copy(ByteBuf newContent) | 
| FullHttpRequest | FullHttpRequest. duplicate() | 
| FullHttpRequest | DefaultFullHttpRequest. duplicate() | 
| FullHttpRequest | FullHttpRequest. retain() | 
| FullHttpRequest | DefaultFullHttpRequest. retain() | 
| FullHttpRequest | FullHttpRequest. retain(int increment) | 
| FullHttpRequest | DefaultFullHttpRequest. retain(int increment) | 
| 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 | 
|---|---|
| void | HttpServerUpgradeHandler.UpgradeCodec. prepareUpgradeResponse(ChannelHandlerContext ctx,
                      FullHttpRequest upgradeRequest,
                      FullHttpResponse upgradeResponse)Adds any headers to the 101 Switching protocols response that are appropriate for this protocol. | 
| void | HttpServerUpgradeHandler.UpgradeCodec. upgradeTo(ChannelHandlerContext ctx,
         FullHttpRequest upgradeRequest,
         FullHttpResponse upgradeResponse)Performs an HTTP protocol upgrade from the source codec. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 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 abstract FullHttpRequest | WebSocketClientHandshaker. newHandshakeRequest()Returns a new {@link FullHttpRequest) which will be used for the handshake. | 
| 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
  | 
| 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  FullHttpRequestwhich is passed in. | 
| protected FullHttpResponse | WebSocketServerHandshaker07. newHandshakeResponse(FullHttpRequest req,
                    HttpHeaders headers)
 Handle the web socket handshake for the web socket specification HyBi version 7. | 
| 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 | WebSocketServerHandshaker13. newHandshakeResponse(FullHttpRequest req,
                    HttpHeaders headers)
 Handle the web socket handshake for the web socket specification HyBi versions 13-17. | 
| 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 | WebSocketServerHandshaker08. newHandshakeResponse(FullHttpRequest req,
                    HttpHeaders headers)
 Handle the web socket handshake for the web socket specification HyBi version 8 to 10. | 
| Modifier and Type | Method and Description | 
|---|---|
| static FullHttpRequest | HttpUtil. toHttpRequest(int streamId,
             Http2Headers http2Headers,
             boolean validateHttpHeaders)Create a new object to contain the request data | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Http2ServerUpgradeCodec. prepareUpgradeResponse(ChannelHandlerContext ctx,
                      FullHttpRequest upgradeRequest,
                      FullHttpResponse upgradeResponse) | 
| void | Http2ServerUpgradeCodec. upgradeTo(ChannelHandlerContext ctx,
         FullHttpRequest upgradeRequest,
         FullHttpResponse upgradeResponse) | 
Copyright © 2008–2015 The Netty Project. All rights reserved.