RpcMessageParser class final

Parser that reassembles fragmented gRPC messages.

Collects full messages from HTTP/2 DATA frames where gRPC payloads may not align with frame boundaries.

Constructors

RpcMessageParser({LogScope? logger, int maxMessageLength = 64 * 1024 * 1024, int? maxBufferedBytes, Uint8List decompressor(Uint8List payload, {int? maxOutputBytes})?, int maxMessagesPerChunk = 1024, bool emitFramed = false})
Creates an RpcMessageParser with the given configuration.

Properties

hashCode → int
The hash code for this object.
no setterinherited
holdsPartialFrame → bool
Whether bytes of a frame are buffered that no message has been built from yet — so more input would complete one.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Uint8List data) → List<Uint8List>
Processes an incoming data fragment and returns complete messages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited