Package io.github.mahmoudimus.http2
Class FrameType
java.lang.Object
io.github.mahmoudimus.http2.FrameType
Frame type codes (RFC 9113 §6) and frame flags.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe frame type for a continued field block.static final intThe frame type for stream content.static final intSETTINGS, PING: an acknowledgement.static final intHEADERS, PUSH_PROMISE, CONTINUATION: the field block is complete.static final intDATA, HEADERS: the last frame the sender will send on the stream.static final intDATA, HEADERS, PUSH_PROMISE: the payload starts with a pad length and ends in padding.static final intHEADERS: the payload carries a (deprecated) priority signal.static final intThe size of every frame header.static final intThe frame type for connection shutdown.static final intThe frame type for a header field block fragment.static final intThe extension frame type by which a server names the origins it serves on a connection (RFC 8336).static final intThe frame type for a connection probe.static final intThe frame type for a deprecated priority signal.static final intThe frame type for a promised stream and field block.static final intThe frame type for stream termination.static final intThe frame type for connection settings.static final intThe frame type for flow-control credit. -
Method Summary
-
Field Details
-
DATA
public static final int DATAThe frame type for stream content.- See Also:
-
HEADERS
public static final int HEADERSThe frame type for a header field block fragment.- See Also:
-
PRIORITY
public static final int PRIORITYThe frame type for a deprecated priority signal.- See Also:
-
RST_STREAM
public static final int RST_STREAMThe frame type for stream termination.- See Also:
-
SETTINGS
public static final int SETTINGSThe frame type for connection settings.- See Also:
-
PUSH_PROMISE
public static final int PUSH_PROMISEThe frame type for a promised stream and field block.- See Also:
-
PING
public static final int PINGThe frame type for a connection probe.- See Also:
-
GOAWAY
public static final int GOAWAYThe frame type for connection shutdown.- See Also:
-
WINDOW_UPDATE
public static final int WINDOW_UPDATEThe frame type for flow-control credit.- See Also:
-
CONTINUATION
public static final int CONTINUATIONThe frame type for a continued field block.- See Also:
-
ORIGIN
public static final int ORIGINThe extension frame type by which a server names the origins it serves on a connection (RFC 8336). It is not one of RFC 9113's types:FrameReaderreturns it as aFrame.Unknown, whichOriginFramereads.- See Also:
-
FLAG_END_STREAM
public static final int FLAG_END_STREAMDATA, HEADERS: the last frame the sender will send on the stream.- See Also:
-
FLAG_ACK
public static final int FLAG_ACKSETTINGS, PING: an acknowledgement.- See Also:
-
FLAG_END_HEADERS
public static final int FLAG_END_HEADERSHEADERS, PUSH_PROMISE, CONTINUATION: the field block is complete.- See Also:
-
FLAG_PADDED
public static final int FLAG_PADDEDDATA, HEADERS, PUSH_PROMISE: the payload starts with a pad length and ends in padding.- See Also:
-
FLAG_PRIORITY
public static final int FLAG_PRIORITYHEADERS: the payload carries a (deprecated) priority signal.- See Also:
-
FRAME_HEADER_LENGTH
public static final int FRAME_HEADER_LENGTHThe size of every frame header.- See Also:
-
-
Method Details
-
name
A readable name for a frame type code, for messages.- Parameters:
type- the frame type code- Returns:
- the standard type name, or UNKNOWN with its hexadecimal code
-