Interface Http2StreamWriter

All Known Implementing Classes:
Http2ConnectionWriter

public interface Http2StreamWriter
Writer for a single stream.
  • Method Details

    • write

      void write(Http2FrameData frame)
      Write a frame.
      Parameters:
      frame - frame to write
    • writeData

      void writeData(Http2FrameData frame, FlowControl.Outbound flowControl)
      Write a frame with flow control.
      Parameters:
      frame - data frame
      flowControl - outbound flow control
    • writeHeaders

      int writeHeaders(Http2Headers headers, int streamId, Http2Flag.HeaderFlags flags, FlowControl.Outbound flowControl)
      Write headers with no (or streaming) entity.
      Parameters:
      headers - headers
      streamId - stream ID
      flags - flags to use
      flowControl - flow control
      Returns:
      number of bytes written
    • writeHeaders

      int writeHeaders(Http2Headers headers, int streamId, Http2Flag.HeaderFlags flags, Http2FrameData dataFrame, FlowControl.Outbound flowControl)
      Write headers and entity.
      Parameters:
      headers - headers
      streamId - stream ID
      flags - header flags
      dataFrame - data frame
      flowControl - flow control
      Returns:
      number of bytes written