encodeHeader abstract method
Encodes the header text in the chosen codec's only if required.
text
specifies the text to be encoded.
codec
the optional codec, which defaults to utf8.
Set the optional fromStart
to true in case the encoding should start at the beginning of the text and not in the middle.
Implementation
String encodeHeader(String text, {bool fromStart = false});