GeezerVison is showing netty.io — DefaultHttp2HeadersFrame (Netty API Reference (4.1.141.Final))
Class DefaultHttp2HeadersFrame
-
Constructor Summary
Constructors
Constructor
Description
Equivalent to new DefaultHttp2HeadersFrame(headers, false).
Equivalent to new DefaultHttp2HeadersFrame(headers, endStream, 0).
Construct a new headers message.
-
Method Summary
Modifier and Type
Method
Description
boolean
Returns true if o has equal stream to this object.
int
boolean
Returns true if the END_STREAM flag is set.
Returns the name of the HTTP/2 frame e.g.
int
stream
Modifier and Type
Method
Description
Returns the
Http2FrameStream object for this frame, or
null if the frame has yet to be associated
with a stream.
-
Constructor Details
-
DefaultHttp2HeadersFrame
Equivalent to new DefaultHttp2HeadersFrame(headers, false).
- Parameters:
headers - the non-null headers to send
-
DefaultHttp2HeadersFrame
public DefaultHttp2HeadersFrame(Http2Headers headers,
boolean endStream)
Equivalent to new DefaultHttp2HeadersFrame(headers, endStream, 0).
- Parameters:
headers - the non-null headers to send
-
DefaultHttp2HeadersFrame
public DefaultHttp2HeadersFrame(Http2Headers headers,
boolean endStream,
int padding)
Construct a new headers message.
- Parameters:
headers - the non-null headers to send
endStream - whether these headers should terminate the stream
padding - additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive).
-
Method Details
-
-
name
Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.
- Specified by:
name in interface Http2Frame
-
headers
A complete header list. CONTINUATION frames are automatically handled.
- Specified by:
headers in interface Http2HeadersFrame
-
-
padding
public int padding()
Frame padding to use. Must be non-negative and less than 256.
- Specified by:
padding in interface Http2HeadersFrame
-
-
-