APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.net.http.http3.frames

public final Class DataFrame

extends PartialFrame
Class Inheritance

This class models an HTTP/3 DATA frame.

API Note

An instance of DataFrame is used to read or writes the frame's type and length. The payload is supposed to be read or written directly to the stream on its own, after having read or written the frame type and length.

See Also
PartialFrame

Field Summary

Modifier and TypeField and Description
private final long
public static final int
TYPE

The DATA frame type, as defined by HTTP/3

Constructor Summary

AccessConstructor and Description
public
DataFrame(long length)

Creates a new HTTP/3 HEADERS frame

Method Summary

Modifier and TypeMethod and Description
public long
length()

Implements jdk.internal.net.http.http3.frames.Http3Frame.length.

Returns the length of this frame.

Inherited from jdk.internal.net.http.http3.frames.PartialFrame:
nextPayloadBytesnextPayloadBytesremainingstreamingLengthtoStringwriteHeaders

Field Detail

lengthback to summary
private final long length
TYPEback to summary
public static final int TYPE

The DATA frame type, as defined by HTTP/3

Constructor Detail

DataFrameback to summary
public DataFrame(long length)

Creates a new HTTP/3 HEADERS frame

Method Detail

lengthback to summary
public long length()

Implements jdk.internal.net.http.http3.frames.Http3Frame.length.

Doc from jdk.internal.net.http.http3.frames.Http3Frame.length.

Returns the length of this frame.

Annotations
@Override