canEncode static method
Tests whether the given string can be represented as a literal string.
The string must only contain characters matched by contentParser or up
to two consecutive apostrophe
s.
Implementation
static bool canEncode(String str) => bodyParser.end().accept(str);