DocumentFrame class

Document frame encoding/decoding for SDA protocol

Constructors

DocumentFrame()

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

decodeRequest(Uint8List bytes) → DocumentRequest
Decode document request
decodeResponse(Uint8List bytes) → DocumentFrameResponse
Decode document response
encodeError(int status, String errorMessage) → Uint8List
Encode error response
encodeRequest({required String operation, required PeerId ownerPeerId, required String path, Map<String, String>? headers, Uint8List? body, String? visibility, String? accessAction, int? history, int? versionNumber, int? maxVersions}) → Uint8List
Encode document request (GET, PUT, HEAD)
encodeResponse({required int status, Map<String, dynamic>? headers, Uint8List? body}) → Uint8List
Encode document response
getOperation(Uint8List bytes) → String
Get operation type from request bytes