AlphaXJsonBody class final

A UTF-8 JSON request body.

Implemented types

Constructors

AlphaXJsonBody(Object? value)
Encodes value once so later transport reads are deterministic.

Properties

bytes → List<int>
Encoded JSON bytes.
final
contentLength → int
Encoded byte length, when known without consuming the body.
no setteroverride
contentType → String
Content type to apply when the caller has not supplied one.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
isReplayable → bool
Whether the body can be opened again for another attempt.
no setteroverride
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
openStream() → Stream<List<int>>
Opens the body for incremental reading.
override
toString() → String
A string representation of this object.
inherited

Operators

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