Class DefaultHttp2DataFrame

    • Constructor Detail

      • DefaultHttp2DataFrame

        public DefaultHttp2DataFrame​(Send<Buffer> content)
        Equivalent to new DefaultHttp2DataFrame(content, false).
        Parameters:
        content - non-null payload
      • DefaultHttp2DataFrame

        public DefaultHttp2DataFrame​(boolean endStream)
        Equivalent to new DefaultHttp2DataFrame(Unpooled.EMPTY_BUFFER, endStream).
        Parameters:
        endStream - whether this data should terminate the stream
      • DefaultHttp2DataFrame

        public DefaultHttp2DataFrame​(Send<Buffer> content,
                                     boolean endStream)
        Equivalent to new DefaultHttp2DataFrame(content, endStream, 0).
        Parameters:
        content - non-null payload
        endStream - whether this data should terminate the stream
      • DefaultHttp2DataFrame

        public DefaultHttp2DataFrame​(Send<Buffer> content,
                                     boolean endStream,
                                     int padding)
        Construct a new data message.
        Parameters:
        content - non-null payload
        endStream - whether this data should terminate the stream
        padding - additional bytes that should be added to obscure the true content size. Must be between 0 and 256 (inclusive).