Class PrefaceParser


public class PrefaceParser extends Object
  • Constructor Details

  • Method Details

    • directUpgrade

      protected void directUpgrade()

      Advances this parser after the PrefaceFrame.PREFACE_PREAMBLE_BYTES.

      This allows the HTTP/1.1 parser to parse the preamble of the preface, which is a legal HTTP/1.1 request, and this parser will parse the remaining bytes, that are not parseable by an HTTP/1.1 parser.

    • parse

      public boolean parse(ByteBuffer buffer)
    • notifyConnectionFailure

      protected void notifyConnectionFailure(int error, String reason)