ApiClient class
Small adapter for (de)serializing protocol messages to/from wire parts.
SECURITY:
- This class does not verify or decrypt; it only formats.
- Use
Decryptor
to verify MAC and decrypt after parsing.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
parseWire(
{required Map< String, String> headers, required String body}) → SecureMessage -
Parses a
SecureMessage
from wire headers/body. -
toWire(
SecureMessage msg, {Map< String, String> ? extraHeaders}) → WireRequestParts -
Serializes a
SecureMessage
into wire-ready headers/body.