Top Description Methods
io.netty5.handler.codec.http2

public Interface Http2DataFrame

extends Http2StreamFrame, Resource<Http2DataFrame>
Known Direct Implementers
io.netty5.handler.codec.http2.DefaultHttp2DataFrame
Annotations
@UnstableApi
Imports
io.netty5.buffer.Buffer, io.netty5.util.Resource, io.netty5.util.internal.UnstableApi

HTTP/2 DATA frame.

Method Summary

Modifier and TypeMethod and Description
public Buffer
content()

Payload of DATA frame.

public Http2DataFrame

Returns:

A copy of this data frame.
copy
()

Produce a copy of this data frame, which contain a copy of the frame contents.

public int
initialFlowControlledBytes()

Returns the number of bytes that are flow-controlled initially, so even if the content() is consumed this will not change.

public boolean
isEndStream()

Returns true if the END_STREAM flag is set.

public int
padding()

Frame padding to use.

Inherited from io.netty5.handler.codec.http2.Http2StreamFrame:
streamstream
Inherited from io.netty5.util.Resource:
closedisposeisAccessibleisAccessiblesendtouchtouch

Method Detail

contentback to summary
public Buffer content()

Payload of DATA frame. Will not be null.

copyback to summary
public Http2DataFrame copy()

Produce a copy of this data frame, which contain a copy of the frame contents.

Returns:Http2DataFrame

A copy of this data frame.

initialFlowControlledBytesback to summary
public int initialFlowControlledBytes()

Returns the number of bytes that are flow-controlled initially, so even if the content() is consumed this will not change.

isEndStreamback to summary
public boolean isEndStream()

Returns true if the END_STREAM flag is set.

paddingback to summary
public int padding()

Frame padding to use. Will be non-negative and less than 256.