GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.http
  • HttpClientUpgradeHandler
  • UpgradeCodec

This view

  • Original page
  • New address

GeezerVison is showing netty.io — HttpClientUpgradeHandler.UpgradeCodec (Netty API Reference (4.1.141.Final))

Interface HttpClientUpgradeHandler.UpgradeCodec

All Known Implementing Classes:
Http2ClientUpgradeCodec
Enclosing class:
HttpClientUpgradeHandler

public static interface HttpClientUpgradeHandler.UpgradeCodec
A codec that the source can be upgraded to.
  • Method Summary

    Modifier and Type
    Method
    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.
  • Method Details

    • protocol

      CharSequence protocol()
      Returns the name of the protocol supported by this codec, as indicated by the 'UPGRADE' header.
    • setUpgradeHeaders

      Collection<CharSequence> setUpgradeHeaders(ChannelHandlerContext ctx, HttpRequest upgradeRequest)
      Sets any protocol-specific headers required to the upgrade request. Returns the names of all headers that were added. These headers will be used to populate the CONNECTION header.
    • upgradeTo

      void upgradeTo(ChannelHandlerContext ctx, FullHttpResponse upgradeResponse) throws Exception
      Performs an HTTP protocol upgrade from the source codec. This method is responsible for adding all handlers required for the new protocol.
      Parameters:
      ctx - the context for the current handler.
      upgradeResponse - the 101 Switching Protocols response that indicates that the server has switched to this protocol.
      Throws:
      Exception
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.