charset method

Method charset(
  1. String charset
)

Implementation

Method charset(String charset) {
  final mt = MediaType.parse(getHeaders['content-type'] ?? 'text/plain');
  header(
      'content-type', mt.change(parameters: {'charset': charset}).toString());
  return this;
}