contentBytes method
Set a text body that is already encoded as UTF-8. The bytes are
sent as they are, with no second encode. Like a String body, it
is sent as text/html with CoreFlags.htmlStrings when no content
type is set. getContent gives the text, so a middleware that
reads a String body works the same.
res.contentBytes(utf8.encode('<p>Hello</p>'));
Implementation
DoxResponse contentBytes(Uint8List utf8Text) {
_contentData = null;
_textBytes = utf8Text;
_decoded = null;
return this;
}