Interface Parser.Listener

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

public static interface Parser.Listener
  • Method Details

    • onHeader

      default void onHeader(int request, HttpField field)
    • onHeaders

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

      default 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

      default void onEnd(int request)
    • onFailure

      default void onFailure(int request, Throwable failure)