ExpressResponseStream class
Reads one streamed Express response chunk by chunk.
Obtained from ExpressParser.openStream.
- Inheritance
-
- Object
- ResponseReader<
ResponsePart> - ExpressResponseStream
Constructors
-
ExpressResponseStream(ExpressParser parser, {required bool wrapped, required RendererState state, Set<
String> ? progressiveKeys}) -
Creates a stream for
parser.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInBlock → bool
-
Whether the response read so far ends inside a block: after an opening
tag, and before its closing tag.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → RendererState
-
finalinherited
Methods
-
close(
) → List< ResponsePart> -
Ends the response and returns the parts still held back.
inherited
-
feed(
String chunk) → List< ResponsePart> -
Reads the next
chunkand returns the parts that became ready.inherited -
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