Interface Http2Stream

All Known Implementing Classes:
Http2ClientStream

public interface Http2Stream
HTTP/2 stream. A stream represents a single request/response exchange in HTTP/2.
  • Method Details

    • rstStream

      boolean rstStream(Http2RstStream rstStream)
      Close the stream.
      Parameters:
      rstStream - rst stream frame
      Returns:
      true if rapid reset(rst received before any data are sent)
    • windowUpdate

      void windowUpdate(Http2WindowUpdate windowUpdate)
      Flow control window update.
      Parameters:
      windowUpdate - window update frame
    • headers

      void headers(Http2Headers headers, boolean endOfStream)
      Headers received.
      Parameters:
      headers - headers
      endOfStream - whether these headers are the last data that would be received
    • data

      void data(Http2FrameHeader header, BufferData data, boolean endOfStream)
      Data frame.
      Parameters:
      header - frame header
      data - frame data
      endOfStream - whether this is the last data that would be received
    • priority

      void priority(Http2Priority http2Priority)
      Priority.
      Parameters:
      http2Priority - priority frame
    • streamId

      int streamId()
      Stream ID.
      Returns:
      id of this stream
    • streamState

      Http2StreamState streamState()
      State of this stream.
      Returns:
      state
    • flowControl

      StreamFlowControl flowControl()
      Outbound flow control of this stream.
      Returns:
      flow control