PendingBody class

A captured body whose wire form (WireBody: UTF-8 vs base64, gzip/deflate decoding, truncation) is produced by the transport encoder, off the UI isolate when the background transport is used.

Constructors

PendingBody({required Uint8List bytes, required int size, required bool truncated, required int limit, required bool capture, String? contentType, String? contentEncoding})

Properties

bytes → Uint8List
Captured prefix (at most limit bytes).
final
capture → bool
config.captureBodies at capture time; false → only the size is sent.
final
contentEncoding → String?
Set when bytes are still compressed (e.g. gzip with autoUncompress = false, or br/deflate which dart:io never decodes).
final
contentType → String?
final
hashCode → int
The hash code for this object.
no setterinherited
limit → int
config.maxBodyBytes at capture time.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
Total number of bytes seen on the stream.
final
truncated → bool
Whether bytes is shorter than the whole body.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMessageValue() → Map<String, Object?>
Marker map understood by the encoder (see resolvePendingBodies).
toString() → String
A string representation of this object.
inherited

Operators

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