StringRender class
A class that implements the Render interface to render a string response.
- Implemented types
Constructors
- StringRender(String content)
- Constructor for StringRender that initializes the content.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
Response response) → void -
Renders the response by writing the content type and the content.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeContentType(
Response response) → void -
Sets the content type of the response to 'text/plain' with UTF-8 charset.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited