Class HeadersFrame

    • Constructor Detail

      • HeadersFrame

        public HeadersFrame​(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,
                            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