ReaderRender class
A class that implements the Render interface to handle rendering of a response using a stream of bytes.
- Implemented types
Constructors
-
ReaderRender({required String contentType, int? contentLength, required Stream<
List< reader, Map<int> >String, String> ? headers}) - Constructs a ReaderRender with the given parameters.
Properties
- contentLength → int?
-
The length of the content in bytes, if known.
final
- contentType → String
-
The MIME type of the content being rendered.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
Additional headers to be included in the response.
final
-
reader
→ Stream<
List< int> > -
A stream of byte lists that represents the content to be rendered.
final
- 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
-
render(
Response response) → Future< void> -
Renders the response by writing headers and streaming the content.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeContentType(
Response response) → void -
Writes the content type to the response headers.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited