ExpressContinuingResponseStream class
Reads one streamed Express response, reading past a rejected block.
Obtained from ExpressParser.openContinuingStream. Reads as ExpressResponseStream does, except that a rejected block is returned as an ErrorPart, its messages not emitted yet are dropped, and the text and blocks after it are read as usual.
- Inheritance
-
- Object
- ResponseReader<
StreamPart> - ExpressContinuingResponseStream
Constructors
-
ExpressContinuingResponseStream(ExpressParser parser, {required bool wrapped, required RendererState state, Set<
String> ? progressiveKeys}) -
Creates a continuing 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< StreamPart> -
Ends the response and returns the parts still held back.
inherited
-
feed(
String chunk) → List< StreamPart> -
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