Interface Parser.Listener

All Known Subinterfaces:
ClientParser.Listener, ServerParser.Listener
All Known Implementing Classes:
ClientParser.Listener.Adapter, Parser.Listener.Adapter, ServerParser.Listener.Adapter
Enclosing class:
Parser

public static interface Parser.Listener
  • Method Details

    • onHeader

      void onHeader(int request, HttpField field)
    • onHeaders

      boolean onHeaders(int request)
      Parameters:
      request - the request id
      Returns:
      true to signal to the parser to stop parsing, false to continue parsing
    • onContent

      boolean onContent(int request, FCGI.StreamType stream, ByteBuffer buffer)
      Parameters:
      request - the request id
      stream - the stream type
      buffer - the content bytes
      Returns:
      true to signal to the parser to stop parsing, false to continue parsing
      See Also:
    • onEnd

      void onEnd(int request)
    • onFailure

      void onFailure(int request, Throwable failure)