Class HeadersFrame

    • Field Detail

      • metaData

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

        private final boolean endStream
    • Constructor Detail

      • 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 Detail

      • getMetaData

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

        public boolean isEndStream()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Frame