public static interface HttpClientUpgradeHandler.UpgradeCodec
Modifier and Type | Method and Description |
---|---|
CharSequence |
protocol()
Returns the name of the protocol supported by this codec, as indicated by the
'UPGRADE' header. |
Collection<CharSequence> |
setUpgradeHeaders(ChannelHandlerContext ctx,
HttpRequest upgradeRequest)
Sets any protocol-specific headers required to the upgrade request.
|
void |
upgradeTo(ChannelHandlerContext ctx,
FullHttpResponse upgradeResponse)
Performs an HTTP protocol upgrade from the source codec.
|
CharSequence protocol()
'UPGRADE'
header.Collection<CharSequence> setUpgradeHeaders(ChannelHandlerContext ctx, HttpRequest upgradeRequest)
void upgradeTo(ChannelHandlerContext ctx, FullHttpResponse upgradeResponse) throws Exception
ctx
- the context for the current handler.upgradeResponse
- the 101 Switching Protocols response that indicates that the server
has switched to this protocol.Exception
Copyright © 2008–2017 The Netty Project. All rights reserved.