Class HeadersFrame


public class HeadersFrame extends StreamFrame
  • Field Details

    • metaData

      private final org.eclipse.jetty.http.MetaData metaData
    • priority

      private final PriorityFrame priority
    • endStream

      private final boolean endStream
  • Constructor Details

    • HeadersFrame

      public HeadersFrame(org.eclipse.jetty.http.MetaData metaData, PriorityFrame priority, boolean endStream)

      Creates a new HEADERS frame with an unspecified stream id.

      The stream id will be generated by the implementation while sending this frame to the other peer.

      Parameters:
      metaData - the metadata containing HTTP request information
      priority - the PRIORITY frame associated with this HEADERS frame
      endStream - whether this frame ends the stream
    • HeadersFrame

      public HeadersFrame(int streamId, org.eclipse.jetty.http.MetaData metaData, PriorityFrame priority, boolean endStream)

      Creates a new HEADERS frame with the specified stream id.

      HEADERS frames with a specific stream id are typically used in responses to request HEADERS frames.

      Parameters:
      streamId - the stream id
      metaData - the metadata containing HTTP request/response information
      priority - the PRIORITY frame associated with this HEADERS frame
      endStream - whether this frame ends the stream
  • Method Details

    • getMetaData

      public org.eclipse.jetty.http.MetaData getMetaData()
    • getPriority

      public PriorityFrame getPriority()
    • isEndStream

      public boolean isEndStream()
    • withStreamId

      public HeadersFrame withStreamId(int streamId)
      Specified by:
      withStreamId in class StreamFrame
    • toString

      public String toString()
      Overrides:
      toString in class Frame