Class FrameEvent.DataFrame

java.lang.Object
org.apache.pekko.http.impl.engine.http2.FrameEvent.DataFrame
All Implemented Interfaces:
Serializable, FrameEvent, FrameEvent.StreamFrameEvent, scala.Equals, scala.Product
Enclosing interface:
FrameEvent

public static final class FrameEvent.DataFrame extends Object implements FrameEvent.StreamFrameEvent, scala.Product, Serializable
See Also:
  • Constructor Details

    • DataFrame

      public DataFrame(int streamId, boolean endStream, org.apache.pekko.util.ByteString payload)
  • Method Details

    • streamId

      public int streamId()
      Specified by:
      streamId in interface FrameEvent.StreamFrameEvent
    • endStream

      public boolean endStream()
    • payload

      public org.apache.pekko.util.ByteString payload()
    • sizeInWindow

      public int sizeInWindow()
      The amount of bytes this frame consumes of a window. According to RFC 7540, 6.9.1:

      For flow-control calculations, the 9-octet frame header is not counted.

      That means this size amounts to data size + padding size field + padding.

      Returns:
      (undocumented)