WASIPreview2HttpOutgoingBody class final
Preview2 outgoing body resource.
Constructors
- WASIPreview2HttpOutgoingBody({BigInt? contentLength})
-
Creates an outgoing body with an optional expected
contentLength.
Properties
-
bytes
→ List<
int> -
Bytes written to the body stream so far.
no setter
-
chunks
→ Stream<
List< int> > -
Body chunks written after the output stream is taken.
no setter
-
done
→ Future<
WASIPreview2HttpResult< void> > -
Completes when the body is finished.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFinished → bool
-
Whether finish has been called.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trailers → WASIPreview2HttpFields?
-
Optional trailers supplied at finish time.
no setter
Methods
-
finish(
WASIPreview2HttpFields? trailers) → WASIPreview2HttpResult< void> - Finishes the body with optional trailers.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rejectTrailersWith(
String errorCode) → void -
Makes finish reject trailers with
errorCode. -
takeStream(
) → WASIPreview2OutputStream? - Returns the output stream on the first call, or null afterwards.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited