OriginFrame class

HTTP/3 ORIGIN frame payload.

RFC 9412 Section 2.1: the payload consists of zero or more origin entries. Each entry is a 16-bit unsigned integer (Origin-Len) in network byte order, followed by an ASCII-encoded origin (scheme + host + port, e.g., "https://example.com").

Constructors

OriginFrame({required List<String> origins})

Properties

hashCode int
The hash code for this object.
no setteroverride
origins List<String>
The alternative origins advertised by this frame.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getByteLength() int
Returns the total on-the-wire byte length of the full HTTP/3 frame (type varint + length varint + payload).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Uint8List
Alias for serializePayload.
serializePayload() Uint8List
Serialize payload: sequence of 16-bit uint(length) + origin_bytes.
toFrame() Http3Frame
Build a complete frame.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

parse(Uint8List bytes) OriginFrame
Alias for parsePayload.
parsePayload(Uint8List payload) OriginFrame
Parse payload.