-
- All Superinterfaces:
AutoCloseable
,Http2Frame
,Http2StreamFrame
,Resource<Http2DataFrame>
- All Known Implementing Classes:
DefaultHttp2DataFrame
@UnstableApi public interface Http2DataFrame extends Http2StreamFrame, Resource<Http2DataFrame>
HTTP/2 DATA frame.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Buffer
content()
Payload of DATA frame.Http2DataFrame
copy()
Produce a copy of this data frame, which contain a copy of the frame contents.int
initialFlowControlledBytes()
Returns the number of bytes that are flow-controlled initially, so even if thecontent()
is consumed this will not change.boolean
isEndStream()
Returnstrue
if the END_STREAM flag is set.int
padding()
Frame padding to use.-
Methods inherited from interface io.netty5.handler.codec.http2.Http2Frame
name
-
Methods inherited from interface io.netty5.handler.codec.http2.Http2StreamFrame
stream, stream
-
Methods inherited from interface io.netty5.util.Resource
close, isAccessible, send, touch
-
-
-
-
Method Detail
-
padding
int padding()
Frame padding to use. Will be non-negative and less than 256.
-
content
Buffer content()
Payload of DATA frame. Will not benull
.
-
initialFlowControlledBytes
int initialFlowControlledBytes()
Returns the number of bytes that are flow-controlled initially, so even if thecontent()
is consumed this will not change.
-
isEndStream
boolean isEndStream()
Returnstrue
if the END_STREAM flag is set.
-
copy
Http2DataFrame copy()
Produce a copy of this data frame, which contain a copy of the frame contents.- Returns:
- A copy of this data frame.
-
-